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

import org.jooq.impl.TableRecordImpl;


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

    private static final long serialVersionUID = 1L;

    /**
     * @deprecated Unknown data type. If this is a qualified, user-defined type,
     * it may have been excluded from code generation. If this is a built-in
     * type, you can define an explicit {@link org.jooq.Binding} to specify how
     * this type should be handled. Deprecation can be turned off using
     * {@literal <deprecationOnUnknownTypes/>} in your code generator
     * configuration.
     */
    @Deprecated
    public void setRelid(Object value) {
        set(0, value);
    }

    /**
     * @deprecated Unknown data type. If this is a qualified, user-defined type,
     * it may have been excluded from code generation. If this is a built-in
     * type, you can define an explicit {@link org.jooq.Binding} to specify how
     * this type should be handled. Deprecation can be turned off using
     * {@literal <deprecationOnUnknownTypes/>} in your code generator
     * configuration.
     */
    @Deprecated
    public Object getRelid() {
        return get(0);
    }

    /**
     * @deprecated Unknown data type. If this is a qualified, user-defined type,
     * it may have been excluded from code generation. If this is a built-in
     * type, you can define an explicit {@link org.jooq.Binding} to specify how
     * this type should be handled. Deprecation can be turned off using
     * {@literal <deprecationOnUnknownTypes/>} in your code generator
     * configuration.
     */
    @Deprecated
    public void setParentrelid(Object value) {
        set(1, value);
    }

    /**
     * @deprecated Unknown data type. If this is a qualified, user-defined type,
     * it may have been excluded from code generation. If this is a built-in
     * type, you can define an explicit {@link org.jooq.Binding} to specify how
     * this type should be handled. Deprecation can be turned off using
     * {@literal <deprecationOnUnknownTypes/>} in your code generator
     * configuration.
     */
    @Deprecated
    public Object getParentrelid() {
        return get(1);
    }

    /**
     * Setter for <code>pg_catalog.pg_partition_tree.isleaf</code>.
     */
    public void setIsleaf(Boolean value) {
        set(2, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_partition_tree.isleaf</code>.
     */
    public Boolean getIsleaf() {
        return (Boolean) get(2);
    }

    /**
     * Setter for <code>pg_catalog.pg_partition_tree.level</code>.
     */
    public void setLevel(Integer value) {
        set(3, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_partition_tree.level</code>.
     */
    public Integer getLevel() {
        return (Integer) get(3);
    }

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

    /**
     * Create a detached PgPartitionTreeRecord
     */
    public PgPartitionTreeRecord() {
        super(PgPartitionTree.PG_PARTITION_TREE);
    }

    /**
     * Create a detached, initialised PgPartitionTreeRecord
     */
    public PgPartitionTreeRecord(Object relid, Object parentrelid, Boolean isleaf, Integer level) {
        super(PgPartitionTree.PG_PARTITION_TREE);

        setRelid(relid);
        setParentrelid(parentrelid);
        setIsleaf(isleaf);
        setLevel(level);
        resetChangedOnNotNull();
    }
}
