/*
 * This file is generated by jOOQ.
 */
package ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.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.journal_log.tables.EpguNoticeSentError;


/**
 * Журналирование. Ошибки направлений уведомлений на ЕПГУ
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class EpguNoticeSentErrorRecord extends UpdatableRecordImpl<EpguNoticeSentErrorRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>journal_log.epgu_notice_sent_error.epgu_notice_sent_error_id</code>.
     */
    public void setEpguNoticeSentErrorId(Long value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>journal_log.epgu_notice_sent_error.epgu_notice_sent_error_id</code>.
     */
    public Long getEpguNoticeSentErrorId() {
        return (Long) get(0);
    }

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

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

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

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

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

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

    /**
     * Setter for
     * <code>journal_log.epgu_notice_sent_error.count_sending_timeout</code>.
     * превышено время ожидания отправки
     */
    public void setCountSendingTimeout(Long value) {
        set(4, value);
    }

    /**
     * Getter for
     * <code>journal_log.epgu_notice_sent_error.count_sending_timeout</code>.
     * превышено время ожидания отправки
     */
    public Long getCountSendingTimeout() {
        return (Long) get(4);
    }

    /**
     * Setter for
     * <code>journal_log.epgu_notice_sent_error.count_delivery_timeout</code>.
     * превышено время ожидания доставки
     */
    public void setCountDeliveryTimeout(Long value) {
        set(5, value);
    }

    /**
     * Getter for
     * <code>journal_log.epgu_notice_sent_error.count_delivery_timeout</code>.
     * превышено время ожидания доставки
     */
    public Long getCountDeliveryTimeout() {
        return (Long) get(5);
    }

    /**
     * Setter for <code>journal_log.epgu_notice_sent_error.count_error</code>.
     * ошибка. адресат не найден
     */
    public void setCountError(Long value) {
        set(6, value);
    }

    /**
     * Getter for <code>journal_log.epgu_notice_sent_error.count_error</code>.
     * ошибка. адресат не найден
     */
    public Long getCountError() {
        return (Long) get(6);
    }

    /**
     * Setter for
     * <code>journal_log.epgu_notice_sent_error.count_not_formed</code>. не
     * сформировано
     */
    public void setCountNotFormed(Long value) {
        set(7, value);
    }

    /**
     * Getter for
     * <code>journal_log.epgu_notice_sent_error.count_not_formed</code>. не
     * сформировано
     */
    public Long getCountNotFormed() {
        return (Long) get(7);
    }

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

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

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

    /**
     * Create a detached EpguNoticeSentErrorRecord
     */
    public EpguNoticeSentErrorRecord() {
        super(EpguNoticeSentError.EPGU_NOTICE_SENT_ERROR);
    }

    /**
     * Create a detached, initialised EpguNoticeSentErrorRecord
     */
    public EpguNoticeSentErrorRecord(Long epguNoticeSentErrorId, String recruitmentId, Timestamp updateDate, Date infoDate, Long countSendingTimeout, Long countDeliveryTimeout, Long countError, Long countNotFormed) {
        super(EpguNoticeSentError.EPGU_NOTICE_SENT_ERROR);

        setEpguNoticeSentErrorId(epguNoticeSentErrorId);
        setRecruitmentId(recruitmentId);
        setUpdateDate(updateDate);
        setInfoDate(infoDate);
        setCountSendingTimeout(countSendingTimeout);
        setCountDeliveryTimeout(countDeliveryTimeout);
        setCountError(countError);
        setCountNotFormed(countNotFormed);
        resetChangedOnNotNull();
    }
}
