/*
 * 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.PgStatReplicationSlots;

import java.sql.Timestamp;

import org.jooq.impl.TableRecordImpl;


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>pg_catalog.pg_stat_replication_slots.slot_name</code>.
     */
    public void setSlotName(String value) {
        set(0, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_stat_replication_slots.slot_name</code>.
     */
    public String getSlotName() {
        return (String) get(0);
    }

    /**
     * Setter for <code>pg_catalog.pg_stat_replication_slots.spill_txns</code>.
     */
    public void setSpillTxns(Long value) {
        set(1, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_stat_replication_slots.spill_txns</code>.
     */
    public Long getSpillTxns() {
        return (Long) get(1);
    }

    /**
     * Setter for <code>pg_catalog.pg_stat_replication_slots.spill_count</code>.
     */
    public void setSpillCount(Long value) {
        set(2, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_stat_replication_slots.spill_count</code>.
     */
    public Long getSpillCount() {
        return (Long) get(2);
    }

    /**
     * Setter for <code>pg_catalog.pg_stat_replication_slots.spill_bytes</code>.
     */
    public void setSpillBytes(Long value) {
        set(3, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_stat_replication_slots.spill_bytes</code>.
     */
    public Long getSpillBytes() {
        return (Long) get(3);
    }

    /**
     * Setter for <code>pg_catalog.pg_stat_replication_slots.stream_txns</code>.
     */
    public void setStreamTxns(Long value) {
        set(4, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_stat_replication_slots.stream_txns</code>.
     */
    public Long getStreamTxns() {
        return (Long) get(4);
    }

    /**
     * Setter for
     * <code>pg_catalog.pg_stat_replication_slots.stream_count</code>.
     */
    public void setStreamCount(Long value) {
        set(5, value);
    }

    /**
     * Getter for
     * <code>pg_catalog.pg_stat_replication_slots.stream_count</code>.
     */
    public Long getStreamCount() {
        return (Long) get(5);
    }

    /**
     * Setter for
     * <code>pg_catalog.pg_stat_replication_slots.stream_bytes</code>.
     */
    public void setStreamBytes(Long value) {
        set(6, value);
    }

    /**
     * Getter for
     * <code>pg_catalog.pg_stat_replication_slots.stream_bytes</code>.
     */
    public Long getStreamBytes() {
        return (Long) get(6);
    }

    /**
     * Setter for <code>pg_catalog.pg_stat_replication_slots.total_txns</code>.
     */
    public void setTotalTxns(Long value) {
        set(7, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_stat_replication_slots.total_txns</code>.
     */
    public Long getTotalTxns() {
        return (Long) get(7);
    }

    /**
     * Setter for <code>pg_catalog.pg_stat_replication_slots.total_bytes</code>.
     */
    public void setTotalBytes(Long value) {
        set(8, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_stat_replication_slots.total_bytes</code>.
     */
    public Long getTotalBytes() {
        return (Long) get(8);
    }

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

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

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

    /**
     * Create a detached PgStatReplicationSlotsRecord
     */
    public PgStatReplicationSlotsRecord() {
        super(PgStatReplicationSlots.PG_STAT_REPLICATION_SLOTS);
    }

    /**
     * Create a detached, initialised PgStatReplicationSlotsRecord
     */
    public PgStatReplicationSlotsRecord(String slotName, Long spillTxns, Long spillCount, Long spillBytes, Long streamTxns, Long streamCount, Long streamBytes, Long totalTxns, Long totalBytes, Timestamp statsReset) {
        super(PgStatReplicationSlots.PG_STAT_REPLICATION_SLOTS);

        setSlotName(slotName);
        setSpillTxns(spillTxns);
        setSpillCount(spillCount);
        setSpillBytes(spillBytes);
        setStreamTxns(streamTxns);
        setStreamCount(streamCount);
        setStreamBytes(streamBytes);
        setTotalTxns(totalTxns);
        setTotalBytes(totalBytes);
        setStatsReset(statsReset);
        resetChangedOnNotNull();
    }
}
