/*
 * 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.EducationForm;


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>ervu_dashboard.education_form.education_form_id</code>.
     */
    public void setEducationFormId(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>ervu_dashboard.education_form.education_form_id</code>.
     */
    public Long getEducationFormId() {
        return (Long) get(0);
    }

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

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

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

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

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

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

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

    /**
     * Getter for <code>ervu_dashboard.education_form.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 EducationFormRecord
     */
    public EducationFormRecord() {
        super(EducationForm.EDUCATION_FORM);
    }

    /**
     * Create a detached, initialised EducationFormRecord
     */
    public EducationFormRecord(Long educationFormId, String code, String value, String description, Boolean actual) {
        super(EducationForm.EDUCATION_FORM);

        setEducationFormId(educationFormId);
        setCode(code);
        setValue(value);
        setDescription(description);
        setActual(actual);
        resetChangedOnNotNull();
    }
}
