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 Schemata extends TableImpl<Record> {
private static final long serialVersionUID = 2116125842;
public static final Schemata SCHEMATA = new Schemata();
@Override
public Class<Record> getRecordType() {
return Record.class;
}
public final TableField<Record, String> CATALOG_NAME = createField(DSL.name("CATALOG_NAME"), SQLDataType.VARCHAR(128), this, "");
public final TableField<Record, String> SCHEMA_NAME = createField(DSL.name("SCHEMA_NAME"), SQLDataType.VARCHAR(128), this, "");
public final TableField<Record, String> SCHEMA_OWNER = createField(DSL.name("SCHEMA_OWNER"), SQLDataType.VARCHAR(128), this, "");
public final TableField<Record, String> DEFAULT_CHARACTER_SET_CATALOG = createField(DSL.name("DEFAULT_CHARACTER_SET_CATALOG"), SQLDataType.VARCHAR(128), this, "");
public final TableField<Record, String> DEFAULT_CHARACTER_SET_SCHEMA = createField(DSL.name("DEFAULT_CHARACTER_SET_SCHEMA"), SQLDataType.VARCHAR(128), this, "");
public final TableField<Record, String> DEFAULT_CHARACTER_SET_NAME = createField(DSL.name("DEFAULT_CHARACTER_SET_NAME"), SQLDataType.VARCHAR(128), this, "");
public final TableField<Record, String> SQL_PATH = createField(DSL.name("SQL_PATH"), SQLDataType.VARCHAR(65536), this, "");
private Schemata(Name alias, Table<Record> aliased) {
this(alias, aliased, null);
}
private Schemata(Name alias, Table<Record> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment("one row for each schema"), TableOptions.table());
}
public Schemata(String alias) {
this(DSL.name(alias), SCHEMATA);
}
public Schemata(Name alias) {
this(alias, SCHEMATA);
}
public Schemata() {
this(DSL.name("SCHEMATA"), null);
}
public <O extends Record> Schemata(Table<O> child, ForeignKey<O, Record> key) {
super(child, key, SCHEMATA);
}
@Override
public Schema getSchema() {
return InformationSchema.INFORMATION_SCHEMA;
}
@Override
public UniqueKey<Record> getPrimaryKey() {
return Keys.SYNTHETIC_PK_SCHEMATA;
}
@Override
public List<UniqueKey<Record>> getKeys() {
return Arrays.<UniqueKey<Record>>asList(Keys.SYNTHETIC_PK_SCHEMATA);
}
@Override
public Schemata as(String alias) {
return new Schemata(DSL.name(alias), this);
}
@Override
public Schemata as(Name alias) {
return new Schemata(alias, this);
}
@Override
public Schemata rename(String name) {
return new Schemata(DSL.name(name), null);
}
@Override
public Schemata rename(Name name) {
return new Schemata(name, null);
}
}