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


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

import ru.micord.webbpm.ervu.business_metrics.db_beans.summonses_list.tables.SummonsesReason;


/**
 * Реестр повесток. Причины выдачи повестки
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class SummonsesReasonRecord extends UpdatableRecordImpl<SummonsesReasonRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>summonses_list.summonses_reason.summonses_reason_id</code>.
     */
    public void setSummonsesReasonId(Long value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>summonses_list.summonses_reason.summonses_reason_id</code>.
     */
    public Long getSummonsesReasonId() {
        return (Long) get(0);
    }

    /**
     * Setter for
     * <code>summonses_list.summonses_reason.parent_summonses_reason_id</code>.
     * родительская причина
     */
    public void setParentSummonsesReasonId(Long value) {
        set(1, value);
    }

    /**
     * Getter for
     * <code>summonses_list.summonses_reason.parent_summonses_reason_id</code>.
     * родительская причина
     */
    public Long getParentSummonsesReasonId() {
        return (Long) get(1);
    }

    /**
     * Setter for <code>summonses_list.summonses_reason.code</code>. код причины
     */
    public void setCode(String value) {
        set(2, value);
    }

    /**
     * Getter for <code>summonses_list.summonses_reason.code</code>. код причины
     */
    public String getCode() {
        return (String) get(2);
    }

    /**
     * Setter for <code>summonses_list.summonses_reason.name</code>.
     * наименование причины
     */
    public void setName(String value) {
        set(3, value);
    }

    /**
     * Getter for <code>summonses_list.summonses_reason.name</code>.
     * наименование причины
     */
    public String getName() {
        return (String) get(3);
    }

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

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

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

    /**
     * Create a detached SummonsesReasonRecord
     */
    public SummonsesReasonRecord() {
        super(SummonsesReason.SUMMONSES_REASON);
    }

    /**
     * Create a detached, initialised SummonsesReasonRecord
     */
    public SummonsesReasonRecord(Long summonsesReasonId, Long parentSummonsesReasonId, String code, String name) {
        super(SummonsesReason.SUMMONSES_REASON);

        setSummonsesReasonId(summonsesReasonId);
        setParentSummonsesReasonId(parentSummonsesReasonId);
        setCode(code);
        setName(name);
        resetChangedOnNotNull();
    }
}
