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


import java.sql.Timestamp;
import java.util.UUID;

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

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


/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class CitizenDefermentRecord extends UpdatableRecordImpl<CitizenDefermentRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>ervu_dashboard.citizen_deferment.citizen_deferment_id</code>.
     */
    public void setCitizenDefermentId(Long value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.citizen_deferment.citizen_deferment_id</code>.
     */
    public Long getCitizenDefermentId() {
        return (Long) get(0);
    }

    /**
     * Setter for <code>ervu_dashboard.citizen_deferment.recruit_id</code>.
     */
    public void setRecruitId(UUID value) {
        set(1, value);
    }

    /**
     * Getter for <code>ervu_dashboard.citizen_deferment.recruit_id</code>.
     */
    public UUID getRecruitId() {
        return (UUID) get(1);
    }

    /**
     * Setter for <code>ervu_dashboard.citizen_deferment.decision_number</code>.
     * Номер решения
     */
    public void setDecisionNumber(String value) {
        set(2, value);
    }

    /**
     * Getter for <code>ervu_dashboard.citizen_deferment.decision_number</code>.
     * Номер решения
     */
    public String getDecisionNumber() {
        return (String) get(2);
    }

    /**
     * Setter for <code>ervu_dashboard.citizen_deferment.type</code>.
     */
    public void setType(String value) {
        set(3, value);
    }

    /**
     * Getter for <code>ervu_dashboard.citizen_deferment.type</code>.
     */
    public String getType() {
        return (String) get(3);
    }

    /**
     * Setter for <code>ervu_dashboard.citizen_deferment.start_date</code>. Дата
     * начала действия отсрочки/освобождения
     */
    public void setStartDate(Timestamp value) {
        set(4, value);
    }

    /**
     * Getter for <code>ervu_dashboard.citizen_deferment.start_date</code>. Дата
     * начала действия отсрочки/освобождения
     */
    public Timestamp getStartDate() {
        return (Timestamp) get(4);
    }

    /**
     * Setter for <code>ervu_dashboard.citizen_deferment.end_date</code>. Дата
     * окончания действия отсрочки/освобождения
     */
    public void setEndDate(Timestamp value) {
        set(5, value);
    }

    /**
     * Getter for <code>ervu_dashboard.citizen_deferment.end_date</code>. Дата
     * окончания действия отсрочки/освобождения
     */
    public Timestamp getEndDate() {
        return (Timestamp) get(5);
    }

    /**
     * Setter for <code>ervu_dashboard.citizen_deferment.reason_code</code>.
     * Справочный код причины отсрочки/освобождения
     */
    public void setReasonCode(String value) {
        set(6, value);
    }

    /**
     * Getter for <code>ervu_dashboard.citizen_deferment.reason_code</code>.
     * Справочный код причины отсрочки/освобождения
     */
    public String getReasonCode() {
        return (String) get(6);
    }

    /**
     * Setter for <code>ervu_dashboard.citizen_deferment.active</code>. Признак
     * активности отсрочки/освобождения
     */
    public void setActive(Boolean value) {
        set(7, value);
    }

    /**
     * Getter for <code>ervu_dashboard.citizen_deferment.active</code>. Признак
     * активности отсрочки/освобождения
     */
    public Boolean getActive() {
        return (Boolean) get(7);
    }

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

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

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

    /**
     * Create a detached CitizenDefermentRecord
     */
    public CitizenDefermentRecord() {
        super(CitizenDeferment.CITIZEN_DEFERMENT);
    }

    /**
     * Create a detached, initialised CitizenDefermentRecord
     */
    public CitizenDefermentRecord(Long citizenDefermentId, UUID recruitId, String decisionNumber, String type, Timestamp startDate, Timestamp endDate, String reasonCode, Boolean active) {
        super(CitizenDeferment.CITIZEN_DEFERMENT);

        setCitizenDefermentId(citizenDefermentId);
        setRecruitId(recruitId);
        setDecisionNumber(decisionNumber);
        setType(type);
        setStartDate(startDate);
        setEndDate(endDate);
        setReasonCode(reasonCode);
        setActive(active);
        resetChangedOnNotNull();
    }
}
