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


import java.math.BigDecimal;
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.CitizenAppeals;


/**
 * Обжалования. Обжалования граждан
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class CitizenAppealsRecord extends UpdatableRecordImpl<CitizenAppealsRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>metrics.citizen_appeals.citizen_appeals_id</code>.
     */
    public void setCitizenAppealsId(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>metrics.citizen_appeals.citizen_appeals_id</code>.
     */
    public Long getCitizenAppealsId() {
        return (Long) get(0);
    }

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

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

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

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

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

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

    /**
     * Setter for <code>metrics.citizen_appeals.count_submitted</code>. Подано
     * обращений
     */
    public void setCountSubmitted(Long value) {
        set(4, value);
    }

    /**
     * Getter for <code>metrics.citizen_appeals.count_submitted</code>. Подано
     * обращений
     */
    public Long getCountSubmitted() {
        return (Long) get(4);
    }

    /**
     * Setter for <code>metrics.citizen_appeals.count_satisfided</code>.
     * Удовлетворенных
     */
    public void setCountSatisfided(Long value) {
        set(5, value);
    }

    /**
     * Getter for <code>metrics.citizen_appeals.count_satisfided</code>.
     * Удовлетворенных
     */
    public Long getCountSatisfided() {
        return (Long) get(5);
    }

    /**
     * Setter for <code>metrics.citizen_appeals.count_not_satisfided</code>. Не
     * удовлетворенных
     */
    public void setCountNotSatisfided(Long value) {
        set(6, value);
    }

    /**
     * Getter for <code>metrics.citizen_appeals.count_not_satisfided</code>. Не
     * удовлетворенных
     */
    public Long getCountNotSatisfided() {
        return (Long) get(6);
    }

    /**
     * Setter for <code>metrics.citizen_appeals.count_accepted_expired</code>.
     * Просроченных
     */
    public void setCountAcceptedExpired(Long value) {
        set(7, value);
    }

    /**
     * Getter for <code>metrics.citizen_appeals.count_accepted_expired</code>.
     * Просроченных
     */
    public Long getCountAcceptedExpired() {
        return (Long) get(7);
    }

    /**
     * Setter for <code>metrics.citizen_appeals.count_accepted_on_time</code>.
     * Принято в срок
     */
    public void setCountAcceptedOnTime(Long value) {
        set(8, value);
    }

    /**
     * Getter for <code>metrics.citizen_appeals.count_accepted_on_time</code>.
     * Принято в срок
     */
    public Long getCountAcceptedOnTime() {
        return (Long) get(8);
    }

    /**
     * Setter for <code>metrics.citizen_appeals.average_response_time</code>.
     * Средний срок ответа
     */
    public void setAverageResponseTime(BigDecimal value) {
        set(9, value);
    }

    /**
     * Getter for <code>metrics.citizen_appeals.average_response_time</code>.
     * Средний срок ответа
     */
    public BigDecimal getAverageResponseTime() {
        return (BigDecimal) get(9);
    }

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

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

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

    /**
     * Create a detached CitizenAppealsRecord
     */
    public CitizenAppealsRecord() {
        super(CitizenAppeals.CITIZEN_APPEALS);
    }

    /**
     * Create a detached, initialised CitizenAppealsRecord
     */
    public CitizenAppealsRecord(Long citizenAppealsId, String recruitmentId, Timestamp updateDate, Date infoDate, Long countSubmitted, Long countSatisfided, Long countNotSatisfided, Long countAcceptedExpired, Long countAcceptedOnTime, BigDecimal averageResponseTime) {
        super(CitizenAppeals.CITIZEN_APPEALS);

        setCitizenAppealsId(citizenAppealsId);
        setRecruitmentId(recruitmentId);
        setUpdateDate(updateDate);
        setInfoDate(infoDate);
        setCountSubmitted(countSubmitted);
        setCountSatisfided(countSatisfided);
        setCountNotSatisfided(countNotSatisfided);
        setCountAcceptedExpired(countAcceptedExpired);
        setCountAcceptedOnTime(countAcceptedOnTime);
        setAverageResponseTime(averageResponseTime);
        resetChangedOnNotNull();
    }
}
