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


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

    private static final long serialVersionUID = 1L;

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

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

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

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

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

    /**
     * The column <code>RDB$TRIGGERS.RDB$TRIGGER_TYPE</code>.
     */
    public final TableField<Record, Long> RDB$TRIGGER_TYPE = createField(DSL.name("RDB$TRIGGER_TYPE"), SQLDataType.BIGINT, this, "");

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

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

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

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

    /**
     * The column <code>RDB$TRIGGERS.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$TRIGGERS.RDB$FLAGS</code>.
     */
    public final TableField<Record, Short> RDB$FLAGS = createField(DSL.name("RDB$FLAGS"), SQLDataType.SMALLINT, this, "");

    /**
     * The column <code>RDB$TRIGGERS.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$TRIGGERS.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$TRIGGERS.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$TRIGGERS.RDB$ENTRYPOINT</code>.
     */
    public final TableField<Record, String> RDB$ENTRYPOINT = createField(DSL.name("RDB$ENTRYPOINT"), SQLDataType.CHAR, 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$triggers(Name alias, Table<Record> aliased) {
        this(alias, aliased, (Field<?>[]) null, null);
    }

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

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

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

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

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

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

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

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