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


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>ervu_dashboard.citizen_deferment_right.citizen_deferment_right_id</code>.
     */
    public void setCitizenDefermentRightId(Long value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.citizen_deferment_right.citizen_deferment_right_id</code>.
     */
    public Long getCitizenDefermentRightId() {
        return (Long) get(0);
    }

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

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

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

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

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

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

    /**
     * Setter for <code>ervu_dashboard.citizen_deferment_right.code</code>.
     * Справочный код причины отсрочки
     */
    public void setCode(String value) {
        set(4, value);
    }

    /**
     * Getter for <code>ervu_dashboard.citizen_deferment_right.code</code>.
     * Справочный код причины отсрочки
     */
    public String getCode() {
        return (String) get(4);
    }

    /**
     * Setter for <code>ervu_dashboard.citizen_deferment_right.actual</code>.
     * Признак актуальности права на отсрочку
     */
    public void setActual(Boolean value) {
        set(5, value);
    }

    /**
     * Getter for <code>ervu_dashboard.citizen_deferment_right.actual</code>.
     * Признак актуальности права на отсрочку
     */
    public Boolean getActual() {
        return (Boolean) get(5);
    }

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

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

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

    /**
     * Create a detached CitizenDefermentRightRecord
     */
    public CitizenDefermentRightRecord() {
        super(CitizenDefermentRight.CITIZEN_DEFERMENT_RIGHT);
    }

    /**
     * Create a detached, initialised CitizenDefermentRightRecord
     */
    public CitizenDefermentRightRecord(Long citizenDefermentRightId, UUID recruitId, Timestamp startDate, Timestamp endDate, String code, Boolean actual) {
        super(CitizenDefermentRight.CITIZEN_DEFERMENT_RIGHT);

        setCitizenDefermentRightId(citizenDefermentRightId);
        setRecruitId(recruitId);
        setStartDate(startDate);
        setEndDate(endDate);
        setCode(code);
        setActual(actual);
        resetChangedOnNotNull();
    }
}
