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.Condition;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.InverseForeignKey;
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 = 1L;
/**
* 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, (Field>[]) null, null);
}
private Sysconstraints(Name alias, Table aliased, Field>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* 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 path, ForeignKey childPath, InverseForeignKey parentPath) {
super(path, childPath, parentPath, SYSCONSTRAINTS);
}
@Override
public Schema getSchema() {
return aliased() ? null : Sys.SYS;
}
@Override
public UniqueKey getPrimaryKey() {
return 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);
}
private transient Systables _systables;
/**
* Get the implicit join path to the SYS.SYSTABLES
table.
*/
public Systables systables() {
if (_systables == null)
_systables = new Systables(this, Keys.SYNTHETIC_FK_SYSCONSTRAINTS__SYNTHETIC_PK_SYSTABLES, null);
return _systables;
}
private transient Sysschemas _sysschemas;
/**
* Get the implicit join path to the SYS.SYSSCHEMAS
table.
*/
public Sysschemas sysschemas() {
if (_sysschemas == null)
_sysschemas = new Sysschemas(this, Keys.SYNTHETIC_FK_SYSCONSTRAINTS__SYNTHETIC_PK_SYSSCHEMAS, null);
return _sysschemas;
}
private transient Syschecks _syschecks;
/**
* Get the implicit to-many join path to the SYS.SYSCHECKS
* table
*/
public Syschecks syschecks() {
if (_syschecks == null)
_syschecks = new Syschecks(this, null, Keys.SYNTHETIC_FK_SYSCHECKS__SYNTHETIC_PK_SYSCONSTRAINTS.getInverseKey());
return _syschecks;
}
private transient Syskeys _syskeys;
/**
* Get the implicit to-many join path to the SYS.SYSKEYS
table
*/
public Syskeys syskeys() {
if (_syskeys == null)
_syskeys = new Syskeys(this, null, Keys.SYNTHETIC_FK_SYSKEYS__SYNTHETIC_PK_SYSCONSTRAINTS.getInverseKey());
return _syskeys;
}
@Override
public Sysconstraints as(String alias) {
return new Sysconstraints(DSL.name(alias), this);
}
@Override
public Sysconstraints as(Name alias) {
return new Sysconstraints(alias, this);
}
@Override
public Sysconstraints as(Table> alias) {
return new Sysconstraints(alias.getQualifiedName(), this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy