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

import org.jooq.Record2;
import org.jooq.impl.UpdatableRecordImpl;


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>pg_catalog.pg_db_role_setting.setdatabase</code>.
     */
    public void setSetdatabase(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_db_role_setting.setdatabase</code>.
     */
    public Long getSetdatabase() {
        return (Long) get(0);
    }

    /**
     * Setter for <code>pg_catalog.pg_db_role_setting.setrole</code>.
     */
    public void setSetrole(Long value) {
        set(1, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_db_role_setting.setrole</code>.
     */
    public Long getSetrole() {
        return (Long) get(1);
    }

    /**
     * Setter for <code>pg_catalog.pg_db_role_setting.setconfig</code>.
     */
    public void setSetconfig(String[] value) {
        set(2, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_db_role_setting.setconfig</code>.
     */
    public String[] getSetconfig() {
        return (String[]) get(2);
    }

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

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

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

    /**
     * Create a detached PgDbRoleSettingRecord
     */
    public PgDbRoleSettingRecord() {
        super(PgDbRoleSetting.PG_DB_ROLE_SETTING);
    }

    /**
     * Create a detached, initialised PgDbRoleSettingRecord
     */
    public PgDbRoleSettingRecord(Long setdatabase, Long setrole, String[] setconfig) {
        super(PgDbRoleSetting.PG_DB_ROLE_SETTING);

        setSetdatabase(setdatabase);
        setSetrole(setrole);
        setSetconfig(setconfig);
        resetChangedOnNotNull();
    }
}
