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


/**
 * Актуализация. Причины заявлений
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class AppReasonRecord extends UpdatableRecordImpl<AppReasonRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>actualization.app_reason.app_reason_id</code>.
     */
    public void setAppReasonId(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>actualization.app_reason.app_reason_id</code>.
     */
    public Long getAppReasonId() {
        return (Long) get(0);
    }

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

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

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

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

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

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

    /**
     * Setter for <code>actualization.app_reason.count_place_of_stay</code>.
     */
    public void setCountPlaceOfStay(Long value) {
        set(4, value);
    }

    /**
     * Getter for <code>actualization.app_reason.count_place_of_stay</code>.
     */
    public Long getCountPlaceOfStay() {
        return (Long) get(4);
    }

    /**
     * Setter for <code>actualization.app_reason.count_work</code>.
     */
    public void setCountWork(Long value) {
        set(5, value);
    }

    /**
     * Getter for <code>actualization.app_reason.count_work</code>.
     */
    public Long getCountWork() {
        return (Long) get(5);
    }

    /**
     * Setter for <code>actualization.app_reason.count_place_of_study</code>.
     */
    public void setCountPlaceOfStudy(Long value) {
        set(6, value);
    }

    /**
     * Getter for <code>actualization.app_reason.count_place_of_study</code>.
     */
    public Long getCountPlaceOfStudy() {
        return (Long) get(6);
    }

    /**
     * Setter for <code>actualization.app_reason.count_family_status</code>.
     */
    public void setCountFamilyStatus(Long value) {
        set(7, value);
    }

    /**
     * Getter for <code>actualization.app_reason.count_family_status</code>.
     */
    public Long getCountFamilyStatus() {
        return (Long) get(7);
    }

    /**
     * Setter for <code>actualization.app_reason.count_education</code>.
     */
    public void setCountEducation(Long value) {
        set(8, value);
    }

    /**
     * Getter for <code>actualization.app_reason.count_education</code>.
     */
    public Long getCountEducation() {
        return (Long) get(8);
    }

    /**
     * Setter for <code>actualization.app_reason.count_renaming</code>.
     */
    public void setCountRenaming(Long value) {
        set(9, value);
    }

    /**
     * Getter for <code>actualization.app_reason.count_renaming</code>.
     */
    public Long getCountRenaming() {
        return (Long) get(9);
    }

    /**
     * Setter for <code>actualization.app_reason.count_all</code>.
     */
    public void setCountAll(Long value) {
        set(10, value);
    }

    /**
     * Getter for <code>actualization.app_reason.count_all</code>.
     */
    public Long getCountAll() {
        return (Long) get(10);
    }

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

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

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

    /**
     * Create a detached AppReasonRecord
     */
    public AppReasonRecord() {
        super(AppReason.APP_REASON);
    }

    /**
     * Create a detached, initialised AppReasonRecord
     */
    public AppReasonRecord(Long appReasonId, String recruitmentId, Timestamp updateDate, Date infoDate, Long countPlaceOfStay, Long countWork, Long countPlaceOfStudy, Long countFamilyStatus, Long countEducation, Long countRenaming, Long countAll) {
        super(AppReason.APP_REASON);

        setAppReasonId(appReasonId);
        setRecruitmentId(recruitmentId);
        setUpdateDate(updateDate);
        setInfoDate(infoDate);
        setCountPlaceOfStay(countPlaceOfStay);
        setCountWork(countWork);
        setCountPlaceOfStudy(countPlaceOfStudy);
        setCountFamilyStatus(countFamilyStatus);
        setCountEducation(countEducation);
        setCountRenaming(countRenaming);
        setCountAll(countAll);
        resetChangedOnNotNull();
    }
}
