fr.ght1pc9kc.testy.dsl.information_schema.tables.TableConstraints Maven / Gradle / Ivy
The newest version!
/*
* This file is generated by jOOQ.
*/
package fr.ght1pc9kc.testy.dsl.information_schema.tables;
import fr.ght1pc9kc.testy.dsl.information_schema.InformationSchema;
import fr.ght1pc9kc.testy.dsl.information_schema.tables.records.TableConstraintsRecord;
import java.util.function.Function;
import javax.annotation.processing.Generated;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Function15;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Records;
import org.jooq.Row15;
import org.jooq.Schema;
import org.jooq.SelectField;
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;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"https://www.jooq.org",
"jOOQ version:3.18.7"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TableConstraints extends TableImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of
* INFORMATION_SCHEMA.TABLE_CONSTRAINTS
*/
public static final TableConstraints TABLE_CONSTRAINTS = new TableConstraints();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return TableConstraintsRecord.class;
}
/**
* The column
* INFORMATION_SCHEMA.TABLE_CONSTRAINTS.CONSTRAINT_CATALOG
.
*/
public final TableField CONSTRAINT_CATALOG = createField(DSL.name("CONSTRAINT_CATALOG"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column
* INFORMATION_SCHEMA.TABLE_CONSTRAINTS.CONSTRAINT_SCHEMA
.
*/
public final TableField CONSTRAINT_SCHEMA = createField(DSL.name("CONSTRAINT_SCHEMA"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column
* INFORMATION_SCHEMA.TABLE_CONSTRAINTS.CONSTRAINT_NAME
.
*/
public final TableField CONSTRAINT_NAME = createField(DSL.name("CONSTRAINT_NAME"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column
* INFORMATION_SCHEMA.TABLE_CONSTRAINTS.CONSTRAINT_TYPE
.
*/
public final TableField CONSTRAINT_TYPE = createField(DSL.name("CONSTRAINT_TYPE"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column
* INFORMATION_SCHEMA.TABLE_CONSTRAINTS.TABLE_CATALOG
.
*/
public final TableField TABLE_CATALOG = createField(DSL.name("TABLE_CATALOG"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column
* INFORMATION_SCHEMA.TABLE_CONSTRAINTS.TABLE_SCHEMA
.
*/
public final TableField TABLE_SCHEMA = createField(DSL.name("TABLE_SCHEMA"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column INFORMATION_SCHEMA.TABLE_CONSTRAINTS.TABLE_NAME
.
*/
public final TableField TABLE_NAME = createField(DSL.name("TABLE_NAME"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column
* INFORMATION_SCHEMA.TABLE_CONSTRAINTS.IS_DEFERRABLE
.
*/
public final TableField IS_DEFERRABLE = createField(DSL.name("IS_DEFERRABLE"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column
* INFORMATION_SCHEMA.TABLE_CONSTRAINTS.INITIALLY_DEFERRED
.
*/
public final TableField INITIALLY_DEFERRED = createField(DSL.name("INITIALLY_DEFERRED"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column INFORMATION_SCHEMA.TABLE_CONSTRAINTS.ENFORCED
.
*/
public final TableField ENFORCED = createField(DSL.name("ENFORCED"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column
* INFORMATION_SCHEMA.TABLE_CONSTRAINTS.NULLS_DISTINCT
.
*/
public final TableField NULLS_DISTINCT = createField(DSL.name("NULLS_DISTINCT"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column
* INFORMATION_SCHEMA.TABLE_CONSTRAINTS.INDEX_CATALOG
.
*/
public final TableField INDEX_CATALOG = createField(DSL.name("INDEX_CATALOG"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column
* INFORMATION_SCHEMA.TABLE_CONSTRAINTS.INDEX_SCHEMA
.
*/
public final TableField INDEX_SCHEMA = createField(DSL.name("INDEX_SCHEMA"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column INFORMATION_SCHEMA.TABLE_CONSTRAINTS.INDEX_NAME
.
*/
public final TableField INDEX_NAME = createField(DSL.name("INDEX_NAME"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column INFORMATION_SCHEMA.TABLE_CONSTRAINTS.REMARKS
.
*/
public final TableField REMARKS = createField(DSL.name("REMARKS"), SQLDataType.VARCHAR(1000000000), this, "");
private TableConstraints(Name alias, Table aliased) {
this(alias, aliased, null);
}
private TableConstraints(Name alias, Table aliased, Field>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view());
}
/**
* Create an aliased INFORMATION_SCHEMA.TABLE_CONSTRAINTS
table
* reference
*/
public TableConstraints(String alias) {
this(DSL.name(alias), TABLE_CONSTRAINTS);
}
/**
* Create an aliased INFORMATION_SCHEMA.TABLE_CONSTRAINTS
table
* reference
*/
public TableConstraints(Name alias) {
this(alias, TABLE_CONSTRAINTS);
}
/**
* Create a INFORMATION_SCHEMA.TABLE_CONSTRAINTS
table
* reference
*/
public TableConstraints() {
this(DSL.name("TABLE_CONSTRAINTS"), null);
}
public TableConstraints(Table child, ForeignKey key) {
super(child, key, TABLE_CONSTRAINTS);
}
@Override
public Schema getSchema() {
return aliased() ? null : InformationSchema.INFORMATION_SCHEMA;
}
@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 as(Table> alias) {
return new TableConstraints(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public TableConstraints rename(String name) {
return new TableConstraints(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public TableConstraints rename(Name name) {
return new TableConstraints(name, null);
}
/**
* Rename this table
*/
@Override
public TableConstraints rename(Table> name) {
return new TableConstraints(name.getQualifiedName(), null);
}
// -------------------------------------------------------------------------
// Row15 type methods
// -------------------------------------------------------------------------
@Override
public Row15 fieldsRow() {
return (Row15) super.fieldsRow();
}
/**
* Convenience mapping calling {@link SelectField#convertFrom(Function)}.
*/
public SelectField mapping(Function15 super String, ? super String, ? super String, ? super String, ? super String, ? super String, ? super String, ? super String, ? super String, ? super String, ? super String, ? super String, ? super String, ? super String, ? super String, ? extends U> from) {
return convertFrom(Records.mapping(from));
}
/**
* Convenience mapping calling {@link SelectField#convertFrom(Class,
* Function)}.
*/
public SelectField mapping(Class toType, Function15 super String, ? super String, ? super String, ? super String, ? super String, ? super String, ? super String, ? super String, ? super String, ? super String, ? super String, ? super String, ? super String, ? super String, ? super String, ? extends U> from) {
return convertFrom(toType, Records.mapping(from));
}
}