/*
 * This file is generated by jOOQ.
 */
package ru.micord.ervu_dashboard.db_beans.ervu_dashboard.tables.records;


import java.sql.Timestamp;

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

import ru.micord.ervu_dashboard.db_beans.ervu_dashboard.tables.ReasonDict;


/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class ReasonDictRecord extends UpdatableRecordImpl<ReasonDictRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>ervu_dashboard.reason_dict.code</code>.
     */
    public void setCode(Integer value) {
        set(0, value);
    }

    /**
     * Getter for <code>ervu_dashboard.reason_dict.code</code>.
     */
    public Integer getCode() {
        return (Integer) get(0);
    }

    /**
     * Setter for <code>ervu_dashboard.reason_dict.description</code>.
     */
    public void setDescription(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>ervu_dashboard.reason_dict.description</code>.
     */
    public String getDescription() {
        return (String) get(1);
    }

    /**
     * Setter for <code>ervu_dashboard.reason_dict.created_at</code>.
     */
    public void setCreatedAt(Timestamp value) {
        set(2, value);
    }

    /**
     * Getter for <code>ervu_dashboard.reason_dict.created_at</code>.
     */
    public Timestamp getCreatedAt() {
        return (Timestamp) get(2);
    }

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

    @Override
    public Record1<Integer> key() {
        return (Record1) super.key();
    }

    // -------------------------------------------------------------------------
    // Constructors
    // -------------------------------------------------------------------------

    /**
     * Create a detached ReasonDictRecord
     */
    public ReasonDictRecord() {
        super(ReasonDict.REASON_DICT);
    }

    /**
     * Create a detached, initialised ReasonDictRecord
     */
    public ReasonDictRecord(Integer code, String description, Timestamp createdAt) {
        super(ReasonDict.REASON_DICT);

        setCode(code);
        setDescription(description);
        setCreatedAt(createdAt);
        resetChangedOnNotNull();
    }
}
