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


import ervu_dashboard.ervu_dashboard.db_beans.space.tables.MilitaryCommissariat;

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


/**
 * Военные комиссариаты
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class MilitaryCommissariatRecord extends UpdatableRecordImpl<MilitaryCommissariatRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>space.military_commissariat.id_military_commissariat</code>.
     */
    public void setIdMilitaryCommissariat(Long value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>space.military_commissariat.id_military_commissariat</code>.
     */
    public Long getIdMilitaryCommissariat() {
        return (Long) get(0);
    }

    /**
     * Setter for
     * <code>space.military_commissariat.military_commissariat_name</code>.
     * Наименование военного комиссариата
     */
    public void setMilitaryCommissariatName(String value) {
        set(1, value);
    }

    /**
     * Getter for
     * <code>space.military_commissariat.military_commissariat_name</code>.
     * Наименование военного комиссариата
     */
    public String getMilitaryCommissariatName() {
        return (String) get(1);
    }

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

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

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

    /**
     * Create a detached MilitaryCommissariatRecord
     */
    public MilitaryCommissariatRecord() {
        super(MilitaryCommissariat.MILITARY_COMMISSARIAT);
    }

    /**
     * Create a detached, initialised MilitaryCommissariatRecord
     */
    public MilitaryCommissariatRecord(Long idMilitaryCommissariat, String militaryCommissariatName) {
        super(MilitaryCommissariat.MILITARY_COMMISSARIAT);

        setIdMilitaryCommissariat(idMilitaryCommissariat);
        setMilitaryCommissariatName(militaryCommissariatName);
        resetChangedOnNotNull();
    }
}
