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


import java.sql.Date;
import java.sql.Timestamp;

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

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


/**
 * Инциденты. Закрытые инциденты
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class IncidentsClosedRecord extends UpdatableRecordImpl<IncidentsClosedRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>metrics.incidents_closed.incidents_closed_id</code>.
     */
    public void setIncidentsClosedId(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>metrics.incidents_closed.incidents_closed_id</code>.
     */
    public Long getIncidentsClosedId() {
        return (Long) get(0);
    }

    /**
     * Setter for <code>metrics.incidents_closed.recruitment_id</code>.
     */
    public void setRecruitmentId(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>metrics.incidents_closed.recruitment_id</code>.
     */
    public String getRecruitmentId() {
        return (String) get(1);
    }

    /**
     * Setter for <code>metrics.incidents_closed.update_date</code>.
     */
    public void setUpdateDate(Timestamp value) {
        set(2, value);
    }

    /**
     * Getter for <code>metrics.incidents_closed.update_date</code>.
     */
    public Timestamp getUpdateDate() {
        return (Timestamp) get(2);
    }

    /**
     * Setter for <code>metrics.incidents_closed.info_date</code>.
     */
    public void setInfoDate(Date value) {
        set(3, value);
    }

    /**
     * Getter for <code>metrics.incidents_closed.info_date</code>.
     */
    public Date getInfoDate() {
        return (Date) get(3);
    }

    /**
     * Setter for
     * <code>metrics.incidents_closed.count_refused_to_archive</code>.
     */
    public void setCountRefusedToArchive(Long value) {
        set(4, value);
    }

    /**
     * Getter for
     * <code>metrics.incidents_closed.count_refused_to_archive</code>.
     */
    public Long getCountRefusedToArchive() {
        return (Long) get(4);
    }

    /**
     * Setter for
     * <code>metrics.incidents_closed.count_accepted_to_archive</code>.
     */
    public void setCountAcceptedToArchive(Long value) {
        set(5, value);
    }

    /**
     * Getter for
     * <code>metrics.incidents_closed.count_accepted_to_archive</code>.
     */
    public Long getCountAcceptedToArchive() {
        return (Long) get(5);
    }

    /**
     * Setter for <code>metrics.incidents_closed.count_auto_closed</code>.
     */
    public void setCountAutoClosed(Long value) {
        set(6, value);
    }

    /**
     * Getter for <code>metrics.incidents_closed.count_auto_closed</code>.
     */
    public Long getCountAutoClosed() {
        return (Long) get(6);
    }

    /**
     * Setter for <code>metrics.incidents_closed.count_manual_closed</code>.
     */
    public void setCountManualClosed(Long value) {
        set(7, value);
    }

    /**
     * Getter for <code>metrics.incidents_closed.count_manual_closed</code>.
     */
    public Long getCountManualClosed() {
        return (Long) get(7);
    }

    /**
     * Setter for <code>metrics.incidents_closed.count_returned</code>.
     */
    public void setCountReturned(Long value) {
        set(8, value);
    }

    /**
     * Getter for <code>metrics.incidents_closed.count_returned</code>.
     */
    public Long getCountReturned() {
        return (Long) get(8);
    }

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

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

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

    /**
     * Create a detached IncidentsClosedRecord
     */
    public IncidentsClosedRecord() {
        super(IncidentsClosed.INCIDENTS_CLOSED);
    }

    /**
     * Create a detached, initialised IncidentsClosedRecord
     */
    public IncidentsClosedRecord(Long incidentsClosedId, String recruitmentId, Timestamp updateDate, Date infoDate, Long countRefusedToArchive, Long countAcceptedToArchive, Long countAutoClosed, Long countManualClosed, Long countReturned) {
        super(IncidentsClosed.INCIDENTS_CLOSED);

        setIncidentsClosedId(incidentsClosedId);
        setRecruitmentId(recruitmentId);
        setUpdateDate(updateDate);
        setInfoDate(infoDate);
        setCountRefusedToArchive(countRefusedToArchive);
        setCountAcceptedToArchive(countAcceptedToArchive);
        setCountAutoClosed(countAutoClosed);
        setCountManualClosed(countManualClosed);
        setCountReturned(countReturned);
        resetChangedOnNotNull();
    }
}
