/*
 * 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 org.jooq.Record3;
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.married</code>. В браке
     */
    public void setMarried(BigDecimal value) {
        set(0, value);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * Getter for <code>total_registered.marital_status.marital_status</code>.
     */
    public BigDecimal getMaritalStatus() {
        return (BigDecimal) get(7);
    }

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

    @Override
    public Record3<String, Date, String> key() {
        return (Record3) super.key();
    }

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

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

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

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