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


import java.math.BigDecimal;

import org.jooq.impl.TableRecordImpl;

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


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

    private static final long serialVersionUID = 1L;

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

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

    /**
     * Setter for <code>metrics.view_incidents_closed.count_all</code>.
     */
    public void setCountAll(Long value) {
        set(1, value);
    }

    /**
     * Getter for <code>metrics.view_incidents_closed.count_all</code>.
     */
    public Long getCountAll() {
        return (Long) get(1);
    }

    /**
     * Setter for
     * <code>metrics.view_incidents_closed.percent_refused_to_archive</code>.
     */
    public void setPercentRefusedToArchive(BigDecimal value) {
        set(2, value);
    }

    /**
     * Getter for
     * <code>metrics.view_incidents_closed.percent_refused_to_archive</code>.
     */
    public BigDecimal getPercentRefusedToArchive() {
        return (BigDecimal) get(2);
    }

    /**
     * Setter for
     * <code>metrics.view_incidents_closed.percent_accepted_to_archive</code>.
     */
    public void setPercentAcceptedToArchive(BigDecimal value) {
        set(3, value);
    }

    /**
     * Getter for
     * <code>metrics.view_incidents_closed.percent_accepted_to_archive</code>.
     */
    public BigDecimal getPercentAcceptedToArchive() {
        return (BigDecimal) get(3);
    }

    /**
     * Setter for
     * <code>metrics.view_incidents_closed.percent_auto_closed</code>.
     */
    public void setPercentAutoClosed(BigDecimal value) {
        set(4, value);
    }

    /**
     * Getter for
     * <code>metrics.view_incidents_closed.percent_auto_closed</code>.
     */
    public BigDecimal getPercentAutoClosed() {
        return (BigDecimal) get(4);
    }

    /**
     * Setter for
     * <code>metrics.view_incidents_closed.percent_manual_closed</code>.
     */
    public void setPercentManualClosed(BigDecimal value) {
        set(5, value);
    }

    /**
     * Getter for
     * <code>metrics.view_incidents_closed.percent_manual_closed</code>.
     */
    public BigDecimal getPercentManualClosed() {
        return (BigDecimal) get(5);
    }

    /**
     * Setter for <code>metrics.view_incidents_closed.percent_returned</code>.
     */
    public void setPercentReturned(BigDecimal value) {
        set(6, value);
    }

    /**
     * Getter for <code>metrics.view_incidents_closed.percent_returned</code>.
     */
    public BigDecimal getPercentReturned() {
        return (BigDecimal) get(6);
    }

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

    /**
     * Create a detached ViewIncidentsClosedRecord
     */
    public ViewIncidentsClosedRecord() {
        super(ViewIncidentsClosed.VIEW_INCIDENTS_CLOSED);
    }

    /**
     * Create a detached, initialised ViewIncidentsClosedRecord
     */
    public ViewIncidentsClosedRecord(Long incidentsClosedId, Long countAll, BigDecimal percentRefusedToArchive, BigDecimal percentAcceptedToArchive, BigDecimal percentAutoClosed, BigDecimal percentManualClosed, BigDecimal percentReturned) {
        super(ViewIncidentsClosed.VIEW_INCIDENTS_CLOSED);

        setIncidentsClosedId(incidentsClosedId);
        setCountAll(countAll);
        setPercentRefusedToArchive(percentRefusedToArchive);
        setPercentAcceptedToArchive(percentAcceptedToArchive);
        setPercentAutoClosed(percentAutoClosed);
        setPercentManualClosed(percentManualClosed);
        setPercentReturned(percentReturned);
        resetChangedOnNotNull();
    }
}
