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


import ervu_dashboard.ervu_dashboard.db_beans.public_.tables.MaritalStatus;

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


/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class MaritalStatusRecord extends UpdatableRecordImpl<MaritalStatusRecord> {

    private static final long serialVersionUID = 1L;

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

    /**
     * Getter for <code>public.marital_status.marital_status_id</code>.
     */
    public Long getMaritalStatusId() {
        return (Long) get(0);
    }

    /**
     * Setter for <code>public.marital_status.code</code>.
     */
    public void setCode(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>public.marital_status.code</code>.
     */
    public String getCode() {
        return (String) get(1);
    }

    /**
     * Setter for <code>public.marital_status.name</code>.
     */
    public void setName(String value) {
        set(2, value);
    }

    /**
     * Getter for <code>public.marital_status.name</code>.
     */
    public String getName() {
        return (String) get(2);
    }

    /**
     * Setter for <code>public.marital_status.gender_id</code>.
     */
    public void setGenderId(Long value) {
        set(3, value);
    }

    /**
     * Getter for <code>public.marital_status.gender_id</code>.
     */
    public Long getGenderId() {
        return (Long) get(3);
    }

    // -------------------------------------------------------------------------
    // 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 maritalStatusId, String code, String name, Long genderId) {
        super(MaritalStatus.MARITAL_STATUS);

        setMaritalStatusId(maritalStatusId);
        setCode(code);
        setName(name);
        setGenderId(genderId);
        resetChangedOnNotNull();
    }
}
