/*
 * This file is generated by jOOQ.
 */
package ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records;


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

import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.Region;


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>metrics.region.region_id</code>.
     */
    public void setRegionId(Integer value) {
        set(0, value);
    }

    /**
     * Getter for <code>metrics.region.region_id</code>.
     */
    public Integer getRegionId() {
        return (Integer) get(0);
    }

    /**
     * Setter for <code>metrics.region.subject_code</code>.
     */
    public void setSubjectCode(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>metrics.region.subject_code</code>.
     */
    public String getSubjectCode() {
        return (String) get(1);
    }

    /**
     * Setter for <code>metrics.region.subject_name</code>.
     */
    public void setSubjectName(String value) {
        set(2, value);
    }

    /**
     * Getter for <code>metrics.region.subject_name</code>.
     */
    public String getSubjectName() {
        return (String) get(2);
    }

    /**
     * Setter for <code>metrics.region.subject_codename</code>.
     */
    public void setSubjectCodename(String value) {
        set(3, value);
    }

    /**
     * Getter for <code>metrics.region.subject_codename</code>.
     */
    public String getSubjectCodename() {
        return (String) get(3);
    }

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

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

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

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

    /**
     * Create a detached, initialised RegionRecord
     */
    public RegionRecord(Integer regionId, String subjectCode, String subjectName, String subjectCodename) {
        super(Region.REGION);

        setRegionId(regionId);
        setSubjectCode(subjectCode);
        setSubjectName(subjectName);
        setSubjectCodename(subjectCodename);
        resetChangedOnNotNull();
    }
}
