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


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

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

import ru.micord.ervu_dashboard.db_beans.forecast.tables.TemporaryMeasures;


/**
 * Решения о принятии и снятии временных мер
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TemporaryMeasuresRecord extends UpdatableRecordImpl<TemporaryMeasuresRecord> {

    private static final long serialVersionUID = 1L;

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

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

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

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

    /**
     * Setter for <code>forecast.temporary_measures.recording_date</code>.
     */
    public void setRecordingDate(Date value) {
        set(2, value);
    }

    /**
     * Getter for <code>forecast.temporary_measures.recording_date</code>.
     */
    public Date getRecordingDate() {
        return (Date) get(2);
    }

    /**
     * Setter for <code>forecast.temporary_measures.schema</code>.
     */
    public void setSchema(String value) {
        set(3, value);
    }

    /**
     * Getter for <code>forecast.temporary_measures.schema</code>.
     */
    public String getSchema() {
        return (String) get(3);
    }

    /**
     * Setter for
     * <code>forecast.temporary_measures.introduction_provisional_measures</code>.
     * Введение временных мер
     */
    public void setIntroductionProvisionalMeasures(BigDecimal value) {
        set(4, value);
    }

    /**
     * Getter for
     * <code>forecast.temporary_measures.introduction_provisional_measures</code>.
     * Введение временных мер
     */
    public BigDecimal getIntroductionProvisionalMeasures() {
        return (BigDecimal) get(4);
    }

    /**
     * Setter for
     * <code>forecast.temporary_measures.lifting_provisional_measures</code>.
     * Снятие временных мер
     */
    public void setLiftingProvisionalMeasures(BigDecimal value) {
        set(5, value);
    }

    /**
     * Getter for
     * <code>forecast.temporary_measures.lifting_provisional_measures</code>.
     * Снятие временных мер
     */
    public BigDecimal getLiftingProvisionalMeasures() {
        return (BigDecimal) get(5);
    }

    // -------------------------------------------------------------------------
    // 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, UUID recruitmentId, Date recordingDate, String schema, BigDecimal introductionProvisionalMeasures, BigDecimal liftingProvisionalMeasures) {
        super(TemporaryMeasures.TEMPORARY_MEASURES);

        setTemporaryMeasuresId(temporaryMeasuresId);
        setRecruitmentId(recruitmentId);
        setRecordingDate(recordingDate);
        setSchema(schema);
        setIntroductionProvisionalMeasures(introductionProvisionalMeasures);
        setLiftingProvisionalMeasures(liftingProvisionalMeasures);
        resetChangedOnNotNull();
    }
}
