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


/**
 * Справочник типа образовательного учреждения
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class EducationInstitutionTypeRecord extends UpdatableRecordImpl<EducationInstitutionTypeRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>ervu_dashboard.education_institution_type.education_institution_type_id</code>.
     */
    public void setEducationInstitutionTypeId(Long value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.education_institution_type.education_institution_type_id</code>.
     */
    public Long getEducationInstitutionTypeId() {
        return (Long) get(0);
    }

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

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

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

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

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

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

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

    /**
     * Getter for <code>ervu_dashboard.education_institution_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 EducationInstitutionTypeRecord
     */
    public EducationInstitutionTypeRecord() {
        super(EducationInstitutionType.EDUCATION_INSTITUTION_TYPE);
    }

    /**
     * Create a detached, initialised EducationInstitutionTypeRecord
     */
    public EducationInstitutionTypeRecord(Long educationInstitutionTypeId, String code, String value, String description, Boolean actual) {
        super(EducationInstitutionType.EDUCATION_INSTITUTION_TYPE);

        setEducationInstitutionTypeId(educationInstitutionTypeId);
        setCode(code);
        setValue(value);
        setDescription(description);
        setActual(actual);
        resetChangedOnNotNull();
    }
}
