/*
 * This file is generated by jOOQ.
 */
package ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.records;


import java.sql.Date;
import java.sql.Timestamp;

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

import ru.micord.webbpm.ervu.business_metrics.db_beans.deregistration.tables.DecisionsSigning;


/**
 * Снятие с воинского учета. Решения на подписании
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class DecisionsSigningRecord extends UpdatableRecordImpl<DecisionsSigningRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>deregistration.decisions_signing.decisions_signing_id</code>.
     */
    public void setDecisionsSigningId(Long value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>deregistration.decisions_signing.decisions_signing_id</code>.
     */
    public Long getDecisionsSigningId() {
        return (Long) get(0);
    }

    /**
     * Setter for <code>deregistration.decisions_signing.recruitment_id</code>.
     */
    public void setRecruitmentId(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>deregistration.decisions_signing.recruitment_id</code>.
     */
    public String getRecruitmentId() {
        return (String) get(1);
    }

    /**
     * Setter for <code>deregistration.decisions_signing.update_date</code>.
     */
    public void setUpdateDate(Timestamp value) {
        set(2, value);
    }

    /**
     * Getter for <code>deregistration.decisions_signing.update_date</code>.
     */
    public Timestamp getUpdateDate() {
        return (Timestamp) get(2);
    }

    /**
     * Setter for <code>deregistration.decisions_signing.info_date</code>.
     */
    public void setInfoDate(Date value) {
        set(3, value);
    }

    /**
     * Getter for <code>deregistration.decisions_signing.info_date</code>.
     */
    public Date getInfoDate() {
        return (Date) get(3);
    }

    /**
     * Setter for
     * <code>deregistration.decisions_signing.count_arrived_death_reason</code>.
     * поступило по причине смерти
     */
    public void setCountArrivedDeathReason(Long value) {
        set(4, value);
    }

    /**
     * Getter for
     * <code>deregistration.decisions_signing.count_arrived_death_reason</code>.
     * поступило по причине смерти
     */
    public Long getCountArrivedDeathReason() {
        return (Long) get(4);
    }

    /**
     * Setter for
     * <code>deregistration.decisions_signing.count_arrived_age_limit</code>.
     * поступило по предельному возрасту
     */
    public void setCountArrivedAgeLimit(Long value) {
        set(5, value);
    }

    /**
     * Getter for
     * <code>deregistration.decisions_signing.count_arrived_age_limit</code>.
     * поступило по предельному возрасту
     */
    public Long getCountArrivedAgeLimit() {
        return (Long) get(5);
    }

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

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

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

    /**
     * Create a detached DecisionsSigningRecord
     */
    public DecisionsSigningRecord() {
        super(DecisionsSigning.DECISIONS_SIGNING);
    }

    /**
     * Create a detached, initialised DecisionsSigningRecord
     */
    public DecisionsSigningRecord(Long decisionsSigningId, String recruitmentId, Timestamp updateDate, Date infoDate, Long countArrivedDeathReason, Long countArrivedAgeLimit) {
        super(DecisionsSigning.DECISIONS_SIGNING);

        setDecisionsSigningId(decisionsSigningId);
        setRecruitmentId(recruitmentId);
        setUpdateDate(updateDate);
        setInfoDate(infoDate);
        setCountArrivedDeathReason(countArrivedDeathReason);
        setCountArrivedAgeLimit(countArrivedAgeLimit);
        resetChangedOnNotNull();
    }
}
