/*
 * This file is generated by jOOQ.
 */
package ru.micord.ervu_dashboard.db_beans.ervu_dashboard.tables.records;


import java.sql.Date;
import java.util.UUID;

import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;

import ru.micord.ervu_dashboard.db_beans.ervu_dashboard.tables.CitizenIndividualDecisions;


/**
 * Сведения об отдельных решениях, принимаемых в соответствии с Федеральным
 * законом "О воинской обязанности и военной службе"
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class CitizenIndividualDecisionsRecord extends UpdatableRecordImpl<CitizenIndividualDecisionsRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>ervu_dashboard.citizen_individual_decisions.citizen_individual_decisions_id</code>.
     */
    public void setCitizenIndividualDecisionsId(Long value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.citizen_individual_decisions.citizen_individual_decisions_id</code>.
     */
    public Long getCitizenIndividualDecisionsId() {
        return (Long) get(0);
    }

    /**
     * Setter for
     * <code>ervu_dashboard.citizen_individual_decisions.recruit_id</code>.
     * ссылка на гражданина (citizen)
     */
    public void setRecruitId(UUID value) {
        set(1, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.citizen_individual_decisions.recruit_id</code>.
     * ссылка на гражданина (citizen)
     */
    public UUID getRecruitId() {
        return (UUID) get(1);
    }

    /**
     * Setter for
     * <code>ervu_dashboard.citizen_individual_decisions.name_individual_solution</code>.
     * Наименование отдельного решения
     */
    public void setNameIndividualSolution(String value) {
        set(2, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.citizen_individual_decisions.name_individual_solution</code>.
     * Наименование отдельного решения
     */
    public String getNameIndividualSolution() {
        return (String) get(2);
    }

    /**
     * Setter for
     * <code>ervu_dashboard.citizen_individual_decisions.name_body</code>.
     * Наименование органа, принявшего отдельное решение
     */
    public void setNameBody(String value) {
        set(3, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.citizen_individual_decisions.name_body</code>.
     * Наименование органа, принявшего отдельное решение
     */
    public String getNameBody() {
        return (String) get(3);
    }

    /**
     * Setter for
     * <code>ervu_dashboard.citizen_individual_decisions.date_individual_decision</code>.
     * Дата принятия отдельного решения
     */
    public void setDateIndividualDecision(Date value) {
        set(4, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.citizen_individual_decisions.date_individual_decision</code>.
     * Дата принятия отдельного решения
     */
    public Date getDateIndividualDecision() {
        return (Date) get(4);
    }

    /**
     * Setter for
     * <code>ervu_dashboard.citizen_individual_decisions.case_number</code>.
     * Номер принятого отдельного решени
     */
    public void setCaseNumber(String value) {
        set(5, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.citizen_individual_decisions.case_number</code>.
     * Номер принятого отдельного решени
     */
    public String getCaseNumber() {
        return (String) get(5);
    }

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

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

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

    /**
     * Create a detached CitizenIndividualDecisionsRecord
     */
    public CitizenIndividualDecisionsRecord() {
        super(CitizenIndividualDecisions.CITIZEN_INDIVIDUAL_DECISIONS);
    }

    /**
     * Create a detached, initialised CitizenIndividualDecisionsRecord
     */
    public CitizenIndividualDecisionsRecord(Long citizenIndividualDecisionsId, UUID recruitId, String nameIndividualSolution, String nameBody, Date dateIndividualDecision, String caseNumber) {
        super(CitizenIndividualDecisions.CITIZEN_INDIVIDUAL_DECISIONS);

        setCitizenIndividualDecisionsId(citizenIndividualDecisionsId);
        setRecruitId(recruitId);
        setNameIndividualSolution(nameIndividualSolution);
        setNameBody(nameBody);
        setDateIndividualDecision(dateIndividualDecision);
        setCaseNumber(caseNumber);
        resetChangedOnNotNull();
    }
}
