/*
 * This file is generated by jOOQ.
 */
package com.nisemoe.generated.tables.records


import com.nisemoe.generated.tables.RedditPost

import org.jooq.Record1
import org.jooq.impl.UpdatableRecordImpl


/**
 * This class is generated by jOOQ.
 */
@Suppress("UNCHECKED_CAST")
open class RedditPostRecord private constructor() : UpdatableRecordImpl<RedditPostRecord>(RedditPost.REDDIT_POST) {

    open var postId: String
        set(value): Unit = set(0, value)
        get(): String = get(0) as String

    open var title: String?
        set(value): Unit = set(1, value)
        get(): String? = get(1) as String?

    open var createdUtc: Double?
        set(value): Unit = set(2, value)
        get(): Double? = get(2) as Double?

    open var url: String?
        set(value): Unit = set(3, value)
        get(): String? = get(3) as String?

    @Suppress("INAPPLICABLE_JVM_NAME")
    @set:JvmName("setIsChecked")
    open var isChecked: Boolean?
        set(value): Unit = set(4, value)
        get(): Boolean? = get(4) as Boolean?

    // -------------------------------------------------------------------------
    // Primary key information
    // -------------------------------------------------------------------------

    override fun key(): Record1<String?> = super.key() as Record1<String?>

    /**
     * Create a detached, initialised RedditPostRecord
     */
    constructor(postId: String, title: String? = null, createdUtc: Double? = null, url: String? = null, isChecked: Boolean? = null): this() {
        this.postId = postId
        this.title = title
        this.createdUtc = createdUtc
        this.url = url
        this.isChecked = isChecked
        resetChangedOnNotNull()
    }
}
