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

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

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


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>ratings.conscription_info.conscription_info_id</code>.
     */
    public void setConscriptionInfoId(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>ratings.conscription_info.conscription_info_id</code>.
     */
    public Long getConscriptionInfoId() {
        return (Long) get(0);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * Create a detached ConscriptionInfoRecord
     */
    public ConscriptionInfoRecord() {
        super(ConscriptionInfo.CONSCRIPTION_INFO);
    }

    /**
     * Create a detached, initialised ConscriptionInfoRecord
     */
    public ConscriptionInfoRecord(Long conscriptionInfoId, Integer idRegion, BigDecimal execution, String springAutumn, Date recordingDate, BigDecimal executionPercent, String recruitmentId) {
        super(ConscriptionInfo.CONSCRIPTION_INFO);

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