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

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

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


/**
 * сведения о заболеваниях гражданина
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class DiseaseRecord extends UpdatableRecordImpl<DiseaseRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>ervu_dashboard.disease.disease_id</code>.
     */
    public void setDiseaseId(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>ervu_dashboard.disease.disease_id</code>.
     */
    public Long getDiseaseId() {
        return (Long) get(0);
    }

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

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

    /**
     * Setter for <code>ervu_dashboard.disease.code</code>. код заболевания
     */
    public void setCode(String value) {
        set(2, value);
    }

    /**
     * Getter for <code>ervu_dashboard.disease.code</code>. код заболевания
     */
    public String getCode() {
        return (String) get(2);
    }

    /**
     * Setter for <code>ervu_dashboard.disease.name</code>. наименование
     * заболевания
     */
    public void setName(String value) {
        set(3, value);
    }

    /**
     * Getter for <code>ervu_dashboard.disease.name</code>. наименование
     * заболевания
     */
    public String getName() {
        return (String) get(3);
    }

    /**
     * Setter for <code>ervu_dashboard.disease.reg_date</code>. дата постановки
     * диагноза
     */
    public void setRegDate(Date value) {
        set(4, value);
    }

    /**
     * Getter for <code>ervu_dashboard.disease.reg_date</code>. дата постановки
     * диагноза
     */
    public Date getRegDate() {
        return (Date) get(4);
    }

    /**
     * Setter for <code>ervu_dashboard.disease.registered</code>. поставлен на
     * учет по заболеванию
     */
    public void setRegistered(Boolean value) {
        set(5, value);
    }

    /**
     * Getter for <code>ervu_dashboard.disease.registered</code>. поставлен на
     * учет по заболеванию
     */
    public Boolean getRegistered() {
        return (Boolean) get(5);
    }

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

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

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

    /**
     * Create a detached DiseaseRecord
     */
    public DiseaseRecord() {
        super(Disease.DISEASE);
    }

    /**
     * Create a detached, initialised DiseaseRecord
     */
    public DiseaseRecord(Long diseaseId, UUID recruitId, String code, String name, Date regDate, Boolean registered) {
        super(Disease.DISEASE);

        setDiseaseId(diseaseId);
        setRecruitId(recruitId);
        setCode(code);
        setName(name);
        setRegDate(regDate);
        setRegistered(registered);
        resetChangedOnNotNull();
    }
}
