/*
 * 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.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$refConstraints extends TableImpl<Record> {

    private static final long serialVersionUID = 1L;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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