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


import ervu_dashboard.ervu_dashboard.db_beans.ratings.tables.Recruitment;

import java.math.BigDecimal;
import java.sql.Date;
import java.util.UUID;

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


/**
 * Призыв уровень РФ
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class RecruitmentRecord extends UpdatableRecordImpl<RecruitmentRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>ratings.recruitment.id_recruitment</code>.
     */
    public void setIdRecruitment(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>ratings.recruitment.id_recruitment</code>.
     */
    public Long getIdRecruitment() {
        return (Long) get(0);
    }

    /**
     * Setter for <code>ratings.recruitment.id_region</code>.
     */
    public void setIdRegion(Integer value) {
        set(1, value);
    }

    /**
     * Getter for <code>ratings.recruitment.id_region</code>.
     */
    public Integer getIdRegion() {
        return (Integer) get(1);
    }

    /**
     * Setter for <code>ratings.recruitment.execution</code>. Исполнение плана
     * призыва
     */
    public void setExecution(BigDecimal value) {
        set(2, value);
    }

    /**
     * Getter for <code>ratings.recruitment.execution</code>. Исполнение плана
     * призыва
     */
    public BigDecimal getExecution() {
        return (BigDecimal) get(2);
    }

    /**
     * Setter for <code>ratings.recruitment.spring_autumn</code>. Осень/весна
     */
    public void setSpringAutumn(String value) {
        set(3, value);
    }

    /**
     * Getter for <code>ratings.recruitment.spring_autumn</code>. Осень/весна
     */
    public String getSpringAutumn() {
        return (String) get(3);
    }

    /**
     * Setter for <code>ratings.recruitment.recording_date</code>. Дата записи
     */
    public void setRecordingDate(Date value) {
        set(4, value);
    }

    /**
     * Getter for <code>ratings.recruitment.recording_date</code>. Дата записи
     */
    public Date getRecordingDate() {
        return (Date) get(4);
    }

    /**
     * Setter for <code>ratings.recruitment.execution_percent</code>. Исолнение
     * плана призыва в процентах
     */
    public void setExecutionPercent(BigDecimal value) {
        set(5, value);
    }

    /**
     * Getter for <code>ratings.recruitment.execution_percent</code>. Исолнение
     * плана призыва в процентах
     */
    public BigDecimal getExecutionPercent() {
        return (BigDecimal) get(5);
    }

    /**
     * Setter for <code>ratings.recruitment.recruitment_id</code>.
     */
    public void setRecruitmentId(UUID value) {
        set(6, value);
    }

    /**
     * Getter for <code>ratings.recruitment.recruitment_id</code>.
     */
    public UUID getRecruitmentId() {
        return (UUID) get(6);
    }

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

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

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

    /**
     * Create a detached RecruitmentRecord
     */
    public RecruitmentRecord() {
        super(Recruitment.RECRUITMENT);
    }

    /**
     * Create a detached, initialised RecruitmentRecord
     */
    public RecruitmentRecord(Long idRecruitment, Integer idRegion, BigDecimal execution, String springAutumn, Date recordingDate, BigDecimal executionPercent, UUID recruitmentId) {
        super(Recruitment.RECRUITMENT);

        setIdRecruitment(idRecruitment);
        setIdRegion(idRegion);
        setExecution(execution);
        setSpringAutumn(springAutumn);
        setRecordingDate(recordingDate);
        setExecutionPercent(executionPercent);
        setRecruitmentId(recruitmentId);
        resetChangedOnNotNull();
    }
}
