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


import java.util.UUID;

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

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


/**
 * Таблица субъектов с привязкой к справочнику ПОС
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class RecruitmentCorrespondencesRecord extends UpdatableRecordImpl<RecruitmentCorrespondencesRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>ervu_dashboard.recruitment_correspondences.id</code>.
     */
    public void setId(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>ervu_dashboard.recruitment_correspondences.id</code>.
     */
    public Long getId() {
        return (Long) get(0);
    }

    /**
     * Setter for
     * <code>ervu_dashboard.recruitment_correspondences.subject_recruitment</code>.
     * Субъектовый ВК
     */
    public void setSubjectRecruitment(String value) {
        set(1, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.recruitment_correspondences.subject_recruitment</code>.
     * Субъектовый ВК
     */
    public String getSubjectRecruitment() {
        return (String) get(1);
    }

    /**
     * Setter for
     * <code>ervu_dashboard.recruitment_correspondences.idm_id</code>.
     * Идентификатор из IDM системы
     */
    public void setIdmId(UUID value) {
        set(2, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.recruitment_correspondences.idm_id</code>.
     * Идентификатор из IDM системы
     */
    public UUID getIdmId() {
        return (UUID) get(2);
    }

    /**
     * Setter for
     * <code>ervu_dashboard.recruitment_correspondences.pos_code</code>. Код из
     * справочника ПОС
     */
    public void setPosCode(String value) {
        set(3, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.recruitment_correspondences.pos_code</code>. Код из
     * справочника ПОС
     */
    public String getPosCode() {
        return (String) get(3);
    }

    /**
     * Setter for
     * <code>ervu_dashboard.recruitment_correspondences.region_name</code>.
     * Название региона
     */
    public void setRegionName(String value) {
        set(4, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.recruitment_correspondences.region_name</code>.
     * Название региона
     */
    public String getRegionName() {
        return (String) get(4);
    }

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

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

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

    /**
     * Create a detached RecruitmentCorrespondencesRecord
     */
    public RecruitmentCorrespondencesRecord() {
        super(RecruitmentCorrespondences.RECRUITMENT_CORRESPONDENCES);
    }

    /**
     * Create a detached, initialised RecruitmentCorrespondencesRecord
     */
    public RecruitmentCorrespondencesRecord(Long id, String subjectRecruitment, UUID idmId, String posCode, String regionName) {
        super(RecruitmentCorrespondences.RECRUITMENT_CORRESPONDENCES);

        setId(id);
        setSubjectRecruitment(subjectRecruitment);
        setIdmId(idmId);
        setPosCode(posCode);
        setRegionName(regionName);
        resetChangedOnNotNull();
    }
}
