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

import org.jooq.Record3;
import org.jooq.impl.UpdatableRecordImpl;


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>pg_catalog.pg_init_privs.objoid</code>.
     */
    public void setObjoid(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_init_privs.objoid</code>.
     */
    public Long getObjoid() {
        return (Long) get(0);
    }

    /**
     * Setter for <code>pg_catalog.pg_init_privs.classoid</code>.
     */
    public void setClassoid(Long value) {
        set(1, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_init_privs.classoid</code>.
     */
    public Long getClassoid() {
        return (Long) get(1);
    }

    /**
     * Setter for <code>pg_catalog.pg_init_privs.objsubid</code>.
     */
    public void setObjsubid(Integer value) {
        set(2, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_init_privs.objsubid</code>.
     */
    public Integer getObjsubid() {
        return (Integer) get(2);
    }

    /**
     * Setter for <code>pg_catalog.pg_init_privs.privtype</code>.
     */
    public void setPrivtype(String value) {
        set(3, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_init_privs.privtype</code>.
     */
    public String getPrivtype() {
        return (String) get(3);
    }

    /**
     * Setter for <code>pg_catalog.pg_init_privs.initprivs</code>.
     */
    public void setInitprivs(String[] value) {
        set(4, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_init_privs.initprivs</code>.
     */
    public String[] getInitprivs() {
        return (String[]) get(4);
    }

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

    @Override
    public Record3<Long, Long, Integer> key() {
        return (Record3) super.key();
    }

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

    /**
     * Create a detached PgInitPrivsRecord
     */
    public PgInitPrivsRecord() {
        super(PgInitPrivs.PG_INIT_PRIVS);
    }

    /**
     * Create a detached, initialised PgInitPrivsRecord
     */
    public PgInitPrivsRecord(Long objoid, Long classoid, Integer objsubid, String privtype, String[] initprivs) {
        super(PgInitPrivs.PG_INIT_PRIVS);

        setObjoid(objoid);
        setClassoid(classoid);
        setObjsubid(objsubid);
        setPrivtype(privtype);
        setInitprivs(initprivs);
        resetChangedOnNotNull();
    }
}
