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


import ervu_dashboard.ervu_dashboard.db_beans.ervu_dashboard.tables.TemporaryMeasures;

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

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


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>ervu_dashboard.temporary_measures.temporary_measures_id</code>.
     */
    public void setTemporaryMeasuresId(Long value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.temporary_measures.temporary_measures_id</code>.
     */
    public Long getTemporaryMeasuresId() {
        return (Long) get(0);
    }

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

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

    /**
     * Setter for <code>ervu_dashboard.temporary_measures.name</code>.
     */
    public void setName(String value) {
        set(2, value);
    }

    /**
     * Getter for <code>ervu_dashboard.temporary_measures.name</code>.
     */
    public String getName() {
        return (String) get(2);
    }

    /**
     * Setter for
     * <code>ervu_dashboard.temporary_measures.date_application</code>.
     */
    public void setDateApplication(Date value) {
        set(3, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.temporary_measures.date_application</code>.
     */
    public Date getDateApplication() {
        return (Date) get(3);
    }

    /**
     * Setter for
     * <code>ervu_dashboard.temporary_measures.withdrawal_date</code>.
     */
    public void setWithdrawalDate(Date value) {
        set(4, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.temporary_measures.withdrawal_date</code>.
     */
    public Date getWithdrawalDate() {
        return (Date) get(4);
    }

    /**
     * Setter for <code>ervu_dashboard.temporary_measures.status</code>.
     */
    public void setStatus(String value) {
        set(5, value);
    }

    /**
     * Getter for <code>ervu_dashboard.temporary_measures.status</code>.
     */
    public String getStatus() {
        return (String) get(5);
    }

    /**
     * Setter for <code>ervu_dashboard.temporary_measures.citizen_id</code>.
     */
    public void setCitizenId(UUID value) {
        set(6, value);
    }

    /**
     * Getter for <code>ervu_dashboard.temporary_measures.citizen_id</code>.
     */
    public UUID getCitizenId() {
        return (UUID) get(6);
    }

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

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

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

    /**
     * Create a detached TemporaryMeasuresRecord
     */
    public TemporaryMeasuresRecord() {
        super(TemporaryMeasures.TEMPORARY_MEASURES);
    }

    /**
     * Create a detached, initialised TemporaryMeasuresRecord
     */
    public TemporaryMeasuresRecord(Long temporaryMeasuresId, String recruitmentId, String name, Date dateApplication, Date withdrawalDate, String status, UUID citizenId) {
        super(TemporaryMeasures.TEMPORARY_MEASURES);

        setTemporaryMeasuresId(temporaryMeasuresId);
        setRecruitmentId(recruitmentId);
        setName(name);
        setDateApplication(dateApplication);
        setWithdrawalDate(withdrawalDate);
        setStatus(status);
        setCitizenId(citizenId);
        resetChangedOnNotNull();
    }
}
