package org.jooq.meta.hsqldb.information_schema.tables;
import java.util.Arrays;
import java.util.List;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Schema;
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.hsqldb.information_schema.InformationSchema;
import org.jooq.meta.hsqldb.information_schema.Keys;
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TableConstraints extends TableImpl<Record> {
private static final long serialVersionUID = 1492215078;
public static final TableConstraints TABLE_CONSTRAINTS = new TableConstraints();
@Override
public Class<Record> getRecordType() {
return Record.class;
}
public final TableField<Record, String> CONSTRAINT_CATALOG = createField(DSL.name("CONSTRAINT_CATALOG"), SQLDataType.VARCHAR(128), this, "");
public final TableField<Record, String> CONSTRAINT_SCHEMA = createField(DSL.name("CONSTRAINT_SCHEMA"), SQLDataType.VARCHAR(128), this, "");
public final TableField<Record, String> CONSTRAINT_NAME = createField(DSL.name("CONSTRAINT_NAME"), SQLDataType.VARCHAR(128), this, "");
public final TableField<Record, String> CONSTRAINT_TYPE = createField(DSL.name("CONSTRAINT_TYPE"), SQLDataType.VARCHAR(65536), this, "");
public final TableField<Record, String> TABLE_CATALOG = createField(DSL.name("TABLE_CATALOG"), SQLDataType.VARCHAR(128), this, "");
public final TableField<Record, String> TABLE_SCHEMA = createField(DSL.name("TABLE_SCHEMA"), SQLDataType.VARCHAR(128), this, "");
public final TableField<Record, String> TABLE_NAME = createField(DSL.name("TABLE_NAME"), SQLDataType.VARCHAR(128), this, "");
public final TableField<Record, String> IS_DEFERRABLE = createField(DSL.name("IS_DEFERRABLE"), SQLDataType.VARCHAR(3), this, "");
public final TableField<Record, String> INITIALLY_DEFERRED = createField(DSL.name("INITIALLY_DEFERRED"), SQLDataType.VARCHAR(3), this, "");
private TableConstraints(Name alias, Table<Record> aliased) {
this(alias, aliased, null);
}
private TableConstraints(Name alias, Table<Record> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment("one row for each table constraint associated with a table"), TableOptions.table());
}
public TableConstraints(String alias) {
this(DSL.name(alias), TABLE_CONSTRAINTS);
}
public TableConstraints(Name alias) {
this(alias, TABLE_CONSTRAINTS);
}
public TableConstraints() {
this(DSL.name("TABLE_CONSTRAINTS"), null);
}
public <O extends Record> TableConstraints(Table<O> child, ForeignKey<O, Record> key) {
super(child, key, TABLE_CONSTRAINTS);
}
@Override
public Schema getSchema() {
return InformationSchema.INFORMATION_SCHEMA;
}
@Override
public UniqueKey<Record> getPrimaryKey() {
return Keys.SYNTHETIC_PK_TABLE_CONSTRAINTS;
}
@Override
public List<UniqueKey<Record>> getKeys() {
return Arrays.<UniqueKey<Record>>asList(Keys.SYNTHETIC_PK_TABLE_CONSTRAINTS);
}
@Override
public TableConstraints as(String alias) {
return new TableConstraints(DSL.name(alias), this);
}
@Override
public TableConstraints as(Name alias) {
return new TableConstraints(alias, this);
}
@Override
public TableConstraints rename(String name) {
return new TableConstraints(DSL.name(name), null);
}
@Override
public TableConstraints rename(Name name) {
return new TableConstraints(name, null);
}
}