/*
 * This file is generated by jOOQ.
 */
package org.jooq.meta.firebird.rdb.tables;


import java.util.Arrays;
import java.util.List;

import org.jooq.Condition;
import org.jooq.Field;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableOptions;
import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.DefaultDataType;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
import org.jooq.meta.firebird.rdb.Domains;
import org.jooq.meta.firebird.rdb.Keys;


/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Rdb$procedures extends TableImpl<Record> {

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of <code>RDB$PROCEDURES</code>
     */
    public static final Rdb$procedures RDB$PROCEDURES = new Rdb$procedures();

    /**
     * The class holding records for this type
     */
    @Override
    public Class<Record> getRecordType() {
        return Record.class;
    }

    /**
     * The column <code>RDB$PROCEDURES.RDB$PROCEDURE_NAME</code>.
     */
    public final TableField<Record, String> RDB$PROCEDURE_NAME = createField(DSL.name("RDB$PROCEDURE_NAME"), SQLDataType.CHAR(63), this, "");

    /**
     * The column <code>RDB$PROCEDURES.RDB$PROCEDURE_ID</code>.
     */
    public final TableField<Record, Short> RDB$PROCEDURE_ID = createField(DSL.name("RDB$PROCEDURE_ID"), SQLDataType.SMALLINT, this, "");

    /**
     * The column <code>RDB$PROCEDURES.RDB$PROCEDURE_INPUTS</code>.
     */
    public final TableField<Record, Short> RDB$PROCEDURE_INPUTS = createField(DSL.name("RDB$PROCEDURE_INPUTS"), Domains.RDB$PROCEDURE_PARAMETERS.getDataType(), this, "");

    /**
     * The column <code>RDB$PROCEDURES.RDB$PROCEDURE_OUTPUTS</code>.
     */
    public final TableField<Record, Short> RDB$PROCEDURE_OUTPUTS = createField(DSL.name("RDB$PROCEDURE_OUTPUTS"), Domains.RDB$PROCEDURE_PARAMETERS.getDataType(), this, "");

    /**
     * The column <code>RDB$PROCEDURES.RDB$DESCRIPTION</code>.
     */
    public final TableField<Record, String> RDB$DESCRIPTION = createField(DSL.name("RDB$DESCRIPTION"), SQLDataType.CLOB, this, "");

    /**
     * The column <code>RDB$PROCEDURES.RDB$PROCEDURE_SOURCE</code>.
     */
    public final TableField<Record, String> RDB$PROCEDURE_SOURCE = createField(DSL.name("RDB$PROCEDURE_SOURCE"), SQLDataType.CLOB, this, "");

    /**
     * The column <code>RDB$PROCEDURES.RDB$PROCEDURE_BLR</code>.
     */
    public final TableField<Record, byte[]> RDB$PROCEDURE_BLR = createField(DSL.name("RDB$PROCEDURE_BLR"), SQLDataType.BLOB, this, "");

    /**
     * The column <code>RDB$PROCEDURES.RDB$SECURITY_CLASS</code>.
     */
    public final TableField<Record, String> RDB$SECURITY_CLASS = createField(DSL.name("RDB$SECURITY_CLASS"), SQLDataType.CHAR(63), this, "");

    /**
     * The column <code>RDB$PROCEDURES.RDB$OWNER_NAME</code>.
     */
    public final TableField<Record, String> RDB$OWNER_NAME = createField(DSL.name("RDB$OWNER_NAME"), SQLDataType.CHAR(63), this, "");

    /**
     * The column <code>RDB$PROCEDURES.RDB$RUNTIME</code>.
     */
    public final TableField<Record, byte[]> RDB$RUNTIME = createField(DSL.name("RDB$RUNTIME"), SQLDataType.BLOB, this, "");

    /**
     * The column <code>RDB$PROCEDURES.RDB$SYSTEM_FLAG</code>.
     */
    public final TableField<Record, Short> RDB$SYSTEM_FLAG = createField(DSL.name("RDB$SYSTEM_FLAG"), SQLDataType.SMALLINT.nullable(false), this, "");

    /**
     * The column <code>RDB$PROCEDURES.RDB$PROCEDURE_TYPE</code>.
     */
    public final TableField<Record, Short> RDB$PROCEDURE_TYPE = createField(DSL.name("RDB$PROCEDURE_TYPE"), SQLDataType.SMALLINT, this, "");

    /**
     * The column <code>RDB$PROCEDURES.RDB$VALID_BLR</code>.
     */
    public final TableField<Record, Short> RDB$VALID_BLR = createField(DSL.name("RDB$VALID_BLR"), SQLDataType.SMALLINT, this, "");

    /**
     * The column <code>RDB$PROCEDURES.RDB$DEBUG_INFO</code>.
     */
    public final TableField<Record, byte[]> RDB$DEBUG_INFO = createField(DSL.name("RDB$DEBUG_INFO"), SQLDataType.BLOB, this, "");

    /**
     * The column <code>RDB$PROCEDURES.RDB$ENGINE_NAME</code>.
     */
    public final TableField<Record, String> RDB$ENGINE_NAME = createField(DSL.name("RDB$ENGINE_NAME"), SQLDataType.CHAR(63), this, "");

    /**
     * The column <code>RDB$PROCEDURES.RDB$ENTRYPOINT</code>.
     */
    public final TableField<Record, String> RDB$ENTRYPOINT = createField(DSL.name("RDB$ENTRYPOINT"), SQLDataType.CHAR, this, "");

    /**
     * The column <code>RDB$PROCEDURES.RDB$PACKAGE_NAME</code>.
     */
    public final TableField<Record, String> RDB$PACKAGE_NAME = createField(DSL.name("RDB$PACKAGE_NAME"), SQLDataType.CHAR(63), this, "");

    /**
     * The column <code>RDB$PROCEDURES.RDB$PRIVATE_FLAG</code>.
     */
    public final TableField<Record, Short> RDB$PRIVATE_FLAG = createField(DSL.name("RDB$PRIVATE_FLAG"), SQLDataType.SMALLINT, this, "");

    /**
     * @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 final TableField<Record, Object> RDB$SQL_SECURITY = createField(DSL.name("RDB$SQL_SECURITY"), DefaultDataType.getDefaultDataType("\"RDB$SQL_SECURITY\""), this, "");

    private Rdb$procedures(Name alias, Table<Record> aliased) {
        this(alias, aliased, (Field<?>[]) null, null);
    }

    private Rdb$procedures(Name alias, Table<Record> aliased, Field<?>[] parameters, Condition where) {
        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
    }

    /**
     * Create an aliased <code>RDB$PROCEDURES</code> table reference
     */
    public Rdb$procedures(String alias) {
        this(DSL.name(alias), RDB$PROCEDURES);
    }

    /**
     * Create an aliased <code>RDB$PROCEDURES</code> table reference
     */
    public Rdb$procedures(Name alias) {
        this(alias, RDB$PROCEDURES);
    }

    /**
     * Create a <code>RDB$PROCEDURES</code> table reference
     */
    public Rdb$procedures() {
        this(DSL.name("RDB$PROCEDURES"), null);
    }

    @Override
    public List<UniqueKey<Record>> getUniqueKeys() {
        return Arrays.asList(Keys.RDB$INDEX_21, Keys.RDB$INDEX_22);
    }

    @Override
    public Rdb$procedures as(String alias) {
        return new Rdb$procedures(DSL.name(alias), this);
    }

    @Override
    public Rdb$procedures as(Name alias) {
        return new Rdb$procedures(alias, this);
    }

    @Override
    public Rdb$procedures as(Table<?> alias) {
        return new Rdb$procedures(alias.getQualifiedName(), this);
    }
}
