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

import java.sql.Timestamp;

import org.jooq.impl.TableRecordImpl;


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>pg_catalog.pg_prepared_xacts.transaction</code>.
     */
    public void setTransaction(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_prepared_xacts.transaction</code>.
     */
    public Long getTransaction() {
        return (Long) get(0);
    }

    /**
     * Setter for <code>pg_catalog.pg_prepared_xacts.gid</code>.
     */
    public void setGid(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_prepared_xacts.gid</code>.
     */
    public String getGid() {
        return (String) get(1);
    }

    /**
     * Setter for <code>pg_catalog.pg_prepared_xacts.prepared</code>.
     */
    public void setPrepared(Timestamp value) {
        set(2, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_prepared_xacts.prepared</code>.
     */
    public Timestamp getPrepared() {
        return (Timestamp) get(2);
    }

    /**
     * Setter for <code>pg_catalog.pg_prepared_xacts.owner</code>.
     */
    public void setOwner(String value) {
        set(3, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_prepared_xacts.owner</code>.
     */
    public String getOwner() {
        return (String) get(3);
    }

    /**
     * Setter for <code>pg_catalog.pg_prepared_xacts.database</code>.
     */
    public void setDatabase(String value) {
        set(4, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_prepared_xacts.database</code>.
     */
    public String getDatabase() {
        return (String) get(4);
    }

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

    /**
     * Create a detached PgPreparedXactsRecord
     */
    public PgPreparedXactsRecord() {
        super(PgPreparedXacts.PG_PREPARED_XACTS);
    }

    /**
     * Create a detached, initialised PgPreparedXactsRecord
     */
    public PgPreparedXactsRecord(Long transaction, String gid, Timestamp prepared, String owner, String database) {
        super(PgPreparedXacts.PG_PREPARED_XACTS);

        setTransaction(transaction);
        setGid(gid);
        setPrepared(prepared);
        setOwner(owner);
        setDatabase(database);
        resetChangedOnNotNull();
    }
}
