fr.ght1pc9kc.testy.dsl.information_schema.tables.KeyColumnUsage 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.KeyColumnUsageRecord;
import java.util.function.Function;
import javax.annotation.processing.Generated;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Function9;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Records;
import org.jooq.Row9;
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 KeyColumnUsage extends TableImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of
* INFORMATION_SCHEMA.KEY_COLUMN_USAGE
*/
public static final KeyColumnUsage KEY_COLUMN_USAGE = new KeyColumnUsage();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return KeyColumnUsageRecord.class;
}
/**
* The column
* INFORMATION_SCHEMA.KEY_COLUMN_USAGE.CONSTRAINT_CATALOG
.
*/
public final TableField CONSTRAINT_CATALOG = createField(DSL.name("CONSTRAINT_CATALOG"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column
* INFORMATION_SCHEMA.KEY_COLUMN_USAGE.CONSTRAINT_SCHEMA
.
*/
public final TableField CONSTRAINT_SCHEMA = createField(DSL.name("CONSTRAINT_SCHEMA"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column
* INFORMATION_SCHEMA.KEY_COLUMN_USAGE.CONSTRAINT_NAME
.
*/
public final TableField CONSTRAINT_NAME = createField(DSL.name("CONSTRAINT_NAME"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column
* INFORMATION_SCHEMA.KEY_COLUMN_USAGE.TABLE_CATALOG
.
*/
public final TableField TABLE_CATALOG = createField(DSL.name("TABLE_CATALOG"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column INFORMATION_SCHEMA.KEY_COLUMN_USAGE.TABLE_SCHEMA
.
*/
public final TableField TABLE_SCHEMA = createField(DSL.name("TABLE_SCHEMA"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column INFORMATION_SCHEMA.KEY_COLUMN_USAGE.TABLE_NAME
.
*/
public final TableField TABLE_NAME = createField(DSL.name("TABLE_NAME"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column INFORMATION_SCHEMA.KEY_COLUMN_USAGE.COLUMN_NAME
.
*/
public final TableField COLUMN_NAME = createField(DSL.name("COLUMN_NAME"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column
* INFORMATION_SCHEMA.KEY_COLUMN_USAGE.ORDINAL_POSITION
.
*/
public final TableField ORDINAL_POSITION = createField(DSL.name("ORDINAL_POSITION"), SQLDataType.INTEGER, this, "");
/**
* The column
* INFORMATION_SCHEMA.KEY_COLUMN_USAGE.POSITION_IN_UNIQUE_CONSTRAINT
.
*/
public final TableField POSITION_IN_UNIQUE_CONSTRAINT = createField(DSL.name("POSITION_IN_UNIQUE_CONSTRAINT"), SQLDataType.INTEGER, this, "");
private KeyColumnUsage(Name alias, Table aliased) {
this(alias, aliased, null);
}
private KeyColumnUsage(Name alias, Table aliased, Field>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view());
}
/**
* Create an aliased INFORMATION_SCHEMA.KEY_COLUMN_USAGE
table
* reference
*/
public KeyColumnUsage(String alias) {
this(DSL.name(alias), KEY_COLUMN_USAGE);
}
/**
* Create an aliased INFORMATION_SCHEMA.KEY_COLUMN_USAGE
table
* reference
*/
public KeyColumnUsage(Name alias) {
this(alias, KEY_COLUMN_USAGE);
}
/**
* Create a INFORMATION_SCHEMA.KEY_COLUMN_USAGE
table reference
*/
public KeyColumnUsage() {
this(DSL.name("KEY_COLUMN_USAGE"), null);
}
public KeyColumnUsage(Table child, ForeignKey key) {
super(child, key, KEY_COLUMN_USAGE);
}
@Override
public Schema getSchema() {
return aliased() ? null : InformationSchema.INFORMATION_SCHEMA;
}
@Override
public KeyColumnUsage as(String alias) {
return new KeyColumnUsage(DSL.name(alias), this);
}
@Override
public KeyColumnUsage as(Name alias) {
return new KeyColumnUsage(alias, this);
}
@Override
public KeyColumnUsage as(Table> alias) {
return new KeyColumnUsage(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public KeyColumnUsage rename(String name) {
return new KeyColumnUsage(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public KeyColumnUsage rename(Name name) {
return new KeyColumnUsage(name, null);
}
/**
* Rename this table
*/
@Override
public KeyColumnUsage rename(Table> name) {
return new KeyColumnUsage(name.getQualifiedName(), null);
}
// -------------------------------------------------------------------------
// Row9 type methods
// -------------------------------------------------------------------------
@Override
public Row9 fieldsRow() {
return (Row9) super.fieldsRow();
}
/**
* Convenience mapping calling {@link SelectField#convertFrom(Function)}.
*/
public SelectField mapping(Function9 super String, ? super String, ? super String, ? super String, ? super String, ? super String, ? super String, ? super Integer, ? super Integer, ? extends U> from) {
return convertFrom(Records.mapping(from));
}
/**
* Convenience mapping calling {@link SelectField#convertFrom(Class,
* Function)}.
*/
public SelectField mapping(Class toType, Function9 super String, ? super String, ? super String, ? super String, ? super String, ? super String, ? super String, ? super Integer, ? super Integer, ? extends U> from) {
return convertFrom(toType, Records.mapping(from));
}
}