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

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 AppearSubppoenaRecord extends UpdatableRecordImpl<AppearSubppoenaRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>ratings.appear_subppoena.id_appear_subppoena</code>.
     */
    public void setIdAppearSubppoena(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>ratings.appear_subppoena.id_appear_subppoena</code>.
     */
    public Long getIdAppearSubppoena() {
        return (Long) get(0);
    }

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

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

    /**
     * Setter for <code>ratings.appear_subppoena.appear_mil_com</code>. Явка в
     * военкомат
     */
    public void setAppearMilCom(BigDecimal value) {
        set(2, value);
    }

    /**
     * Getter for <code>ratings.appear_subppoena.appear_mil_com</code>. Явка в
     * военкомат
     */
    public BigDecimal getAppearMilCom() {
        return (BigDecimal) get(2);
    }

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

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

    /**
     * Setter for <code>ratings.appear_subppoena.appear_mil_com_percent</code>.
     * Явка в военкомат в процентах
     */
    public void setAppearMilComPercent(BigDecimal value) {
        set(4, value);
    }

    /**
     * Getter for <code>ratings.appear_subppoena.appear_mil_com_percent</code>.
     * Явка в военкомат в процентах
     */
    public BigDecimal getAppearMilComPercent() {
        return (BigDecimal) get(4);
    }

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

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

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

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

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

    /**
     * Create a detached AppearSubppoenaRecord
     */
    public AppearSubppoenaRecord() {
        super(AppearSubppoena.APPEAR_SUBPPOENA);
    }

    /**
     * Create a detached, initialised AppearSubppoenaRecord
     */
    public AppearSubppoenaRecord(Long idAppearSubppoena, Integer idRegion, BigDecimal appearMilCom, Date recordingDate, BigDecimal appearMilComPercent, UUID recruitmentId) {
        super(AppearSubppoena.APPEAR_SUBPPOENA);

        setIdAppearSubppoena(idAppearSubppoena);
        setIdRegion(idRegion);
        setAppearMilCom(appearMilCom);
        setRecordingDate(recordingDate);
        setAppearMilComPercent(appearMilComPercent);
        setRecruitmentId(recruitmentId);
        resetChangedOnNotNull();
    }
}
