/*
 * This file is generated by jOOQ.
 */
package jooq.main.tables.records


import jooq.main.tables.ArticleLibrary

import org.jooq.Record2
import org.jooq.impl.UpdatableRecordImpl


/**
 * This class is generated by jOOQ.
 */
@Suppress("UNCHECKED_CAST")
open class ArticleLibraryRecord() : UpdatableRecordImpl<ArticleLibraryRecord>(ArticleLibrary.ARTICLE_LIBRARY) {

    open var articleId: Long?
        set(value): Unit = set(0, value)
        get(): Long? = get(0) as Long?

    open var libraryId: Long?
        set(value): Unit = set(1, value)
        get(): Long? = get(1) as Long?

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

    override fun key(): Record2<Long?, Long?> = super.key() as Record2<Long?, Long?>

    /**
     * Create a detached, initialised ArticleLibraryRecord
     */
    constructor(articleId: Long? = null, libraryId: Long? = null): this() {
        this.articleId = articleId
        this.libraryId = libraryId
        resetChangedOnNotNull()
    }

    /**
     * Create a detached, initialised ArticleLibraryRecord
     */
    constructor(value: jooq.main.tables.pojos.ArticleLibrary?): this() {
        if (value != null) {
            this.articleId = value.articleId
            this.libraryId = value.libraryId
            resetChangedOnNotNull()
        }
    }
}
