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


import ervu_dashboard.ervu_dashboard.db_beans.total_registered.tables.MaritalStatus;

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

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


/**
 * Семейное положение состоящих/не состоящих, мужчин/женщин/всех на учете
 * уровень РФ
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class MaritalStatusRecord extends UpdatableRecordImpl<MaritalStatusRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>total_registered.marital_status.id_marital_status</code>.
     */
    public void setIdMaritalStatus(Long value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>total_registered.marital_status.id_marital_status</code>.
     */
    public Long getIdMaritalStatus() {
        return (Long) get(0);
    }

    /**
     * Setter for <code>total_registered.marital_status.married</code>. В браке
     */
    public void setMarried(BigDecimal value) {
        set(1, value);
    }

    /**
     * Getter for <code>total_registered.marital_status.married</code>. В браке
     */
    public BigDecimal getMarried() {
        return (BigDecimal) get(1);
    }

    /**
     * Setter for <code>total_registered.marital_status.not_married</code>.
     * Холост
     */
    public void setNotMarried(BigDecimal value) {
        set(2, value);
    }

    /**
     * Getter for <code>total_registered.marital_status.not_married</code>.
     * Холост
     */
    public BigDecimal getNotMarried() {
        return (BigDecimal) get(2);
    }

    /**
     * Setter for <code>total_registered.marital_status.all_M_W</code>.
     * Все/Мужчины/Женщины
     */
    public void setAllMW(String value) {
        set(3, value);
    }

    /**
     * Getter for <code>total_registered.marital_status.all_M_W</code>.
     * Все/Мужчины/Женщины
     */
    public String getAllMW() {
        return (String) get(3);
    }

    /**
     * Setter for <code>total_registered.marital_status.recording_date</code>.
     * Дата записи
     */
    public void setRecordingDate(Date value) {
        set(4, value);
    }

    /**
     * Getter for <code>total_registered.marital_status.recording_date</code>.
     * Дата записи
     */
    public Date getRecordingDate() {
        return (Date) get(4);
    }

    /**
     * Setter for <code>total_registered.marital_status.married_percent</code>.
     * В браке в процентах
     */
    public void setMarriedPercent(BigDecimal value) {
        set(5, value);
    }

    /**
     * Getter for <code>total_registered.marital_status.married_percent</code>.
     * В браке в процентах
     */
    public BigDecimal getMarriedPercent() {
        return (BigDecimal) get(5);
    }

    /**
     * Setter for
     * <code>total_registered.marital_status.not_married_percent</code>. Холост
     * в процентах
     */
    public void setNotMarriedPercent(BigDecimal value) {
        set(6, value);
    }

    /**
     * Getter for
     * <code>total_registered.marital_status.not_married_percent</code>. Холост
     * в процентах
     */
    public BigDecimal getNotMarriedPercent() {
        return (BigDecimal) get(6);
    }

    /**
     * Setter for <code>total_registered.marital_status.recruitment_id</code>.
     */
    public void setRecruitmentId(UUID value) {
        set(7, value);
    }

    /**
     * Getter for <code>total_registered.marital_status.recruitment_id</code>.
     */
    public UUID getRecruitmentId() {
        return (UUID) get(7);
    }

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

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

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

    /**
     * Create a detached MaritalStatusRecord
     */
    public MaritalStatusRecord() {
        super(MaritalStatus.MARITAL_STATUS);
    }

    /**
     * Create a detached, initialised MaritalStatusRecord
     */
    public MaritalStatusRecord(Long idMaritalStatus, BigDecimal married, BigDecimal notMarried, String allMW, Date recordingDate, BigDecimal marriedPercent, BigDecimal notMarriedPercent, UUID recruitmentId) {
        super(MaritalStatus.MARITAL_STATUS);

        setIdMaritalStatus(idMaritalStatus);
        setMarried(married);
        setNotMarried(notMarried);
        setAllMW(allMW);
        setRecordingDate(recordingDate);
        setMarriedPercent(marriedPercent);
        setNotMarriedPercent(notMarriedPercent);
        setRecruitmentId(recruitmentId);
        resetChangedOnNotNull();
    }
}
