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


/**
 * Реестр повесток подсистема. Личные кабинеты
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class PersonalAccountsRecord extends UpdatableRecordImpl<PersonalAccountsRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>summonses_list_subsystem.personal_accounts.personal_accounts_id</code>.
     */
    public void setPersonalAccountsId(Long value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>summonses_list_subsystem.personal_accounts.personal_accounts_id</code>.
     */
    public Long getPersonalAccountsId() {
        return (Long) get(0);
    }

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

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

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

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

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

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

    /**
     * Setter for
     * <code>summonses_list_subsystem.personal_accounts.count_registered</code>.
     * Состоящих на учете
     */
    public void setCountRegistered(Long value) {
        set(4, value);
    }

    /**
     * Getter for
     * <code>summonses_list_subsystem.personal_accounts.count_registered</code>.
     * Состоящих на учете
     */
    public Long getCountRegistered() {
        return (Long) get(4);
    }

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

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

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

    /**
     * Create a detached PersonalAccountsRecord
     */
    public PersonalAccountsRecord() {
        super(PersonalAccounts.PERSONAL_ACCOUNTS);
    }

    /**
     * Create a detached, initialised PersonalAccountsRecord
     */
    public PersonalAccountsRecord(Long personalAccountsId, String recruitmentId, Timestamp updateDate, Date infoDate, Long countRegistered) {
        super(PersonalAccounts.PERSONAL_ACCOUNTS);

        setPersonalAccountsId(personalAccountsId);
        setRecruitmentId(recruitmentId);
        setUpdateDate(updateDate);
        setInfoDate(infoDate);
        setCountRegistered(countRegistered);
        resetChangedOnNotNull();
    }
}
