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


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>registration_change_address.inactive_app_epgu.inactive_app_epgu_id</code>.
     */
    public void setInactiveAppEpguId(Long value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>registration_change_address.inactive_app_epgu.inactive_app_epgu_id</code>.
     */
    public Long getInactiveAppEpguId() {
        return (Long) get(0);
    }

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

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

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

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

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

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

    /**
     * Setter for
     * <code>registration_change_address.inactive_app_epgu.count_inactive_app_epgu</code>.
     */
    public void setCountInactiveAppEpgu(Long value) {
        set(4, value);
    }

    /**
     * Getter for
     * <code>registration_change_address.inactive_app_epgu.count_inactive_app_epgu</code>.
     */
    public Long getCountInactiveAppEpgu() {
        return (Long) get(4);
    }

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

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

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

    /**
     * Create a detached InactiveAppEpguRecord
     */
    public InactiveAppEpguRecord() {
        super(InactiveAppEpgu.INACTIVE_APP_EPGU);
    }

    /**
     * Create a detached, initialised InactiveAppEpguRecord
     */
    public InactiveAppEpguRecord(Long inactiveAppEpguId, String recruitmentId, Timestamp updateDate, Date infoDate, Long countInactiveAppEpgu) {
        super(InactiveAppEpgu.INACTIVE_APP_EPGU);

        setInactiveAppEpguId(inactiveAppEpguId);
        setRecruitmentId(recruitmentId);
        setUpdateDate(updateDate);
        setInfoDate(infoDate);
        setCountInactiveAppEpgu(countInactiveAppEpgu);
        resetChangedOnNotNull();
    }
}
