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


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>registration_change_address.change_data_personal_visit.change_data_personal_visit_id</code>.
     */
    public void setChangeDataPersonalVisitId(Long value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>registration_change_address.change_data_personal_visit.change_data_personal_visit_id</code>.
     */
    public Long getChangeDataPersonalVisitId() {
        return (Long) get(0);
    }

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

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

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

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

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

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

    /**
     * Setter for
     * <code>registration_change_address.change_data_personal_visit.count_for_sign</code>.
     */
    public void setCountForSign(Long value) {
        set(4, value);
    }

    /**
     * Getter for
     * <code>registration_change_address.change_data_personal_visit.count_for_sign</code>.
     */
    public Long getCountForSign() {
        return (Long) get(4);
    }

    /**
     * Setter for
     * <code>registration_change_address.change_data_personal_visit.count_signed</code>.
     */
    public void setCountSigned(Long value) {
        set(5, value);
    }

    /**
     * Getter for
     * <code>registration_change_address.change_data_personal_visit.count_signed</code>.
     */
    public Long getCountSigned() {
        return (Long) get(5);
    }

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

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

    /**
     * Setter for
     * <code>registration_change_address.change_data_personal_visit.count_records_edited</code>.
     * Записей гражданина отрекдактировано
     */
    public void setCountRecordsEdited(Long value) {
        set(7, value);
    }

    /**
     * Getter for
     * <code>registration_change_address.change_data_personal_visit.count_records_edited</code>.
     * Записей гражданина отрекдактировано
     */
    public Long getCountRecordsEdited() {
        return (Long) get(7);
    }

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

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

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

    /**
     * Create a detached ChangeDataPersonalVisitRecord
     */
    public ChangeDataPersonalVisitRecord() {
        super(ChangeDataPersonalVisit.CHANGE_DATA_PERSONAL_VISIT);
    }

    /**
     * Create a detached, initialised ChangeDataPersonalVisitRecord
     */
    public ChangeDataPersonalVisitRecord(Long changeDataPersonalVisitId, String recruitmentId, Timestamp updateDate, Date infoDate, Long countForSign, Long countSigned, Long countRefused, Long countRecordsEdited) {
        super(ChangeDataPersonalVisit.CHANGE_DATA_PERSONAL_VISIT);

        setChangeDataPersonalVisitId(changeDataPersonalVisitId);
        setRecruitmentId(recruitmentId);
        setUpdateDate(updateDate);
        setInfoDate(infoDate);
        setCountForSign(countForSign);
        setCountSigned(countSigned);
        setCountRefused(countRefused);
        setCountRecordsEdited(countRecordsEdited);
        resetChangedOnNotNull();
    }
}
