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.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 DomainConstraints extends TableImpl<Record> {
private static final long serialVersionUID = -753526410;
public static final DomainConstraints DOMAIN_CONSTRAINTS = new DomainConstraints();
@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> DOMAIN_CATALOG = createField(DSL.name("DOMAIN_CATALOG"), SQLDataType.VARCHAR(128), this, "");
public final TableField<Record, String> DOMAIN_SCHEMA = createField(DSL.name("DOMAIN_SCHEMA"), SQLDataType.VARCHAR(128), this, "");
public final TableField<Record, String> DOMAIN_NAME = createField(DSL.name("DOMAIN_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 DomainConstraints(Name alias, Table<Record> aliased) {
this(alias, aliased, null);
}
private DomainConstraints(Name alias, Table<Record> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment("one row for each check constraint included in a domain definition"), TableOptions.table());
}
public DomainConstraints(String alias) {
this(DSL.name(alias), DOMAIN_CONSTRAINTS);
}
public DomainConstraints(Name alias) {
this(alias, DOMAIN_CONSTRAINTS);
}
public DomainConstraints() {
this(DSL.name("DOMAIN_CONSTRAINTS"), null);
}
public <O extends Record> DomainConstraints(Table<O> child, ForeignKey<O, Record> key) {
super(child, key, DOMAIN_CONSTRAINTS);
}
@Override
public Schema getSchema() {
return InformationSchema.INFORMATION_SCHEMA;
}
@Override
public List<ForeignKey<Record, ?>> getReferences() {
return Arrays.<ForeignKey<Record, ?>>asList(Keys.SYNTHETIC_FK_DOMAIN_CONSTRAINTS__SYNTHETIC_PK_CHECK_CONSTRAINTS, Keys.SYNTHETIC_FK_DOMAIN_CONSTRAINTS__SYNTHETIC_PK_DOMAINS);
}
public CheckConstraints checkConstraints() {
return new CheckConstraints(this, Keys.SYNTHETIC_FK_DOMAIN_CONSTRAINTS__SYNTHETIC_PK_CHECK_CONSTRAINTS);
}
public Domains domains() {
return new Domains(this, Keys.SYNTHETIC_FK_DOMAIN_CONSTRAINTS__SYNTHETIC_PK_DOMAINS);
}
@Override
public DomainConstraints as(String alias) {
return new DomainConstraints(DSL.name(alias), this);
}
@Override
public DomainConstraints as(Name alias) {
return new DomainConstraints(alias, this);
}
@Override
public DomainConstraints rename(String name) {
return new DomainConstraints(DSL.name(name), null);
}
@Override
public DomainConstraints rename(Name name) {
return new DomainConstraints(name, null);
}
}