/*
 * 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.MilitaryDistrict;

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


/**
 * Военные округа
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class MilitaryDistrictRecord extends UpdatableRecordImpl<MilitaryDistrictRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>space.military_district.id_military_district</code>.
     */
    public void setIdMilitaryDistrict(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>space.military_district.id_military_district</code>.
     */
    public Long getIdMilitaryDistrict() {
        return (Long) get(0);
    }

    /**
     * Setter for <code>space.military_district.military_district_name</code>.
     * Наименование военного округа
     */
    public void setMilitaryDistrictName(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>space.military_district.military_district_name</code>.
     * Наименование военного округа
     */
    public String getMilitaryDistrictName() {
        return (String) get(1);
    }

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

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

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

    /**
     * Create a detached MilitaryDistrictRecord
     */
    public MilitaryDistrictRecord() {
        super(MilitaryDistrict.MILITARY_DISTRICT);
    }

    /**
     * Create a detached, initialised MilitaryDistrictRecord
     */
    public MilitaryDistrictRecord(Long idMilitaryDistrict, String militaryDistrictName) {
        super(MilitaryDistrict.MILITARY_DISTRICT);

        setIdMilitaryDistrict(idMilitaryDistrict);
        setMilitaryDistrictName(militaryDistrictName);
        resetChangedOnNotNull();
    }
}
