org.jooq.meta.derby.sys.tables.Sysconstraints Maven / Gradle / Ivy
/*
* This file is generated by jOOQ.
*/
package org.jooq.meta.derby.sys.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.derby.sys.Keys;
import org.jooq.meta.derby.sys.Sys;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Sysconstraints extends TableImpl {
private static final long serialVersionUID = -1457660597;
/**
* The reference instance of SYS.SYSCONSTRAINTS
*/
public static final Sysconstraints SYSCONSTRAINTS = new Sysconstraints();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return Record.class;
}
/**
* The column SYS.SYSCONSTRAINTS.CONSTRAINTID
.
*/
public final TableField CONSTRAINTID = createField(DSL.name("CONSTRAINTID"), SQLDataType.CHAR(36).nullable(false), this, "");
/**
* The column SYS.SYSCONSTRAINTS.TABLEID
.
*/
public final TableField TABLEID = createField(DSL.name("TABLEID"), SQLDataType.CHAR(36).nullable(false), this, "");
/**
* The column SYS.SYSCONSTRAINTS.CONSTRAINTNAME
.
*/
public final TableField CONSTRAINTNAME = createField(DSL.name("CONSTRAINTNAME"), SQLDataType.VARCHAR(128).nullable(false), this, "");
/**
* The column SYS.SYSCONSTRAINTS.TYPE
.
*/
public final TableField TYPE = createField(DSL.name("TYPE"), SQLDataType.CHAR(1).nullable(false), this, "");
/**
* The column SYS.SYSCONSTRAINTS.SCHEMAID
.
*/
public final TableField SCHEMAID = createField(DSL.name("SCHEMAID"), SQLDataType.CHAR(36).nullable(false), this, "");
/**
* The column SYS.SYSCONSTRAINTS.STATE
.
*/
public final TableField STATE = createField(DSL.name("STATE"), SQLDataType.CHAR(1).nullable(false), this, "");
/**
* The column SYS.SYSCONSTRAINTS.REFERENCECOUNT
.
*/
public final TableField REFERENCECOUNT = createField(DSL.name("REFERENCECOUNT"), SQLDataType.INTEGER.nullable(false), this, "");
private Sysconstraints(Name alias, Table aliased) {
this(alias, aliased, null);
}
private Sysconstraints(Name alias, Table aliased, Field>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased SYS.SYSCONSTRAINTS
table reference
*/
public Sysconstraints(String alias) {
this(DSL.name(alias), SYSCONSTRAINTS);
}
/**
* Create an aliased SYS.SYSCONSTRAINTS
table reference
*/
public Sysconstraints(Name alias) {
this(alias, SYSCONSTRAINTS);
}
/**
* Create a SYS.SYSCONSTRAINTS
table reference
*/
public Sysconstraints() {
this(DSL.name("SYSCONSTRAINTS"), null);
}
public Sysconstraints(Table child, ForeignKey key) {
super(child, key, SYSCONSTRAINTS);
}
@Override
public Schema getSchema() {
return Sys.SYS;
}
@Override
public UniqueKey getPrimaryKey() {
return Keys.SYNTHETIC_PK_SYSCONSTRAINTS;
}
@Override
public List> getKeys() {
return Arrays.>asList(Keys.SYNTHETIC_PK_SYSCONSTRAINTS);
}
@Override
public List> getReferences() {
return Arrays.>asList(Keys.SYNTHETIC_FK_SYSCONSTRAINTS__SYNTHETIC_PK_SYSTABLES, Keys.SYNTHETIC_FK_SYSCONSTRAINTS__SYNTHETIC_PK_SYSSCHEMAS);
}
public Systables systables() {
return new Systables(this, Keys.SYNTHETIC_FK_SYSCONSTRAINTS__SYNTHETIC_PK_SYSTABLES);
}
public Sysschemas sysschemas() {
return new Sysschemas(this, Keys.SYNTHETIC_FK_SYSCONSTRAINTS__SYNTHETIC_PK_SYSSCHEMAS);
}
@Override
public Sysconstraints as(String alias) {
return new Sysconstraints(DSL.name(alias), this);
}
@Override
public Sysconstraints as(Name alias) {
return new Sysconstraints(alias, this);
}
/**
* Rename this table
*/
@Override
public Sysconstraints rename(String name) {
return new Sysconstraints(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public Sysconstraints rename(Name name) {
return new Sysconstraints(name, null);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy