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

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


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>pg_catalog.pg_inherits.inhrelid</code>.
     */
    public void setInhrelid(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_inherits.inhrelid</code>.
     */
    public Long getInhrelid() {
        return (Long) get(0);
    }

    /**
     * Setter for <code>pg_catalog.pg_inherits.inhparent</code>.
     */
    public void setInhparent(Long value) {
        set(1, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_inherits.inhparent</code>.
     */
    public Long getInhparent() {
        return (Long) get(1);
    }

    /**
     * Setter for <code>pg_catalog.pg_inherits.inhseqno</code>.
     */
    public void setInhseqno(Integer value) {
        set(2, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_inherits.inhseqno</code>.
     */
    public Integer getInhseqno() {
        return (Integer) get(2);
    }

    /**
     * Setter for <code>pg_catalog.pg_inherits.inhdetachpending</code>.
     */
    public void setInhdetachpending(Boolean value) {
        set(3, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_inherits.inhdetachpending</code>.
     */
    public Boolean getInhdetachpending() {
        return (Boolean) get(3);
    }

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

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

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

    /**
     * Create a detached PgInheritsRecord
     */
    public PgInheritsRecord() {
        super(PgInherits.PG_INHERITS);
    }

    /**
     * Create a detached, initialised PgInheritsRecord
     */
    public PgInheritsRecord(Long inhrelid, Long inhparent, Integer inhseqno, Boolean inhdetachpending) {
        super(PgInherits.PG_INHERITS);

        setInhrelid(inhrelid);
        setInhparent(inhparent);
        setInhseqno(inhseqno);
        setInhdetachpending(inhdetachpending);
        resetChangedOnNotNull();
    }
}
