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

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

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


/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class RecruitmentRecord extends UpdatableRecordImpl<RecruitmentRecord> {

    private static final long serialVersionUID = 1L;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // -------------------------------------------------------------------------
    // 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, BigDecimal suitableRecruit, BigDecimal postponementHaveRight, BigDecimal postponementGranted, String springAutumn, Date recordingDate, BigDecimal postponementHaveRightPercent, BigDecimal postponementGrantedPercent, UUID recruitmentId) {
        super(Recruitment.RECRUITMENT);

        setIdRecruitment(idRecruitment);
        setSuitableRecruit(suitableRecruit);
        setPostponementHaveRight(postponementHaveRight);
        setPostponementGranted(postponementGranted);
        setSpringAutumn(springAutumn);
        setRecordingDate(recordingDate);
        setPostponementHaveRightPercent(postponementHaveRightPercent);
        setPostponementGrantedPercent(postponementGrantedPercent);
        setRecruitmentId(recruitmentId);
        resetChangedOnNotNull();
    }
}
