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


import ervu_dashboard.ervu_dashboard.db_beans.recruitment_campaign.tables.PostponementInfo;

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

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


/**
 * статистика по отсрочке и призывам
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class PostponementInfoRecord extends UpdatableRecordImpl<PostponementInfoRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>recruitment_campaign.postponement_info.postponement_info_id</code>.
     */
    public void setPostponementInfoId(Long value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>recruitment_campaign.postponement_info.postponement_info_id</code>.
     */
    public Long getPostponementInfoId() {
        return (Long) get(0);
    }

    /**
     * Setter for
     * <code>recruitment_campaign.postponement_info.suitable_recruit</code>.
     * Подходят под призыв
     */
    public void setSuitableRecruit(BigDecimal value) {
        set(1, value);
    }

    /**
     * Getter for
     * <code>recruitment_campaign.postponement_info.suitable_recruit</code>.
     * Подходят под призыв
     */
    public BigDecimal getSuitableRecruit() {
        return (BigDecimal) get(1);
    }

    /**
     * Setter for
     * <code>recruitment_campaign.postponement_info.postponement_have_right</code>.
     * Имеют право на отсрочку
     */
    public void setPostponementHaveRight(BigDecimal value) {
        set(2, value);
    }

    /**
     * Getter for
     * <code>recruitment_campaign.postponement_info.postponement_have_right</code>.
     * Имеют право на отсрочку
     */
    public BigDecimal getPostponementHaveRight() {
        return (BigDecimal) get(2);
    }

    /**
     * Setter for
     * <code>recruitment_campaign.postponement_info.postponement_granted</code>.
     * Предоставлена отсрочка
     */
    public void setPostponementGranted(BigDecimal value) {
        set(3, value);
    }

    /**
     * Getter for
     * <code>recruitment_campaign.postponement_info.postponement_granted</code>.
     * Предоставлена отсрочка
     */
    public BigDecimal getPostponementGranted() {
        return (BigDecimal) get(3);
    }

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

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

    /**
     * Setter for
     * <code>recruitment_campaign.postponement_info.postponement_have_right_percent</code>.
     * Процент имеющих право на отсрочку
     */
    public void setPostponementHaveRightPercent(BigDecimal value) {
        set(5, value);
    }

    /**
     * Getter for
     * <code>recruitment_campaign.postponement_info.postponement_have_right_percent</code>.
     * Процент имеющих право на отсрочку
     */
    public BigDecimal getPostponementHaveRightPercent() {
        return (BigDecimal) get(5);
    }

    /**
     * Setter for
     * <code>recruitment_campaign.postponement_info.postponement_granted_percent</code>.
     * Процент предоставленных отсрочек
     */
    public void setPostponementGrantedPercent(BigDecimal value) {
        set(6, value);
    }

    /**
     * Getter for
     * <code>recruitment_campaign.postponement_info.postponement_granted_percent</code>.
     * Процент предоставленных отсрочек
     */
    public BigDecimal getPostponementGrantedPercent() {
        return (BigDecimal) get(6);
    }

    /**
     * Setter for
     * <code>recruitment_campaign.postponement_info.recruitment_id</code>.
     */
    public void setRecruitmentId(String value) {
        set(7, value);
    }

    /**
     * Getter for
     * <code>recruitment_campaign.postponement_info.recruitment_id</code>.
     */
    public String getRecruitmentId() {
        return (String) get(7);
    }

    /**
     * Setter for
     * <code>recruitment_campaign.postponement_info.testspring_autumn</code>.
     */
    public void setTestspringAutumn(String value) {
        set(8, value);
    }

    /**
     * Getter for
     * <code>recruitment_campaign.postponement_info.testspring_autumn</code>.
     */
    public String getTestspringAutumn() {
        return (String) get(8);
    }

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

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

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

    /**
     * Create a detached PostponementInfoRecord
     */
    public PostponementInfoRecord() {
        super(PostponementInfo.POSTPONEMENT_INFO);
    }

    /**
     * Create a detached, initialised PostponementInfoRecord
     */
    public PostponementInfoRecord(Long postponementInfoId, BigDecimal suitableRecruit, BigDecimal postponementHaveRight, BigDecimal postponementGranted, Date recordingDate, BigDecimal postponementHaveRightPercent, BigDecimal postponementGrantedPercent, String recruitmentId, String testspringAutumn) {
        super(PostponementInfo.POSTPONEMENT_INFO);

        setPostponementInfoId(postponementInfoId);
        setSuitableRecruit(suitableRecruit);
        setPostponementHaveRight(postponementHaveRight);
        setPostponementGranted(postponementGranted);
        setRecordingDate(recordingDate);
        setPostponementHaveRightPercent(postponementHaveRightPercent);
        setPostponementGrantedPercent(postponementGrantedPercent);
        setRecruitmentId(recruitmentId);
        setTestspringAutumn(testspringAutumn);
        resetChangedOnNotNull();
    }
}
