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

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


/**
 * Регионы
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class RegionRecord extends UpdatableRecordImpl<RegionRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>space.region.id_region</code>.
     */
    public void setIdRegion(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>space.region.id_region</code>.
     */
    public Long getIdRegion() {
        return (Long) get(0);
    }

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

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

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

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

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

    /**
     * Create a detached RegionRecord
     */
    public RegionRecord() {
        super(Region.REGION);
    }

    /**
     * Create a detached, initialised RegionRecord
     */
    public RegionRecord(Long idRegion, String region) {
        super(Region.REGION);

        setIdRegion(idRegion);
        setRegion(region);
        resetChangedOnNotNull();
    }
}
