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


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>registration_change_address.records_about_registrated_citizen.records_about_registrated_citizen_id</code>.
     */
    public void setRecordsAboutRegistratedCitizenId(Long value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>registration_change_address.records_about_registrated_citizen.records_about_registrated_citizen_id</code>.
     */
    public Long getRecordsAboutRegistratedCitizenId() {
        return (Long) get(0);
    }

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

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

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

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

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

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

    /**
     * Setter for
     * <code>registration_change_address.records_about_registrated_citizen.count_registrated_by_app_vk</code>.
     */
    public void setCountRegistratedByAppVk(Long value) {
        set(4, value);
    }

    /**
     * Getter for
     * <code>registration_change_address.records_about_registrated_citizen.count_registrated_by_app_vk</code>.
     */
    public Long getCountRegistratedByAppVk() {
        return (Long) get(4);
    }

    /**
     * Setter for
     * <code>registration_change_address.records_about_registrated_citizen.count_registrated_another_vk</code>.
     */
    public void setCountRegistratedAnotherVk(Long value) {
        set(5, value);
    }

    /**
     * Getter for
     * <code>registration_change_address.records_about_registrated_citizen.count_registrated_another_vk</code>.
     */
    public Long getCountRegistratedAnotherVk() {
        return (Long) get(5);
    }

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

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

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

    /**
     * Create a detached RecordsAboutRegistratedCitizenRecord
     */
    public RecordsAboutRegistratedCitizenRecord() {
        super(RecordsAboutRegistratedCitizen.RECORDS_ABOUT_REGISTRATED_CITIZEN);
    }

    /**
     * Create a detached, initialised RecordsAboutRegistratedCitizenRecord
     */
    public RecordsAboutRegistratedCitizenRecord(Long recordsAboutRegistratedCitizenId, String recruitmentId, Timestamp updateDate, Date infoDate, Long countRegistratedByAppVk, Long countRegistratedAnotherVk) {
        super(RecordsAboutRegistratedCitizen.RECORDS_ABOUT_REGISTRATED_CITIZEN);

        setRecordsAboutRegistratedCitizenId(recordsAboutRegistratedCitizenId);
        setRecruitmentId(recruitmentId);
        setUpdateDate(updateDate);
        setInfoDate(infoDate);
        setCountRegistratedByAppVk(countRegistratedByAppVk);
        setCountRegistratedAnotherVk(countRegistratedAnotherVk);
        resetChangedOnNotNull();
    }
}
