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


/**
 * Справочник статусов ЕРВУ
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class RecruitErvuStatusRecord extends UpdatableRecordImpl<RecruitErvuStatusRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>ervu_dashboard.recruit_ervu_status.recruit_ervu_status_id</code>.
     */
    public void setRecruitErvuStatusId(Long value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.recruit_ervu_status.recruit_ervu_status_id</code>.
     */
    public Long getRecruitErvuStatusId() {
        return (Long) get(0);
    }

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

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

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

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

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

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

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

    /**
     * Getter for <code>ervu_dashboard.recruit_ervu_status.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 RecruitErvuStatusRecord
     */
    public RecruitErvuStatusRecord() {
        super(RecruitErvuStatus.RECRUIT_ERVU_STATUS);
    }

    /**
     * Create a detached, initialised RecruitErvuStatusRecord
     */
    public RecruitErvuStatusRecord(Long recruitErvuStatusId, String code, String value, String description, Boolean actual) {
        super(RecruitErvuStatus.RECRUIT_ERVU_STATUS);

        setRecruitErvuStatusId(recruitErvuStatusId);
        setCode(code);
        setValue(value);
        setDescription(description);
        setActual(actual);
        resetChangedOnNotNull();
    }
}
