/*
 * This file is generated by jOOQ.
 */
package ervu_secret.ervu_secret.db_beans.pg_catalog.tables.records;


import ervu_secret.ervu_secret.db_beans.pg_catalog.tables.PgStatSubscriptionStats;

import java.sql.Timestamp;

import org.jooq.impl.TableRecordImpl;


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>pg_catalog.pg_stat_subscription_stats.subid</code>.
     */
    public void setSubid(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_stat_subscription_stats.subid</code>.
     */
    public Long getSubid() {
        return (Long) get(0);
    }

    /**
     * Setter for <code>pg_catalog.pg_stat_subscription_stats.subname</code>.
     */
    public void setSubname(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_stat_subscription_stats.subname</code>.
     */
    public String getSubname() {
        return (String) get(1);
    }

    /**
     * Setter for
     * <code>pg_catalog.pg_stat_subscription_stats.apply_error_count</code>.
     */
    public void setApplyErrorCount(Long value) {
        set(2, value);
    }

    /**
     * Getter for
     * <code>pg_catalog.pg_stat_subscription_stats.apply_error_count</code>.
     */
    public Long getApplyErrorCount() {
        return (Long) get(2);
    }

    /**
     * Setter for
     * <code>pg_catalog.pg_stat_subscription_stats.sync_error_count</code>.
     */
    public void setSyncErrorCount(Long value) {
        set(3, value);
    }

    /**
     * Getter for
     * <code>pg_catalog.pg_stat_subscription_stats.sync_error_count</code>.
     */
    public Long getSyncErrorCount() {
        return (Long) get(3);
    }

    /**
     * Setter for
     * <code>pg_catalog.pg_stat_subscription_stats.stats_reset</code>.
     */
    public void setStatsReset(Timestamp value) {
        set(4, value);
    }

    /**
     * Getter for
     * <code>pg_catalog.pg_stat_subscription_stats.stats_reset</code>.
     */
    public Timestamp getStatsReset() {
        return (Timestamp) get(4);
    }

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

    /**
     * Create a detached PgStatSubscriptionStatsRecord
     */
    public PgStatSubscriptionStatsRecord() {
        super(PgStatSubscriptionStats.PG_STAT_SUBSCRIPTION_STATS);
    }

    /**
     * Create a detached, initialised PgStatSubscriptionStatsRecord
     */
    public PgStatSubscriptionStatsRecord(Long subid, String subname, Long applyErrorCount, Long syncErrorCount, Timestamp statsReset) {
        super(PgStatSubscriptionStats.PG_STAT_SUBSCRIPTION_STATS);

        setSubid(subid);
        setSubname(subname);
        setApplyErrorCount(applyErrorCount);
        setSyncErrorCount(syncErrorCount);
        setStatsReset(statsReset);
        resetChangedOnNotNull();
    }
}
