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


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

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


/**
 * Справочник типа документа минпросвещения
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class EducationMinprosvDocTypeRecord extends UpdatableRecordImpl<EducationMinprosvDocTypeRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>ervu_dashboard.education_minprosv_doc_type.education_minprosv_doc_type_id</code>.
     */
    public void setEducationMinprosvDocTypeId(Long value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.education_minprosv_doc_type.education_minprosv_doc_type_id</code>.
     */
    public Long getEducationMinprosvDocTypeId() {
        return (Long) get(0);
    }

    /**
     * Setter for <code>ervu_dashboard.education_minprosv_doc_type.code</code>.
     * Cправочный код
     */
    public void setCode(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>ervu_dashboard.education_minprosv_doc_type.code</code>.
     * Cправочный код
     */
    public String getCode() {
        return (String) get(1);
    }

    /**
     * Setter for <code>ervu_dashboard.education_minprosv_doc_type.value</code>.
     * Значение
     */
    public void setValue(String value) {
        set(2, value);
    }

    /**
     * Getter for <code>ervu_dashboard.education_minprosv_doc_type.value</code>.
     * Значение
     */
    public String getValue() {
        return (String) get(2);
    }

    /**
     * Setter for
     * <code>ervu_dashboard.education_minprosv_doc_type.description</code>.
     * Описание
     */
    public void setDescription(String value) {
        set(3, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.education_minprosv_doc_type.description</code>.
     * Описание
     */
    public String getDescription() {
        return (String) get(3);
    }

    /**
     * Setter for
     * <code>ervu_dashboard.education_minprosv_doc_type.actual</code>. Признак
     * актуальности справочного значения
     */
    public void setActual(Boolean value) {
        set(4, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.education_minprosv_doc_type.actual</code>. Признак
     * актуальности справочного значения
     */
    public Boolean getActual() {
        return (Boolean) get(4);
    }

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

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

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

    /**
     * Create a detached EducationMinprosvDocTypeRecord
     */
    public EducationMinprosvDocTypeRecord() {
        super(EducationMinprosvDocType.EDUCATION_MINPROSV_DOC_TYPE);
    }

    /**
     * Create a detached, initialised EducationMinprosvDocTypeRecord
     */
    public EducationMinprosvDocTypeRecord(Long educationMinprosvDocTypeId, String code, String value, String description, Boolean actual) {
        super(EducationMinprosvDocType.EDUCATION_MINPROSV_DOC_TYPE);

        setEducationMinprosvDocTypeId(educationMinprosvDocTypeId);
        setCode(code);
        setValue(value);
        setDescription(description);
        setActual(actual);
        resetChangedOnNotNull();
    }
}
