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

import java.math.BigDecimal;
import java.sql.Timestamp;

import org.jooq.impl.TableRecordImpl;


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>pg_catalog.pg_stat_wal.wal_records</code>.
     */
    public void setWalRecords(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_stat_wal.wal_records</code>.
     */
    public Long getWalRecords() {
        return (Long) get(0);
    }

    /**
     * Setter for <code>pg_catalog.pg_stat_wal.wal_fpi</code>.
     */
    public void setWalFpi(Long value) {
        set(1, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_stat_wal.wal_fpi</code>.
     */
    public Long getWalFpi() {
        return (Long) get(1);
    }

    /**
     * Setter for <code>pg_catalog.pg_stat_wal.wal_bytes</code>.
     */
    public void setWalBytes(BigDecimal value) {
        set(2, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_stat_wal.wal_bytes</code>.
     */
    public BigDecimal getWalBytes() {
        return (BigDecimal) get(2);
    }

    /**
     * Setter for <code>pg_catalog.pg_stat_wal.wal_buffers_full</code>.
     */
    public void setWalBuffersFull(Long value) {
        set(3, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_stat_wal.wal_buffers_full</code>.
     */
    public Long getWalBuffersFull() {
        return (Long) get(3);
    }

    /**
     * Setter for <code>pg_catalog.pg_stat_wal.wal_write</code>.
     */
    public void setWalWrite(Long value) {
        set(4, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_stat_wal.wal_write</code>.
     */
    public Long getWalWrite() {
        return (Long) get(4);
    }

    /**
     * Setter for <code>pg_catalog.pg_stat_wal.wal_sync</code>.
     */
    public void setWalSync(Long value) {
        set(5, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_stat_wal.wal_sync</code>.
     */
    public Long getWalSync() {
        return (Long) get(5);
    }

    /**
     * Setter for <code>pg_catalog.pg_stat_wal.wal_write_time</code>.
     */
    public void setWalWriteTime(Double value) {
        set(6, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_stat_wal.wal_write_time</code>.
     */
    public Double getWalWriteTime() {
        return (Double) get(6);
    }

    /**
     * Setter for <code>pg_catalog.pg_stat_wal.wal_sync_time</code>.
     */
    public void setWalSyncTime(Double value) {
        set(7, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_stat_wal.wal_sync_time</code>.
     */
    public Double getWalSyncTime() {
        return (Double) get(7);
    }

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

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

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

    /**
     * Create a detached PgStatWalRecord
     */
    public PgStatWalRecord() {
        super(PgStatWal.PG_STAT_WAL);
    }

    /**
     * Create a detached, initialised PgStatWalRecord
     */
    public PgStatWalRecord(Long walRecords, Long walFpi, BigDecimal walBytes, Long walBuffersFull, Long walWrite, Long walSync, Double walWriteTime, Double walSyncTime, Timestamp statsReset) {
        super(PgStatWal.PG_STAT_WAL);

        setWalRecords(walRecords);
        setWalFpi(walFpi);
        setWalBytes(walBytes);
        setWalBuffersFull(walBuffersFull);
        setWalWrite(walWrite);
        setWalSync(walSync);
        setWalWriteTime(walWriteTime);
        setWalSyncTime(walSyncTime);
        setStatsReset(statsReset);
        resetChangedOnNotNull();
    }
}
