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

import java.sql.Timestamp;

import org.jooq.impl.TableRecordImpl;


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>pg_catalog.pg_stat_wal_receiver.pid</code>.
     */
    public void setPid(Integer value) {
        set(0, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_stat_wal_receiver.pid</code>.
     */
    public Integer getPid() {
        return (Integer) get(0);
    }

    /**
     * Setter for <code>pg_catalog.pg_stat_wal_receiver.status</code>.
     */
    public void setStatus(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_stat_wal_receiver.status</code>.
     */
    public String getStatus() {
        return (String) get(1);
    }

    /**
     * @deprecated Unknown data type. If this is a qualified, user-defined type,
     * it may have been excluded from code generation. If this is a built-in
     * type, you can define an explicit {@link org.jooq.Binding} to specify how
     * this type should be handled. Deprecation can be turned off using
     * {@literal <deprecationOnUnknownTypes/>} in your code generator
     * configuration.
     */
    @Deprecated
    public void setReceiveStartLsn(Object value) {
        set(2, value);
    }

    /**
     * @deprecated Unknown data type. If this is a qualified, user-defined type,
     * it may have been excluded from code generation. If this is a built-in
     * type, you can define an explicit {@link org.jooq.Binding} to specify how
     * this type should be handled. Deprecation can be turned off using
     * {@literal <deprecationOnUnknownTypes/>} in your code generator
     * configuration.
     */
    @Deprecated
    public Object getReceiveStartLsn() {
        return get(2);
    }

    /**
     * Setter for
     * <code>pg_catalog.pg_stat_wal_receiver.receive_start_tli</code>.
     */
    public void setReceiveStartTli(Integer value) {
        set(3, value);
    }

    /**
     * Getter for
     * <code>pg_catalog.pg_stat_wal_receiver.receive_start_tli</code>.
     */
    public Integer getReceiveStartTli() {
        return (Integer) get(3);
    }

    /**
     * @deprecated Unknown data type. If this is a qualified, user-defined type,
     * it may have been excluded from code generation. If this is a built-in
     * type, you can define an explicit {@link org.jooq.Binding} to specify how
     * this type should be handled. Deprecation can be turned off using
     * {@literal <deprecationOnUnknownTypes/>} in your code generator
     * configuration.
     */
    @Deprecated
    public void setWrittenLsn(Object value) {
        set(4, value);
    }

    /**
     * @deprecated Unknown data type. If this is a qualified, user-defined type,
     * it may have been excluded from code generation. If this is a built-in
     * type, you can define an explicit {@link org.jooq.Binding} to specify how
     * this type should be handled. Deprecation can be turned off using
     * {@literal <deprecationOnUnknownTypes/>} in your code generator
     * configuration.
     */
    @Deprecated
    public Object getWrittenLsn() {
        return get(4);
    }

    /**
     * @deprecated Unknown data type. If this is a qualified, user-defined type,
     * it may have been excluded from code generation. If this is a built-in
     * type, you can define an explicit {@link org.jooq.Binding} to specify how
     * this type should be handled. Deprecation can be turned off using
     * {@literal <deprecationOnUnknownTypes/>} in your code generator
     * configuration.
     */
    @Deprecated
    public void setFlushedLsn(Object value) {
        set(5, value);
    }

    /**
     * @deprecated Unknown data type. If this is a qualified, user-defined type,
     * it may have been excluded from code generation. If this is a built-in
     * type, you can define an explicit {@link org.jooq.Binding} to specify how
     * this type should be handled. Deprecation can be turned off using
     * {@literal <deprecationOnUnknownTypes/>} in your code generator
     * configuration.
     */
    @Deprecated
    public Object getFlushedLsn() {
        return get(5);
    }

    /**
     * Setter for <code>pg_catalog.pg_stat_wal_receiver.received_tli</code>.
     */
    public void setReceivedTli(Integer value) {
        set(6, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_stat_wal_receiver.received_tli</code>.
     */
    public Integer getReceivedTli() {
        return (Integer) get(6);
    }

    /**
     * Setter for
     * <code>pg_catalog.pg_stat_wal_receiver.last_msg_send_time</code>.
     */
    public void setLastMsgSendTime(Timestamp value) {
        set(7, value);
    }

    /**
     * Getter for
     * <code>pg_catalog.pg_stat_wal_receiver.last_msg_send_time</code>.
     */
    public Timestamp getLastMsgSendTime() {
        return (Timestamp) get(7);
    }

    /**
     * Setter for
     * <code>pg_catalog.pg_stat_wal_receiver.last_msg_receipt_time</code>.
     */
    public void setLastMsgReceiptTime(Timestamp value) {
        set(8, value);
    }

    /**
     * Getter for
     * <code>pg_catalog.pg_stat_wal_receiver.last_msg_receipt_time</code>.
     */
    public Timestamp getLastMsgReceiptTime() {
        return (Timestamp) get(8);
    }

    /**
     * @deprecated Unknown data type. If this is a qualified, user-defined type,
     * it may have been excluded from code generation. If this is a built-in
     * type, you can define an explicit {@link org.jooq.Binding} to specify how
     * this type should be handled. Deprecation can be turned off using
     * {@literal <deprecationOnUnknownTypes/>} in your code generator
     * configuration.
     */
    @Deprecated
    public void setLatestEndLsn(Object value) {
        set(9, value);
    }

    /**
     * @deprecated Unknown data type. If this is a qualified, user-defined type,
     * it may have been excluded from code generation. If this is a built-in
     * type, you can define an explicit {@link org.jooq.Binding} to specify how
     * this type should be handled. Deprecation can be turned off using
     * {@literal <deprecationOnUnknownTypes/>} in your code generator
     * configuration.
     */
    @Deprecated
    public Object getLatestEndLsn() {
        return get(9);
    }

    /**
     * Setter for <code>pg_catalog.pg_stat_wal_receiver.latest_end_time</code>.
     */
    public void setLatestEndTime(Timestamp value) {
        set(10, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_stat_wal_receiver.latest_end_time</code>.
     */
    public Timestamp getLatestEndTime() {
        return (Timestamp) get(10);
    }

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

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

    /**
     * Setter for <code>pg_catalog.pg_stat_wal_receiver.sender_host</code>.
     */
    public void setSenderHost(String value) {
        set(12, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_stat_wal_receiver.sender_host</code>.
     */
    public String getSenderHost() {
        return (String) get(12);
    }

    /**
     * Setter for <code>pg_catalog.pg_stat_wal_receiver.sender_port</code>.
     */
    public void setSenderPort(Integer value) {
        set(13, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_stat_wal_receiver.sender_port</code>.
     */
    public Integer getSenderPort() {
        return (Integer) get(13);
    }

    /**
     * Setter for <code>pg_catalog.pg_stat_wal_receiver.conninfo</code>.
     */
    public void setConninfo(String value) {
        set(14, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_stat_wal_receiver.conninfo</code>.
     */
    public String getConninfo() {
        return (String) get(14);
    }

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

    /**
     * Create a detached PgStatWalReceiverRecord
     */
    public PgStatWalReceiverRecord() {
        super(PgStatWalReceiver.PG_STAT_WAL_RECEIVER);
    }

    /**
     * Create a detached, initialised PgStatWalReceiverRecord
     */
    public PgStatWalReceiverRecord(Integer pid, String status, Object receiveStartLsn, Integer receiveStartTli, Object writtenLsn, Object flushedLsn, Integer receivedTli, Timestamp lastMsgSendTime, Timestamp lastMsgReceiptTime, Object latestEndLsn, Timestamp latestEndTime, String slotName, String senderHost, Integer senderPort, String conninfo) {
        super(PgStatWalReceiver.PG_STAT_WAL_RECEIVER);

        setPid(pid);
        setStatus(status);
        setReceiveStartLsn(receiveStartLsn);
        setReceiveStartTli(receiveStartTli);
        setWrittenLsn(writtenLsn);
        setFlushedLsn(flushedLsn);
        setReceivedTli(receivedTli);
        setLastMsgSendTime(lastMsgSendTime);
        setLastMsgReceiptTime(lastMsgReceiptTime);
        setLatestEndLsn(latestEndLsn);
        setLatestEndTime(latestEndTime);
        setSlotName(slotName);
        setSenderHost(senderHost);
        setSenderPort(senderPort);
        setConninfo(conninfo);
        resetChangedOnNotNull();
    }
}
