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

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


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

    private static final long serialVersionUID = 1L;

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

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

    /**
     * Setter for <code>pg_catalog.pg_tablespace.spcname</code>.
     */
    public void setSpcname(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_tablespace.spcname</code>.
     */
    public String getSpcname() {
        return (String) get(1);
    }

    /**
     * Setter for <code>pg_catalog.pg_tablespace.spcowner</code>.
     */
    public void setSpcowner(Long value) {
        set(2, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_tablespace.spcowner</code>.
     */
    public Long getSpcowner() {
        return (Long) get(2);
    }

    /**
     * Setter for <code>pg_catalog.pg_tablespace.spcacl</code>.
     */
    public void setSpcacl(String[] value) {
        set(3, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_tablespace.spcacl</code>.
     */
    public String[] getSpcacl() {
        return (String[]) get(3);
    }

    /**
     * Setter for <code>pg_catalog.pg_tablespace.spcoptions</code>.
     */
    public void setSpcoptions(String[] value) {
        set(4, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_tablespace.spcoptions</code>.
     */
    public String[] getSpcoptions() {
        return (String[]) get(4);
    }

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

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

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

    /**
     * Create a detached PgTablespaceRecord
     */
    public PgTablespaceRecord() {
        super(PgTablespace.PG_TABLESPACE);
    }

    /**
     * Create a detached, initialised PgTablespaceRecord
     */
    public PgTablespaceRecord(Long oid, String spcname, Long spcowner, String[] spcacl, String[] spcoptions) {
        super(PgTablespace.PG_TABLESPACE);

        setOid(oid);
        setSpcname(spcname);
        setSpcowner(spcowner);
        setSpcacl(spcacl);
        setSpcoptions(spcoptions);
        resetChangedOnNotNull();
    }
}
