[jOOQ/jOOQ#15347] Add Derby support for triggers
This commit is contained in:
parent
8040c27660
commit
c1fb673ed9
@ -38,6 +38,7 @@
|
||||
|
||||
package org.jooq.meta.derby;
|
||||
|
||||
import static java.lang.Boolean.TRUE;
|
||||
import static java.util.stream.Collectors.mapping;
|
||||
import static java.util.stream.Collectors.toList;
|
||||
import static org.jooq.impl.DSL.case_;
|
||||
@ -55,7 +56,7 @@ import static org.jooq.impl.SQLDataType.BOOLEAN;
|
||||
import static org.jooq.impl.SQLDataType.INTEGER;
|
||||
import static org.jooq.impl.SQLDataType.NUMERIC;
|
||||
import static org.jooq.impl.SQLDataType.VARCHAR;
|
||||
import static org.jooq.meta.derby.sys.Tables.SYSCHECKS;
|
||||
import static org.jooq.meta.derby.sys.Tables.*;
|
||||
import static org.jooq.meta.derby.sys.Tables.SYSCONGLOMERATES;
|
||||
import static org.jooq.meta.derby.sys.Tables.SYSCONSTRAINTS;
|
||||
import static org.jooq.meta.derby.sys.Tables.SYSKEYS;
|
||||
@ -67,6 +68,7 @@ import static org.jooq.meta.derby.sys.Tables.SYSVIEWS;
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.EnumSet;
|
||||
import java.util.List;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
@ -82,6 +84,9 @@ import org.jooq.Result;
|
||||
import org.jooq.ResultQuery;
|
||||
import org.jooq.SQLDialect;
|
||||
import org.jooq.SortOrder;
|
||||
// ...
|
||||
// ...
|
||||
// ...
|
||||
import org.jooq.TableOptions.TableType;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.SQLDataType;
|
||||
@ -95,6 +100,7 @@ import org.jooq.meta.DefaultDataTypeDefinition;
|
||||
import org.jooq.meta.DefaultIndexColumnDefinition;
|
||||
import org.jooq.meta.DefaultRelations;
|
||||
import org.jooq.meta.DefaultSequenceDefinition;
|
||||
// ...
|
||||
import org.jooq.meta.DomainDefinition;
|
||||
import org.jooq.meta.EnumDefinition;
|
||||
import org.jooq.meta.IndexColumnDefinition;
|
||||
@ -108,6 +114,7 @@ import org.jooq.meta.TableDefinition;
|
||||
// ...
|
||||
import org.jooq.meta.UDTDefinition;
|
||||
import org.jooq.meta.XMLSchemaCollectionDefinition;
|
||||
import org.jooq.meta.derby.sys.tables.Systriggers;
|
||||
|
||||
/**
|
||||
* @author Lukas Eder
|
||||
@ -487,6 +494,71 @@ public class DerbyDatabase extends AbstractDatabase implements ResultQueryDataba
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
protected List<XMLSchemaCollectionDefinition> getXMLSchemaCollections0() throws SQLException {
|
||||
List<XMLSchemaCollectionDefinition> result = new ArrayList<>();
|
||||
|
||||
@ -17,6 +17,7 @@ import org.jooq.meta.derby.sys.tables.Syskeys;
|
||||
import org.jooq.meta.derby.sys.tables.Sysschemas;
|
||||
import org.jooq.meta.derby.sys.tables.Syssequences;
|
||||
import org.jooq.meta.derby.sys.tables.Systables;
|
||||
import org.jooq.meta.derby.sys.tables.Systriggers;
|
||||
import org.jooq.meta.derby.sys.tables.Sysviews;
|
||||
|
||||
|
||||
@ -34,6 +35,7 @@ public class Keys {
|
||||
public static final UniqueKey<Record> SYNTHETIC_PK_SYSCONSTRAINTS = Internal.createUniqueKey(Sysconstraints.SYSCONSTRAINTS, DSL.name("SYNTHETIC_PK_SYSCONSTRAINTS"), new TableField[] { Sysconstraints.SYSCONSTRAINTS.CONSTRAINTID }, true);
|
||||
public static final UniqueKey<Record> SYNTHETIC_PK_SYSSCHEMAS = Internal.createUniqueKey(Sysschemas.SYSSCHEMAS, DSL.name("SYNTHETIC_PK_SYSSCHEMAS"), new TableField[] { Sysschemas.SYSSCHEMAS.SCHEMAID }, true);
|
||||
public static final UniqueKey<Record> SYNTHETIC_PK_SYSTABLES = Internal.createUniqueKey(Systables.SYSTABLES, DSL.name("SYNTHETIC_PK_SYSTABLES"), new TableField[] { Systables.SYSTABLES.TABLEID }, true);
|
||||
public static final UniqueKey<Record> SYNTHETIC_PK_SYSTRIGGERS = Internal.createUniqueKey(Systriggers.SYSTRIGGERS, DSL.name("SYNTHETIC_PK_SYSTRIGGERS"), new TableField[] { Systriggers.SYSTRIGGERS.TRIGGERID }, true);
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// FOREIGN KEY definitions
|
||||
@ -47,5 +49,7 @@ public class Keys {
|
||||
public static final ForeignKey<Record, Record> SYNTHETIC_FK_SYSKEYS__SYNTHETIC_PK_SYSCONSTRAINTS = Internal.createForeignKey(Syskeys.SYSKEYS, DSL.name("SYNTHETIC_FK_SYSKEYS__SYNTHETIC_PK_SYSCONSTRAINTS"), new TableField[] { Syskeys.SYSKEYS.CONSTRAINTID }, Keys.SYNTHETIC_PK_SYSCONSTRAINTS, new TableField[] { Sysconstraints.SYSCONSTRAINTS.CONSTRAINTID }, true);
|
||||
public static final ForeignKey<Record, Record> SYNTHETIC_FK_SYSSEQUENCES__SYNTHETIC_PK_SYSSCHEMAS = Internal.createForeignKey(Syssequences.SYSSEQUENCES, DSL.name("SYNTHETIC_FK_SYSSEQUENCES__SYNTHETIC_PK_SYSSCHEMAS"), new TableField[] { Syssequences.SYSSEQUENCES.SCHEMAID }, Keys.SYNTHETIC_PK_SYSSCHEMAS, new TableField[] { Sysschemas.SYSSCHEMAS.SCHEMAID }, true);
|
||||
public static final ForeignKey<Record, Record> SYNTHETIC_FK_SYSTABLES__SYNTHETIC_PK_SYSSCHEMAS = Internal.createForeignKey(Systables.SYSTABLES, DSL.name("SYNTHETIC_FK_SYSTABLES__SYNTHETIC_PK_SYSSCHEMAS"), new TableField[] { Systables.SYSTABLES.SCHEMAID }, Keys.SYNTHETIC_PK_SYSSCHEMAS, new TableField[] { Sysschemas.SYSSCHEMAS.SCHEMAID }, true);
|
||||
public static final ForeignKey<Record, Record> SYNTHETIC_FK_SYSTRIGGERS__SYNTHETIC_PK_SYSSCHEMAS = Internal.createForeignKey(Systriggers.SYSTRIGGERS, DSL.name("SYNTHETIC_FK_SYSTRIGGERS__SYNTHETIC_PK_SYSSCHEMAS"), new TableField[] { Systriggers.SYSTRIGGERS.SCHEMAID }, Keys.SYNTHETIC_PK_SYSSCHEMAS, new TableField[] { Sysschemas.SYSSCHEMAS.SCHEMAID }, true);
|
||||
public static final ForeignKey<Record, Record> SYNTHETIC_FK_SYSTRIGGERS__SYNTHETIC_PK_SYSTABLES = Internal.createForeignKey(Systriggers.SYSTRIGGERS, DSL.name("SYNTHETIC_FK_SYSTRIGGERS__SYNTHETIC_PK_SYSTABLES"), new TableField[] { Systriggers.SYSTRIGGERS.TABLEID }, Keys.SYNTHETIC_PK_SYSTABLES, new TableField[] { Systables.SYSTABLES.TABLEID }, true);
|
||||
public static final ForeignKey<Record, Record> SYNTHETIC_FK_SYSVIEWS__SYNTHETIC_PK_SYSTABLES = Internal.createForeignKey(Sysviews.SYSVIEWS, DSL.name("SYNTHETIC_FK_SYSVIEWS__SYNTHETIC_PK_SYSTABLES"), new TableField[] { Sysviews.SYSVIEWS.TABLEID }, Keys.SYNTHETIC_PK_SYSTABLES, new TableField[] { Systables.SYSTABLES.TABLEID }, true);
|
||||
}
|
||||
|
||||
@ -17,6 +17,7 @@ import org.jooq.meta.derby.sys.tables.Syskeys;
|
||||
import org.jooq.meta.derby.sys.tables.Sysschemas;
|
||||
import org.jooq.meta.derby.sys.tables.Syssequences;
|
||||
import org.jooq.meta.derby.sys.tables.Systables;
|
||||
import org.jooq.meta.derby.sys.tables.Systriggers;
|
||||
import org.jooq.meta.derby.sys.tables.Sysviews;
|
||||
|
||||
|
||||
@ -73,6 +74,11 @@ public class Sys extends SchemaImpl {
|
||||
*/
|
||||
public final Systables SYSTABLES = Systables.SYSTABLES;
|
||||
|
||||
/**
|
||||
* The table <code>SYS.SYSTRIGGERS</code>.
|
||||
*/
|
||||
public final Systriggers SYSTRIGGERS = Systriggers.SYSTRIGGERS;
|
||||
|
||||
/**
|
||||
* The table <code>SYS.SYSVIEWS</code>.
|
||||
*/
|
||||
@ -96,6 +102,7 @@ public class Sys extends SchemaImpl {
|
||||
Sysschemas.SYSSCHEMAS,
|
||||
Syssequences.SYSSEQUENCES,
|
||||
Systables.SYSTABLES,
|
||||
Systriggers.SYSTRIGGERS,
|
||||
Sysviews.SYSVIEWS
|
||||
);
|
||||
}
|
||||
|
||||
@ -12,6 +12,7 @@ import org.jooq.meta.derby.sys.tables.Syskeys;
|
||||
import org.jooq.meta.derby.sys.tables.Sysschemas;
|
||||
import org.jooq.meta.derby.sys.tables.Syssequences;
|
||||
import org.jooq.meta.derby.sys.tables.Systables;
|
||||
import org.jooq.meta.derby.sys.tables.Systriggers;
|
||||
import org.jooq.meta.derby.sys.tables.Sysviews;
|
||||
|
||||
|
||||
@ -61,6 +62,11 @@ public class Tables {
|
||||
*/
|
||||
public static final Systables SYSTABLES = Systables.SYSTABLES;
|
||||
|
||||
/**
|
||||
* The table <code>SYS.SYSTRIGGERS</code>.
|
||||
*/
|
||||
public static final Systriggers SYSTRIGGERS = Systriggers.SYSTRIGGERS;
|
||||
|
||||
/**
|
||||
* The table <code>SYS.SYSVIEWS</code>.
|
||||
*/
|
||||
|
||||
@ -12,18 +12,17 @@ import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.InverseForeignKey;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Path;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.DefaultDataType;
|
||||
import org.jooq.impl.SQLDataType;
|
||||
import org.jooq.impl.TableImpl;
|
||||
import org.jooq.meta.derby.sys.Keys;
|
||||
import org.jooq.meta.derby.sys.Sys;
|
||||
import org.jooq.meta.derby.sys.tables.Sysconstraints.SysconstraintsPath;
|
||||
|
||||
|
||||
/**
|
||||
@ -66,7 +65,7 @@ public class Syschecks extends TableImpl<Record> {
|
||||
* configuration.
|
||||
*/
|
||||
@Deprecated
|
||||
public final TableField<Record, Object> REFERENCEDCOLUMNS = createField(DSL.name("REFERENCEDCOLUMNS"), org.jooq.impl.DefaultDataType.getDefaultDataType("\"org.apache.derby.catalog.ReferencedColumns\"").nullable(false), this, "");
|
||||
public final TableField<Record, Object> REFERENCEDCOLUMNS = createField(DSL.name("REFERENCEDCOLUMNS"), DefaultDataType.getDefaultDataType("\"org.apache.derby.catalog.ReferencedColumns\"").nullable(false), this, "");
|
||||
|
||||
private Syschecks(Name alias, Table<Record> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
@ -101,12 +100,6 @@ public class Syschecks extends TableImpl<Record> {
|
||||
super(path, childPath, parentPath, SYSCHECKS);
|
||||
}
|
||||
|
||||
public static class SyschecksPath extends Syschecks implements Path<Record> {
|
||||
public <O extends Record> SyschecksPath(Table<O> path, ForeignKey<O, Record> childPath, InverseForeignKey<O, Record> parentPath) {
|
||||
super(path, childPath, parentPath);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Sys.SYS;
|
||||
@ -117,14 +110,14 @@ public class Syschecks extends TableImpl<Record> {
|
||||
return Arrays.asList(Keys.SYNTHETIC_FK_SYSCHECKS__SYNTHETIC_PK_SYSCONSTRAINTS);
|
||||
}
|
||||
|
||||
private transient SysconstraintsPath _sysconstraints;
|
||||
private transient Sysconstraints _sysconstraints;
|
||||
|
||||
/**
|
||||
* Get the implicit join path to the <code>SYS.SYSCONSTRAINTS</code> table.
|
||||
*/
|
||||
public SysconstraintsPath sysconstraints() {
|
||||
public Sysconstraints sysconstraints() {
|
||||
if (_sysconstraints == null)
|
||||
_sysconstraints = new SysconstraintsPath(this, Keys.SYNTHETIC_FK_SYSCHECKS__SYNTHETIC_PK_SYSCONSTRAINTS, null);
|
||||
_sysconstraints = new Sysconstraints(this, Keys.SYNTHETIC_FK_SYSCHECKS__SYNTHETIC_PK_SYSCONSTRAINTS, null);
|
||||
|
||||
return _sysconstraints;
|
||||
}
|
||||
|
||||
@ -12,7 +12,6 @@ import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.InverseForeignKey;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Path;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
@ -24,8 +23,6 @@ import org.jooq.impl.SQLDataType;
|
||||
import org.jooq.impl.TableImpl;
|
||||
import org.jooq.meta.derby.sys.Keys;
|
||||
import org.jooq.meta.derby.sys.Sys;
|
||||
import org.jooq.meta.derby.sys.tables.Syskeys.SyskeysPath;
|
||||
import org.jooq.meta.derby.sys.tables.Systables.SystablesPath;
|
||||
|
||||
|
||||
/**
|
||||
@ -122,12 +119,6 @@ public class Sysconglomerates extends TableImpl<Record> {
|
||||
super(path, childPath, parentPath, SYSCONGLOMERATES);
|
||||
}
|
||||
|
||||
public static class SysconglomeratesPath extends Sysconglomerates implements Path<Record> {
|
||||
public <O extends Record> SysconglomeratesPath(Table<O> path, ForeignKey<O, Record> childPath, InverseForeignKey<O, Record> parentPath) {
|
||||
super(path, childPath, parentPath);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Sys.SYS;
|
||||
@ -143,26 +134,26 @@ public class Sysconglomerates extends TableImpl<Record> {
|
||||
return Arrays.asList(Keys.SYNTHETIC_FK_SYSCONGLOMERATES__SYNTHETIC_PK_SYSTABLES);
|
||||
}
|
||||
|
||||
private transient SystablesPath _systables;
|
||||
private transient Systables _systables;
|
||||
|
||||
/**
|
||||
* Get the implicit join path to the <code>SYS.SYSTABLES</code> table.
|
||||
*/
|
||||
public SystablesPath systables() {
|
||||
public Systables systables() {
|
||||
if (_systables == null)
|
||||
_systables = new SystablesPath(this, Keys.SYNTHETIC_FK_SYSCONGLOMERATES__SYNTHETIC_PK_SYSTABLES, null);
|
||||
_systables = new Systables(this, Keys.SYNTHETIC_FK_SYSCONGLOMERATES__SYNTHETIC_PK_SYSTABLES, null);
|
||||
|
||||
return _systables;
|
||||
}
|
||||
|
||||
private transient SyskeysPath _syskeys;
|
||||
private transient Syskeys _syskeys;
|
||||
|
||||
/**
|
||||
* Get the implicit to-many join path to the <code>SYS.SYSKEYS</code> table
|
||||
*/
|
||||
public SyskeysPath syskeys() {
|
||||
public Syskeys syskeys() {
|
||||
if (_syskeys == null)
|
||||
_syskeys = new SyskeysPath(this, null, Keys.SYNTHETIC_FK_SYSKEYS__SYNTHETIC_PK_SYSCONGLOMERATES.getInverseKey());
|
||||
_syskeys = new Syskeys(this, null, Keys.SYNTHETIC_FK_SYSKEYS__SYNTHETIC_PK_SYSCONGLOMERATES.getInverseKey());
|
||||
|
||||
return _syskeys;
|
||||
}
|
||||
|
||||
@ -12,7 +12,6 @@ import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.InverseForeignKey;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Path;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
@ -24,10 +23,6 @@ import org.jooq.impl.SQLDataType;
|
||||
import org.jooq.impl.TableImpl;
|
||||
import org.jooq.meta.derby.sys.Keys;
|
||||
import org.jooq.meta.derby.sys.Sys;
|
||||
import org.jooq.meta.derby.sys.tables.Syschecks.SyschecksPath;
|
||||
import org.jooq.meta.derby.sys.tables.Syskeys.SyskeysPath;
|
||||
import org.jooq.meta.derby.sys.tables.Sysschemas.SysschemasPath;
|
||||
import org.jooq.meta.derby.sys.tables.Systables.SystablesPath;
|
||||
|
||||
|
||||
/**
|
||||
@ -119,12 +114,6 @@ public class Sysconstraints extends TableImpl<Record> {
|
||||
super(path, childPath, parentPath, SYSCONSTRAINTS);
|
||||
}
|
||||
|
||||
public static class SysconstraintsPath extends Sysconstraints implements Path<Record> {
|
||||
public <O extends Record> SysconstraintsPath(Table<O> path, ForeignKey<O, Record> childPath, InverseForeignKey<O, Record> parentPath) {
|
||||
super(path, childPath, parentPath);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Sys.SYS;
|
||||
@ -140,51 +129,51 @@ public class Sysconstraints extends TableImpl<Record> {
|
||||
return Arrays.asList(Keys.SYNTHETIC_FK_SYSCONSTRAINTS__SYNTHETIC_PK_SYSTABLES, Keys.SYNTHETIC_FK_SYSCONSTRAINTS__SYNTHETIC_PK_SYSSCHEMAS);
|
||||
}
|
||||
|
||||
private transient SystablesPath _systables;
|
||||
private transient Systables _systables;
|
||||
|
||||
/**
|
||||
* Get the implicit join path to the <code>SYS.SYSTABLES</code> table.
|
||||
*/
|
||||
public SystablesPath systables() {
|
||||
public Systables systables() {
|
||||
if (_systables == null)
|
||||
_systables = new SystablesPath(this, Keys.SYNTHETIC_FK_SYSCONSTRAINTS__SYNTHETIC_PK_SYSTABLES, null);
|
||||
_systables = new Systables(this, Keys.SYNTHETIC_FK_SYSCONSTRAINTS__SYNTHETIC_PK_SYSTABLES, null);
|
||||
|
||||
return _systables;
|
||||
}
|
||||
|
||||
private transient SysschemasPath _sysschemas;
|
||||
private transient Sysschemas _sysschemas;
|
||||
|
||||
/**
|
||||
* Get the implicit join path to the <code>SYS.SYSSCHEMAS</code> table.
|
||||
*/
|
||||
public SysschemasPath sysschemas() {
|
||||
public Sysschemas sysschemas() {
|
||||
if (_sysschemas == null)
|
||||
_sysschemas = new SysschemasPath(this, Keys.SYNTHETIC_FK_SYSCONSTRAINTS__SYNTHETIC_PK_SYSSCHEMAS, null);
|
||||
_sysschemas = new Sysschemas(this, Keys.SYNTHETIC_FK_SYSCONSTRAINTS__SYNTHETIC_PK_SYSSCHEMAS, null);
|
||||
|
||||
return _sysschemas;
|
||||
}
|
||||
|
||||
private transient SyschecksPath _syschecks;
|
||||
private transient Syschecks _syschecks;
|
||||
|
||||
/**
|
||||
* Get the implicit to-many join path to the <code>SYS.SYSCHECKS</code>
|
||||
* table
|
||||
*/
|
||||
public SyschecksPath syschecks() {
|
||||
public Syschecks syschecks() {
|
||||
if (_syschecks == null)
|
||||
_syschecks = new SyschecksPath(this, null, Keys.SYNTHETIC_FK_SYSCHECKS__SYNTHETIC_PK_SYSCONSTRAINTS.getInverseKey());
|
||||
_syschecks = new Syschecks(this, null, Keys.SYNTHETIC_FK_SYSCHECKS__SYNTHETIC_PK_SYSCONSTRAINTS.getInverseKey());
|
||||
|
||||
return _syschecks;
|
||||
}
|
||||
|
||||
private transient SyskeysPath _syskeys;
|
||||
private transient Syskeys _syskeys;
|
||||
|
||||
/**
|
||||
* Get the implicit to-many join path to the <code>SYS.SYSKEYS</code> table
|
||||
*/
|
||||
public SyskeysPath syskeys() {
|
||||
public Syskeys syskeys() {
|
||||
if (_syskeys == null)
|
||||
_syskeys = new SyskeysPath(this, null, Keys.SYNTHETIC_FK_SYSKEYS__SYNTHETIC_PK_SYSCONSTRAINTS.getInverseKey());
|
||||
_syskeys = new Syskeys(this, null, Keys.SYNTHETIC_FK_SYSKEYS__SYNTHETIC_PK_SYSCONSTRAINTS.getInverseKey());
|
||||
|
||||
return _syskeys;
|
||||
}
|
||||
|
||||
@ -12,7 +12,6 @@ import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.InverseForeignKey;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Path;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
@ -23,8 +22,6 @@ import org.jooq.impl.SQLDataType;
|
||||
import org.jooq.impl.TableImpl;
|
||||
import org.jooq.meta.derby.sys.Keys;
|
||||
import org.jooq.meta.derby.sys.Sys;
|
||||
import org.jooq.meta.derby.sys.tables.Sysconglomerates.SysconglomeratesPath;
|
||||
import org.jooq.meta.derby.sys.tables.Sysconstraints.SysconstraintsPath;
|
||||
|
||||
|
||||
/**
|
||||
@ -91,12 +88,6 @@ public class Syskeys extends TableImpl<Record> {
|
||||
super(path, childPath, parentPath, SYSKEYS);
|
||||
}
|
||||
|
||||
public static class SyskeysPath extends Syskeys implements Path<Record> {
|
||||
public <O extends Record> SyskeysPath(Table<O> path, ForeignKey<O, Record> childPath, InverseForeignKey<O, Record> parentPath) {
|
||||
super(path, childPath, parentPath);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Sys.SYS;
|
||||
@ -107,27 +98,27 @@ public class Syskeys extends TableImpl<Record> {
|
||||
return Arrays.asList(Keys.SYNTHETIC_FK_SYSKEYS__SYNTHETIC_PK_SYSCONSTRAINTS, Keys.SYNTHETIC_FK_SYSKEYS__SYNTHETIC_PK_SYSCONGLOMERATES);
|
||||
}
|
||||
|
||||
private transient SysconstraintsPath _sysconstraints;
|
||||
private transient Sysconstraints _sysconstraints;
|
||||
|
||||
/**
|
||||
* Get the implicit join path to the <code>SYS.SYSCONSTRAINTS</code> table.
|
||||
*/
|
||||
public SysconstraintsPath sysconstraints() {
|
||||
public Sysconstraints sysconstraints() {
|
||||
if (_sysconstraints == null)
|
||||
_sysconstraints = new SysconstraintsPath(this, Keys.SYNTHETIC_FK_SYSKEYS__SYNTHETIC_PK_SYSCONSTRAINTS, null);
|
||||
_sysconstraints = new Sysconstraints(this, Keys.SYNTHETIC_FK_SYSKEYS__SYNTHETIC_PK_SYSCONSTRAINTS, null);
|
||||
|
||||
return _sysconstraints;
|
||||
}
|
||||
|
||||
private transient SysconglomeratesPath _sysconglomerates;
|
||||
private transient Sysconglomerates _sysconglomerates;
|
||||
|
||||
/**
|
||||
* Get the implicit join path to the <code>SYS.SYSCONGLOMERATES</code>
|
||||
* table.
|
||||
*/
|
||||
public SysconglomeratesPath sysconglomerates() {
|
||||
public Sysconglomerates sysconglomerates() {
|
||||
if (_sysconglomerates == null)
|
||||
_sysconglomerates = new SysconglomeratesPath(this, Keys.SYNTHETIC_FK_SYSKEYS__SYNTHETIC_PK_SYSCONGLOMERATES, null);
|
||||
_sysconglomerates = new Sysconglomerates(this, Keys.SYNTHETIC_FK_SYSKEYS__SYNTHETIC_PK_SYSCONGLOMERATES, null);
|
||||
|
||||
return _sysconglomerates;
|
||||
}
|
||||
|
||||
@ -9,7 +9,6 @@ import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.InverseForeignKey;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Path;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
@ -21,9 +20,6 @@ import org.jooq.impl.SQLDataType;
|
||||
import org.jooq.impl.TableImpl;
|
||||
import org.jooq.meta.derby.sys.Keys;
|
||||
import org.jooq.meta.derby.sys.Sys;
|
||||
import org.jooq.meta.derby.sys.tables.Sysconstraints.SysconstraintsPath;
|
||||
import org.jooq.meta.derby.sys.tables.Syssequences.SyssequencesPath;
|
||||
import org.jooq.meta.derby.sys.tables.Systables.SystablesPath;
|
||||
|
||||
|
||||
/**
|
||||
@ -95,12 +91,6 @@ public class Sysschemas extends TableImpl<Record> {
|
||||
super(path, childPath, parentPath, SYSSCHEMAS);
|
||||
}
|
||||
|
||||
public static class SysschemasPath extends Sysschemas implements Path<Record> {
|
||||
public <O extends Record> SysschemasPath(Table<O> path, ForeignKey<O, Record> childPath, InverseForeignKey<O, Record> parentPath) {
|
||||
super(path, childPath, parentPath);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Sys.SYS;
|
||||
@ -111,45 +101,58 @@ public class Sysschemas extends TableImpl<Record> {
|
||||
return Keys.SYNTHETIC_PK_SYSSCHEMAS;
|
||||
}
|
||||
|
||||
private transient SysconstraintsPath _sysconstraints;
|
||||
private transient Sysconstraints _sysconstraints;
|
||||
|
||||
/**
|
||||
* Get the implicit to-many join path to the <code>SYS.SYSCONSTRAINTS</code>
|
||||
* table
|
||||
*/
|
||||
public SysconstraintsPath sysconstraints() {
|
||||
public Sysconstraints sysconstraints() {
|
||||
if (_sysconstraints == null)
|
||||
_sysconstraints = new SysconstraintsPath(this, null, Keys.SYNTHETIC_FK_SYSCONSTRAINTS__SYNTHETIC_PK_SYSSCHEMAS.getInverseKey());
|
||||
_sysconstraints = new Sysconstraints(this, null, Keys.SYNTHETIC_FK_SYSCONSTRAINTS__SYNTHETIC_PK_SYSSCHEMAS.getInverseKey());
|
||||
|
||||
return _sysconstraints;
|
||||
}
|
||||
|
||||
private transient SyssequencesPath _syssequences;
|
||||
private transient Syssequences _syssequences;
|
||||
|
||||
/**
|
||||
* Get the implicit to-many join path to the <code>SYS.SYSSEQUENCES</code>
|
||||
* table
|
||||
*/
|
||||
public SyssequencesPath syssequences() {
|
||||
public Syssequences syssequences() {
|
||||
if (_syssequences == null)
|
||||
_syssequences = new SyssequencesPath(this, null, Keys.SYNTHETIC_FK_SYSSEQUENCES__SYNTHETIC_PK_SYSSCHEMAS.getInverseKey());
|
||||
_syssequences = new Syssequences(this, null, Keys.SYNTHETIC_FK_SYSSEQUENCES__SYNTHETIC_PK_SYSSCHEMAS.getInverseKey());
|
||||
|
||||
return _syssequences;
|
||||
}
|
||||
|
||||
private transient SystablesPath _systables;
|
||||
private transient Systables _systables;
|
||||
|
||||
/**
|
||||
* Get the implicit to-many join path to the <code>SYS.SYSTABLES</code>
|
||||
* table
|
||||
*/
|
||||
public SystablesPath systables() {
|
||||
public Systables systables() {
|
||||
if (_systables == null)
|
||||
_systables = new SystablesPath(this, null, Keys.SYNTHETIC_FK_SYSTABLES__SYNTHETIC_PK_SYSSCHEMAS.getInverseKey());
|
||||
_systables = new Systables(this, null, Keys.SYNTHETIC_FK_SYSTABLES__SYNTHETIC_PK_SYSSCHEMAS.getInverseKey());
|
||||
|
||||
return _systables;
|
||||
}
|
||||
|
||||
private transient Systriggers _systriggers;
|
||||
|
||||
/**
|
||||
* Get the implicit to-many join path to the <code>SYS.SYSTRIGGERS</code>
|
||||
* table
|
||||
*/
|
||||
public Systriggers systriggers() {
|
||||
if (_systriggers == null)
|
||||
_systriggers = new Systriggers(this, null, Keys.SYNTHETIC_FK_SYSTRIGGERS__SYNTHETIC_PK_SYSSCHEMAS.getInverseKey());
|
||||
|
||||
return _systriggers;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Sysschemas as(String alias) {
|
||||
return new Sysschemas(DSL.name(alias), this);
|
||||
|
||||
@ -12,7 +12,6 @@ import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.InverseForeignKey;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Path;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
@ -23,7 +22,6 @@ import org.jooq.impl.SQLDataType;
|
||||
import org.jooq.impl.TableImpl;
|
||||
import org.jooq.meta.derby.sys.Keys;
|
||||
import org.jooq.meta.derby.sys.Sys;
|
||||
import org.jooq.meta.derby.sys.tables.Sysschemas.SysschemasPath;
|
||||
|
||||
|
||||
/**
|
||||
@ -130,12 +128,6 @@ public class Syssequences extends TableImpl<Record> {
|
||||
super(path, childPath, parentPath, SYSSEQUENCES);
|
||||
}
|
||||
|
||||
public static class SyssequencesPath extends Syssequences implements Path<Record> {
|
||||
public <O extends Record> SyssequencesPath(Table<O> path, ForeignKey<O, Record> childPath, InverseForeignKey<O, Record> parentPath) {
|
||||
super(path, childPath, parentPath);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Sys.SYS;
|
||||
@ -146,14 +138,14 @@ public class Syssequences extends TableImpl<Record> {
|
||||
return Arrays.asList(Keys.SYNTHETIC_FK_SYSSEQUENCES__SYNTHETIC_PK_SYSSCHEMAS);
|
||||
}
|
||||
|
||||
private transient SysschemasPath _sysschemas;
|
||||
private transient Sysschemas _sysschemas;
|
||||
|
||||
/**
|
||||
* Get the implicit join path to the <code>SYS.SYSSCHEMAS</code> table.
|
||||
*/
|
||||
public SysschemasPath sysschemas() {
|
||||
public Sysschemas sysschemas() {
|
||||
if (_sysschemas == null)
|
||||
_sysschemas = new SysschemasPath(this, Keys.SYNTHETIC_FK_SYSSEQUENCES__SYNTHETIC_PK_SYSSCHEMAS, null);
|
||||
_sysschemas = new Sysschemas(this, Keys.SYNTHETIC_FK_SYSSEQUENCES__SYNTHETIC_PK_SYSSCHEMAS, null);
|
||||
|
||||
return _sysschemas;
|
||||
}
|
||||
|
||||
@ -12,7 +12,6 @@ import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.InverseForeignKey;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Path;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
@ -24,10 +23,6 @@ import org.jooq.impl.SQLDataType;
|
||||
import org.jooq.impl.TableImpl;
|
||||
import org.jooq.meta.derby.sys.Keys;
|
||||
import org.jooq.meta.derby.sys.Sys;
|
||||
import org.jooq.meta.derby.sys.tables.Sysconglomerates.SysconglomeratesPath;
|
||||
import org.jooq.meta.derby.sys.tables.Sysconstraints.SysconstraintsPath;
|
||||
import org.jooq.meta.derby.sys.tables.Sysschemas.SysschemasPath;
|
||||
import org.jooq.meta.derby.sys.tables.Sysviews.SysviewsPath;
|
||||
|
||||
|
||||
/**
|
||||
@ -109,12 +104,6 @@ public class Systables extends TableImpl<Record> {
|
||||
super(path, childPath, parentPath, SYSTABLES);
|
||||
}
|
||||
|
||||
public static class SystablesPath extends Systables implements Path<Record> {
|
||||
public <O extends Record> SystablesPath(Table<O> path, ForeignKey<O, Record> childPath, InverseForeignKey<O, Record> parentPath) {
|
||||
super(path, childPath, parentPath);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Sys.SYS;
|
||||
@ -130,52 +119,65 @@ public class Systables extends TableImpl<Record> {
|
||||
return Arrays.asList(Keys.SYNTHETIC_FK_SYSTABLES__SYNTHETIC_PK_SYSSCHEMAS);
|
||||
}
|
||||
|
||||
private transient SysschemasPath _sysschemas;
|
||||
private transient Sysschemas _sysschemas;
|
||||
|
||||
/**
|
||||
* Get the implicit join path to the <code>SYS.SYSSCHEMAS</code> table.
|
||||
*/
|
||||
public SysschemasPath sysschemas() {
|
||||
public Sysschemas sysschemas() {
|
||||
if (_sysschemas == null)
|
||||
_sysschemas = new SysschemasPath(this, Keys.SYNTHETIC_FK_SYSTABLES__SYNTHETIC_PK_SYSSCHEMAS, null);
|
||||
_sysschemas = new Sysschemas(this, Keys.SYNTHETIC_FK_SYSTABLES__SYNTHETIC_PK_SYSSCHEMAS, null);
|
||||
|
||||
return _sysschemas;
|
||||
}
|
||||
|
||||
private transient SysconglomeratesPath _sysconglomerates;
|
||||
private transient Sysconglomerates _sysconglomerates;
|
||||
|
||||
/**
|
||||
* Get the implicit to-many join path to the
|
||||
* <code>SYS.SYSCONGLOMERATES</code> table
|
||||
*/
|
||||
public SysconglomeratesPath sysconglomerates() {
|
||||
public Sysconglomerates sysconglomerates() {
|
||||
if (_sysconglomerates == null)
|
||||
_sysconglomerates = new SysconglomeratesPath(this, null, Keys.SYNTHETIC_FK_SYSCONGLOMERATES__SYNTHETIC_PK_SYSTABLES.getInverseKey());
|
||||
_sysconglomerates = new Sysconglomerates(this, null, Keys.SYNTHETIC_FK_SYSCONGLOMERATES__SYNTHETIC_PK_SYSTABLES.getInverseKey());
|
||||
|
||||
return _sysconglomerates;
|
||||
}
|
||||
|
||||
private transient SysconstraintsPath _sysconstraints;
|
||||
private transient Sysconstraints _sysconstraints;
|
||||
|
||||
/**
|
||||
* Get the implicit to-many join path to the <code>SYS.SYSCONSTRAINTS</code>
|
||||
* table
|
||||
*/
|
||||
public SysconstraintsPath sysconstraints() {
|
||||
public Sysconstraints sysconstraints() {
|
||||
if (_sysconstraints == null)
|
||||
_sysconstraints = new SysconstraintsPath(this, null, Keys.SYNTHETIC_FK_SYSCONSTRAINTS__SYNTHETIC_PK_SYSTABLES.getInverseKey());
|
||||
_sysconstraints = new Sysconstraints(this, null, Keys.SYNTHETIC_FK_SYSCONSTRAINTS__SYNTHETIC_PK_SYSTABLES.getInverseKey());
|
||||
|
||||
return _sysconstraints;
|
||||
}
|
||||
|
||||
private transient SysviewsPath _sysviews;
|
||||
private transient Systriggers _systriggers;
|
||||
|
||||
/**
|
||||
* Get the implicit to-many join path to the <code>SYS.SYSTRIGGERS</code>
|
||||
* table
|
||||
*/
|
||||
public Systriggers systriggers() {
|
||||
if (_systriggers == null)
|
||||
_systriggers = new Systriggers(this, null, Keys.SYNTHETIC_FK_SYSTRIGGERS__SYNTHETIC_PK_SYSTABLES.getInverseKey());
|
||||
|
||||
return _systriggers;
|
||||
}
|
||||
|
||||
private transient Sysviews _sysviews;
|
||||
|
||||
/**
|
||||
* Get the implicit to-many join path to the <code>SYS.SYSVIEWS</code> table
|
||||
*/
|
||||
public SysviewsPath sysviews() {
|
||||
public Sysviews sysviews() {
|
||||
if (_sysviews == null)
|
||||
_sysviews = new SysviewsPath(this, null, Keys.SYNTHETIC_FK_SYSVIEWS__SYNTHETIC_PK_SYSTABLES.getInverseKey());
|
||||
_sysviews = new Sysviews(this, null, Keys.SYNTHETIC_FK_SYSVIEWS__SYNTHETIC_PK_SYSTABLES.getInverseKey());
|
||||
|
||||
return _sysviews;
|
||||
}
|
||||
|
||||
@ -0,0 +1,233 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package org.jooq.meta.derby.sys.tables;
|
||||
|
||||
|
||||
import java.sql.Timestamp;
|
||||
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.DefaultDataType;
|
||||
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 Systriggers extends TableImpl<Record> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>SYS.SYSTRIGGERS</code>
|
||||
*/
|
||||
public static final Systriggers SYSTRIGGERS = new Systriggers();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<Record> getRecordType() {
|
||||
return Record.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>SYS.SYSTRIGGERS.TRIGGERID</code>.
|
||||
*/
|
||||
public final TableField<Record, String> TRIGGERID = createField(DSL.name("TRIGGERID"), SQLDataType.CHAR(36).nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>SYS.SYSTRIGGERS.TRIGGERNAME</code>.
|
||||
*/
|
||||
public final TableField<Record, String> TRIGGERNAME = createField(DSL.name("TRIGGERNAME"), SQLDataType.VARCHAR(128).nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>SYS.SYSTRIGGERS.SCHEMAID</code>.
|
||||
*/
|
||||
public final TableField<Record, String> SCHEMAID = createField(DSL.name("SCHEMAID"), SQLDataType.CHAR(36).nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>SYS.SYSTRIGGERS.CREATIONTIMESTAMP</code>.
|
||||
*/
|
||||
public final TableField<Record, Timestamp> CREATIONTIMESTAMP = createField(DSL.name("CREATIONTIMESTAMP"), SQLDataType.TIMESTAMP(9).nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>SYS.SYSTRIGGERS.EVENT</code>.
|
||||
*/
|
||||
public final TableField<Record, String> EVENT = createField(DSL.name("EVENT"), SQLDataType.CHAR(1).nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>SYS.SYSTRIGGERS.FIRINGTIME</code>.
|
||||
*/
|
||||
public final TableField<Record, String> FIRINGTIME = createField(DSL.name("FIRINGTIME"), SQLDataType.CHAR(1).nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>SYS.SYSTRIGGERS.TYPE</code>.
|
||||
*/
|
||||
public final TableField<Record, String> TYPE = createField(DSL.name("TYPE"), SQLDataType.CHAR(1).nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>SYS.SYSTRIGGERS.STATE</code>.
|
||||
*/
|
||||
public final TableField<Record, String> STATE = createField(DSL.name("STATE"), SQLDataType.CHAR(1).nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>SYS.SYSTRIGGERS.TABLEID</code>.
|
||||
*/
|
||||
public final TableField<Record, String> TABLEID = createField(DSL.name("TABLEID"), SQLDataType.CHAR(36).nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>SYS.SYSTRIGGERS.WHENSTMTID</code>.
|
||||
*/
|
||||
public final TableField<Record, String> WHENSTMTID = createField(DSL.name("WHENSTMTID"), SQLDataType.CHAR(36), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>SYS.SYSTRIGGERS.ACTIONSTMTID</code>.
|
||||
*/
|
||||
public final TableField<Record, String> ACTIONSTMTID = createField(DSL.name("ACTIONSTMTID"), SQLDataType.CHAR(36), this, "");
|
||||
|
||||
/**
|
||||
* @deprecated Unknown data type. If this is a qualified, user-defined type,
|
||||
* it may have been excluded from code generation. If this is a built-in
|
||||
* type, you can define an explicit {@link org.jooq.Binding} to specify how
|
||||
* this type should be handled. Deprecation can be turned off using
|
||||
* {@literal <deprecationOnUnknownTypes/>} in your code generator
|
||||
* configuration.
|
||||
*/
|
||||
@Deprecated
|
||||
public final TableField<Record, Object> REFERENCEDCOLUMNS = createField(DSL.name("REFERENCEDCOLUMNS"), DefaultDataType.getDefaultDataType("\"org.apache.derby.catalog.ReferencedColumns\""), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>SYS.SYSTRIGGERS.TRIGGERDEFINITION</code>.
|
||||
*/
|
||||
public final TableField<Record, String> TRIGGERDEFINITION = createField(DSL.name("TRIGGERDEFINITION"), SQLDataType.LONGVARCHAR, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>SYS.SYSTRIGGERS.REFERENCINGOLD</code>.
|
||||
*/
|
||||
public final TableField<Record, Boolean> REFERENCINGOLD = createField(DSL.name("REFERENCINGOLD"), SQLDataType.BOOLEAN, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>SYS.SYSTRIGGERS.REFERENCINGNEW</code>.
|
||||
*/
|
||||
public final TableField<Record, Boolean> REFERENCINGNEW = createField(DSL.name("REFERENCINGNEW"), SQLDataType.BOOLEAN, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>SYS.SYSTRIGGERS.OLDREFERENCINGNAME</code>.
|
||||
*/
|
||||
public final TableField<Record, String> OLDREFERENCINGNAME = createField(DSL.name("OLDREFERENCINGNAME"), SQLDataType.VARCHAR(128), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>SYS.SYSTRIGGERS.NEWREFERENCINGNAME</code>.
|
||||
*/
|
||||
public final TableField<Record, String> NEWREFERENCINGNAME = createField(DSL.name("NEWREFERENCINGNAME"), SQLDataType.VARCHAR(128), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>SYS.SYSTRIGGERS.WHENCLAUSETEXT</code>.
|
||||
*/
|
||||
public final TableField<Record, String> WHENCLAUSETEXT = createField(DSL.name("WHENCLAUSETEXT"), SQLDataType.LONGVARCHAR, this, "");
|
||||
|
||||
private Systriggers(Name alias, Table<Record> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private Systriggers(Name alias, Table<Record> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>SYS.SYSTRIGGERS</code> table reference
|
||||
*/
|
||||
public Systriggers(String alias) {
|
||||
this(DSL.name(alias), SYSTRIGGERS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>SYS.SYSTRIGGERS</code> table reference
|
||||
*/
|
||||
public Systriggers(Name alias) {
|
||||
this(alias, SYSTRIGGERS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>SYS.SYSTRIGGERS</code> table reference
|
||||
*/
|
||||
public Systriggers() {
|
||||
this(DSL.name("SYSTRIGGERS"), null);
|
||||
}
|
||||
|
||||
public <O extends Record> Systriggers(Table<O> path, ForeignKey<O, Record> childPath, InverseForeignKey<O, Record> parentPath) {
|
||||
super(path, childPath, parentPath, SYSTRIGGERS);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Sys.SYS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<Record> getPrimaryKey() {
|
||||
return Keys.SYNTHETIC_PK_SYSTRIGGERS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ForeignKey<Record, ?>> getReferences() {
|
||||
return Arrays.asList(Keys.SYNTHETIC_FK_SYSTRIGGERS__SYNTHETIC_PK_SYSSCHEMAS, Keys.SYNTHETIC_FK_SYSTRIGGERS__SYNTHETIC_PK_SYSTABLES);
|
||||
}
|
||||
|
||||
private transient Sysschemas _sysschemas;
|
||||
|
||||
/**
|
||||
* Get the implicit join path to the <code>SYS.SYSSCHEMAS</code> table.
|
||||
*/
|
||||
public Sysschemas sysschemas() {
|
||||
if (_sysschemas == null)
|
||||
_sysschemas = new Sysschemas(this, Keys.SYNTHETIC_FK_SYSTRIGGERS__SYNTHETIC_PK_SYSSCHEMAS, null);
|
||||
|
||||
return _sysschemas;
|
||||
}
|
||||
|
||||
private transient Systables _systables;
|
||||
|
||||
/**
|
||||
* Get the implicit join path to the <code>SYS.SYSTABLES</code> table.
|
||||
*/
|
||||
public Systables systables() {
|
||||
if (_systables == null)
|
||||
_systables = new Systables(this, Keys.SYNTHETIC_FK_SYSTRIGGERS__SYNTHETIC_PK_SYSTABLES, null);
|
||||
|
||||
return _systables;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Systriggers as(String alias) {
|
||||
return new Systriggers(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Systriggers as(Name alias) {
|
||||
return new Systriggers(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Systriggers as(Table<?> alias) {
|
||||
return new Systriggers(alias.getQualifiedName(), this);
|
||||
}
|
||||
}
|
||||
@ -12,7 +12,6 @@ import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.InverseForeignKey;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Path;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
@ -23,7 +22,6 @@ import org.jooq.impl.SQLDataType;
|
||||
import org.jooq.impl.TableImpl;
|
||||
import org.jooq.meta.derby.sys.Keys;
|
||||
import org.jooq.meta.derby.sys.Sys;
|
||||
import org.jooq.meta.derby.sys.tables.Systables.SystablesPath;
|
||||
|
||||
|
||||
/**
|
||||
@ -100,12 +98,6 @@ public class Sysviews extends TableImpl<Record> {
|
||||
super(path, childPath, parentPath, SYSVIEWS);
|
||||
}
|
||||
|
||||
public static class SysviewsPath extends Sysviews implements Path<Record> {
|
||||
public <O extends Record> SysviewsPath(Table<O> path, ForeignKey<O, Record> childPath, InverseForeignKey<O, Record> parentPath) {
|
||||
super(path, childPath, parentPath);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Sys.SYS;
|
||||
@ -116,14 +108,14 @@ public class Sysviews extends TableImpl<Record> {
|
||||
return Arrays.asList(Keys.SYNTHETIC_FK_SYSVIEWS__SYNTHETIC_PK_SYSTABLES);
|
||||
}
|
||||
|
||||
private transient SystablesPath _systables;
|
||||
private transient Systables _systables;
|
||||
|
||||
/**
|
||||
* Get the implicit join path to the <code>SYS.SYSTABLES</code> table.
|
||||
*/
|
||||
public SystablesPath systables() {
|
||||
public Systables systables() {
|
||||
if (_systables == null)
|
||||
_systables = new SystablesPath(this, Keys.SYNTHETIC_FK_SYSVIEWS__SYNTHETIC_PK_SYSTABLES, null);
|
||||
_systables = new Systables(this, Keys.SYNTHETIC_FK_SYSVIEWS__SYNTHETIC_PK_SYSTABLES, null);
|
||||
|
||||
return _systables;
|
||||
}
|
||||
|
||||
@ -377,6 +377,17 @@ package org.jooq.impl;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -720,5 +720,6 @@ package org.jooq.impl;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user