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

import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>pg_catalog.pg_publication.oid</code>.
     */
    public void setOid(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_publication.oid</code>.
     */
    public Long getOid() {
        return (Long) get(0);
    }

    /**
     * Setter for <code>pg_catalog.pg_publication.pubname</code>.
     */
    public void setPubname(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_publication.pubname</code>.
     */
    public String getPubname() {
        return (String) get(1);
    }

    /**
     * Setter for <code>pg_catalog.pg_publication.pubowner</code>.
     */
    public void setPubowner(Long value) {
        set(2, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_publication.pubowner</code>.
     */
    public Long getPubowner() {
        return (Long) get(2);
    }

    /**
     * Setter for <code>pg_catalog.pg_publication.puballtables</code>.
     */
    public void setPuballtables(Boolean value) {
        set(3, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_publication.puballtables</code>.
     */
    public Boolean getPuballtables() {
        return (Boolean) get(3);
    }

    /**
     * Setter for <code>pg_catalog.pg_publication.pubinsert</code>.
     */
    public void setPubinsert(Boolean value) {
        set(4, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_publication.pubinsert</code>.
     */
    public Boolean getPubinsert() {
        return (Boolean) get(4);
    }

    /**
     * Setter for <code>pg_catalog.pg_publication.pubupdate</code>.
     */
    public void setPubupdate(Boolean value) {
        set(5, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_publication.pubupdate</code>.
     */
    public Boolean getPubupdate() {
        return (Boolean) get(5);
    }

    /**
     * Setter for <code>pg_catalog.pg_publication.pubdelete</code>.
     */
    public void setPubdelete(Boolean value) {
        set(6, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_publication.pubdelete</code>.
     */
    public Boolean getPubdelete() {
        return (Boolean) get(6);
    }

    /**
     * Setter for <code>pg_catalog.pg_publication.pubtruncate</code>.
     */
    public void setPubtruncate(Boolean value) {
        set(7, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_publication.pubtruncate</code>.
     */
    public Boolean getPubtruncate() {
        return (Boolean) get(7);
    }

    /**
     * Setter for <code>pg_catalog.pg_publication.pubviaroot</code>.
     */
    public void setPubviaroot(Boolean value) {
        set(8, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_publication.pubviaroot</code>.
     */
    public Boolean getPubviaroot() {
        return (Boolean) get(8);
    }

    // -------------------------------------------------------------------------
    // Primary key information
    // -------------------------------------------------------------------------

    @Override
    public Record1<Long> key() {
        return (Record1) super.key();
    }

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

    /**
     * Create a detached PgPublicationRecord
     */
    public PgPublicationRecord() {
        super(PgPublication.PG_PUBLICATION);
    }

    /**
     * Create a detached, initialised PgPublicationRecord
     */
    public PgPublicationRecord(Long oid, String pubname, Long pubowner, Boolean puballtables, Boolean pubinsert, Boolean pubupdate, Boolean pubdelete, Boolean pubtruncate, Boolean pubviaroot) {
        super(PgPublication.PG_PUBLICATION);

        setOid(oid);
        setPubname(pubname);
        setPubowner(pubowner);
        setPuballtables(puballtables);
        setPubinsert(pubinsert);
        setPubupdate(pubupdate);
        setPubdelete(pubdelete);
        setPubtruncate(pubtruncate);
        setPubviaroot(pubviaroot);
        resetChangedOnNotNull();
    }
}
