/*
 * This file is generated by jOOQ.
 */
package ru.micord.webbpm.ervu.business_metrics.db_beans.registration_change_address.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.registration_change_address.tables.PersonalInfoStat;


/**
 * Постановка на воинский учет при смене адреса. Статистика по запросу личных
 * дел
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class PersonalInfoStatRecord extends UpdatableRecordImpl<PersonalInfoStatRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>registration_change_address.personal_info_stat.personal_info_stat_id</code>.
     */
    public void setPersonalInfoStatId(Long value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>registration_change_address.personal_info_stat.personal_info_stat_id</code>.
     */
    public Long getPersonalInfoStatId() {
        return (Long) get(0);
    }

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

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

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

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

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

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

    /**
     * Setter for
     * <code>registration_change_address.personal_info_stat.count_refused</code>.
     */
    public void setCountRefused(Long value) {
        set(4, value);
    }

    /**
     * Getter for
     * <code>registration_change_address.personal_info_stat.count_refused</code>.
     */
    public Long getCountRefused() {
        return (Long) get(4);
    }

    /**
     * Setter for
     * <code>registration_change_address.personal_info_stat.count_unloaded</code>.
     */
    public void setCountUnloaded(Long value) {
        set(5, value);
    }

    /**
     * Getter for
     * <code>registration_change_address.personal_info_stat.count_unloaded</code>.
     */
    public Long getCountUnloaded() {
        return (Long) get(5);
    }

    /**
     * Setter for
     * <code>registration_change_address.personal_info_stat.count_accepted_to_send</code>.
     */
    public void setCountAcceptedToSend(Long value) {
        set(6, value);
    }

    /**
     * Getter for
     * <code>registration_change_address.personal_info_stat.count_accepted_to_send</code>.
     */
    public Long getCountAcceptedToSend() {
        return (Long) get(6);
    }

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

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

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

    /**
     * Create a detached PersonalInfoStatRecord
     */
    public PersonalInfoStatRecord() {
        super(PersonalInfoStat.PERSONAL_INFO_STAT);
    }

    /**
     * Create a detached, initialised PersonalInfoStatRecord
     */
    public PersonalInfoStatRecord(Long personalInfoStatId, String recruitmentId, Timestamp updateDate, Date infoDate, Long countRefused, Long countUnloaded, Long countAcceptedToSend) {
        super(PersonalInfoStat.PERSONAL_INFO_STAT);

        setPersonalInfoStatId(personalInfoStatId);
        setRecruitmentId(recruitmentId);
        setUpdateDate(updateDate);
        setInfoDate(infoDate);
        setCountRefused(countRefused);
        setCountUnloaded(countUnloaded);
        setCountAcceptedToSend(countAcceptedToSend);
        resetChangedOnNotNull();
    }
}
