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

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


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>pg_catalog.pg_auth_members.roleid</code>.
     */
    public void setRoleid(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_auth_members.roleid</code>.
     */
    public Long getRoleid() {
        return (Long) get(0);
    }

    /**
     * Setter for <code>pg_catalog.pg_auth_members.member</code>.
     */
    public void setMember(Long value) {
        set(1, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_auth_members.member</code>.
     */
    public Long getMember() {
        return (Long) get(1);
    }

    /**
     * Setter for <code>pg_catalog.pg_auth_members.grantor</code>.
     */
    public void setGrantor(Long value) {
        set(2, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_auth_members.grantor</code>.
     */
    public Long getGrantor() {
        return (Long) get(2);
    }

    /**
     * Setter for <code>pg_catalog.pg_auth_members.admin_option</code>.
     */
    public void setAdminOption(Boolean value) {
        set(3, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_auth_members.admin_option</code>.
     */
    public Boolean getAdminOption() {
        return (Boolean) get(3);
    }

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

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

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

    /**
     * Create a detached PgAuthMembersRecord
     */
    public PgAuthMembersRecord() {
        super(PgAuthMembers.PG_AUTH_MEMBERS);
    }

    /**
     * Create a detached, initialised PgAuthMembersRecord
     */
    public PgAuthMembersRecord(Long roleid, Long member, Long grantor, Boolean adminOption) {
        super(PgAuthMembers.PG_AUTH_MEMBERS);

        setRoleid(roleid);
        setMember(member);
        setGrantor(grantor);
        setAdminOption(adminOption);
        resetChangedOnNotNull();
    }
}
