[#1279] NullPointerException when leaving <inputSchema/> empty

[#1312] Allow for omitting <inputSchema/>, and generate all available schemata in that case
This commit is contained in:
Lukas Eder 2012-04-14 13:47:05 +00:00
parent 64a80a8e4c
commit d99b20b89c
212 changed files with 1749 additions and 965 deletions

View File

@ -282,6 +282,7 @@ public class DefaultGenerator implements Generator {
// ----------------------------------------------------------------------
// XXX Generating schemas
// ----------------------------------------------------------------------
log.info("Generating schemata", "Total: " + database.getSchemata().size());
for (SchemaDefinition schema : database.getSchemata()) {
generate(database, schema, watch);
}
@ -1755,7 +1756,7 @@ public class DefaultGenerator implements Generator {
}
private void printColumnValidationAnnotation(GenerationWriter out, ColumnDefinition column) {
if (generateJPAAnnotations()) {
if (generateValidationAnnotations()) {
DataTypeDefinition type = column.getType();
boolean newline = true;

View File

@ -117,8 +117,8 @@ public class GenerationTool {
// TODO [#1201] Add better error handling here
xml = xml.replaceAll(
"<configuration xmlns=\"http://www.jooq.org/xsd/jooq-codegen-\\d+\\.\\d+\\.\\d+.xsd\">",
"<configuration xmlns=\"http://www.jooq.org/xsd/jooq-codegen-2.3.0.xsd\">");
"<(\\w+:)?configuration xmlns(:\\w+)?=\"http://www.jooq.org/xsd/jooq-codegen-\\d+\\.\\d+\\.\\d+.xsd\">",
"<$1configuration xmlns$2=\"http://www.jooq.org/xsd/jooq-codegen-2.3.0.xsd\">");
xml = xml.replace(
"<configuration>",
@ -323,7 +323,10 @@ public class GenerationTool {
for (Schema schema : schemata) {
if (StringUtils.isBlank(schema.getInputSchema())) {
log.warn("WARNING: The configuration property jdbc.Schema is deprecated and will be removed in the future. Use /configuration/generator/database/inputSchema instead");
if (!StringUtils.isBlank(j.getSchema())) {
log.warn("WARNING: The configuration property jdbc.Schema is deprecated and will be removed in the future. Use /configuration/generator/database/inputSchema instead");
}
schema.setInputSchema(trim(j.getSchema()));
}
@ -332,6 +335,12 @@ public class GenerationTool {
}
}
if (schemata.size() == 1) {
if (StringUtils.isBlank(schemata.get(0).getInputSchema())) {
log.info("No <inputSchema/> was provided. Generating ALL available schemata instead!");
}
}
database.setConnection(connection);
database.setConfiguredSchemata(schemata);
database.setIncludes(defaultString(g.getDatabase().getIncludes()).split(","));
@ -374,6 +383,8 @@ public class GenerationTool {
generator.setGenerateRecords(g.getGenerate().isRecords());
if (g.getGenerate().isJpaAnnotations() != null)
generator.setGenerateJPAAnnotations(g.getGenerate().isJpaAnnotations());
if (g.getGenerate().isValidationAnnotations() != null)
generator.setGenerateValidationAnnotations(g.getGenerate().isValidationAnnotations());
// Generator properties that should in fact be strategy properties
strategy.setInstanceFields(generator.generateInstanceFields());

View File

@ -42,11 +42,13 @@ import java.math.BigInteger;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.jooq.SQLDialect;
import org.jooq.impl.SQLDataType;
import org.jooq.tools.JooqLogger;
import org.jooq.tools.StringUtils;
import org.jooq.tools.csv.CSVReader;
import org.jooq.util.jaxb.CustomType;
import org.jooq.util.jaxb.EnumType;
@ -82,6 +84,7 @@ public abstract class AbstractDatabase implements Database {
// Loaded definitions
// -------------------------------------------------------------------------
private List<String> inputSchemata;
private List<SchemaDefinition> schemata;
private List<SequenceDefinition> sequences;
private List<TableDefinition> tables;
@ -115,8 +118,18 @@ public abstract class AbstractDatabase implements Database {
if (schemata == null) {
schemata = new ArrayList<SchemaDefinition>();
for (String name : getInputSchemata()) {
schemata.add(new SchemaDefinition(this, name, null));
try {
schemata = getSchemata0();
}
catch (SQLException e) {
log.error("Could not load schemata", e);
}
Iterator<SchemaDefinition> it = schemata.iterator();
while (it.hasNext()) {
if (!getInputSchemata().contains(it.next().getName())) {
it.remove();
}
}
}
@ -136,13 +149,29 @@ public abstract class AbstractDatabase implements Database {
@Override
public final List<String> getInputSchemata() {
List<String> result = new ArrayList<String>();
if (inputSchemata == null) {
inputSchemata = new ArrayList<String>();
for (Schema schema : configuredSchemata) {
result.add(schema.getInputSchema());
// [#1312] Allow for ommitting inputSchema configuration. Generate
// All schemata instead
if (configuredSchemata.size() == 1 && StringUtils.isBlank(configuredSchemata.get(0).getInputSchema())) {
try {
for (SchemaDefinition schema : getSchemata0()) {
inputSchemata.add(schema.getName());
}
}
catch (SQLException e) {
log.error("Could not load schemata", e);
}
}
else {
for (Schema schema : configuredSchemata) {
inputSchemata.add(schema.getInputSchema());
}
}
}
return result;
return inputSchemata;
}
@Override
@ -626,6 +655,12 @@ public abstract class AbstractDatabase implements Database {
*/
protected abstract void loadForeignKeys(DefaultRelations r) throws SQLException;
/**
* Retrieve ALL schemata from the database. This will be filtered in
* {@link #getSchemata()}
*/
protected abstract List<SchemaDefinition> getSchemata0() throws SQLException;
/**
* Retrieve ALL sequences from the database. This will be filtered in
* {@link #getTables(SchemaDefinition)}

View File

@ -40,6 +40,7 @@ import static org.jooq.impl.Factory.concat;
import static org.jooq.impl.Factory.field;
import static org.jooq.impl.Factory.val;
import static org.jooq.util.ase.sys.tables.Sysindexes.SYSINDEXES;
import static org.jooq.util.ase.sys.tables.Sysusers.SYSUSERS;
import java.sql.SQLException;
import java.util.ArrayList;
@ -63,6 +64,7 @@ import org.jooq.util.UDTDefinition;
import org.jooq.util.ase.sys.DboFactory;
import org.jooq.util.ase.sys.tables.Sysindexes;
import org.jooq.util.ase.sys.tables.Sysreferences;
import org.jooq.util.ase.sys.tables.Sysusers;
/**
* Sybase Adaptive Server implementation of {@link AbstractDatabase}
@ -211,6 +213,21 @@ public class ASEDatabase extends AbstractDatabase {
}
}
@Override
protected List<SchemaDefinition> getSchemata0() throws SQLException {
List<SchemaDefinition> result = new ArrayList<SchemaDefinition>();
for (String name : create()
.select(Sysusers.NAME)
.from(SYSUSERS)
.fetch(Sysusers.NAME)) {
result.add(new SchemaDefinition(this, name, ""));
}
return result;
}
@Override
protected List<SequenceDefinition> getSequences0() throws SQLException {
List<SequenceDefinition> result = new ArrayList<SequenceDefinition>();

View File

@ -6,11 +6,11 @@ package org.jooq.util.ase.sys;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Dbo extends org.jooq.impl.SchemaImpl {
private static final long serialVersionUID = 1383637504;
private static final long serialVersionUID = -2008777836;
/**
* The singleton instance of dbo
@ -29,6 +29,7 @@ public class Dbo extends org.jooq.impl.SchemaImpl {
return java.util.Arrays.<org.jooq.Table<?>>asList(
org.jooq.util.ase.sys.tables.Sysindexes.SYSINDEXES,
org.jooq.util.ase.sys.tables.Sysobjects.SYSOBJECTS,
org.jooq.util.ase.sys.tables.Sysreferences.SYSREFERENCES);
org.jooq.util.ase.sys.tables.Sysreferences.SYSREFERENCES,
org.jooq.util.ase.sys.tables.Sysusers.SYSUSERS);
}
}

View File

@ -6,11 +6,11 @@ package org.jooq.util.ase.sys;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class DboFactory extends org.jooq.util.ase.ASEFactory {
private static final long serialVersionUID = -1750129658;
private static final long serialVersionUID = 1180326851;
/**
* Create a factory with a connection

View File

@ -8,7 +8,7 @@ package org.jooq.util.ase.sys;
*
* Convenience access to all tables in dbo
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public final class Tables {
@ -27,6 +27,11 @@ public final class Tables {
*/
public static org.jooq.util.ase.sys.tables.Sysreferences SYSREFERENCES = org.jooq.util.ase.sys.tables.Sysreferences.SYSREFERENCES;
/**
* The table dbo.sysusers
*/
public static org.jooq.util.ase.sys.tables.Sysusers SYSUSERS = org.jooq.util.ase.sys.tables.Sysusers.SYSUSERS;
/**
* No instances
*/

View File

@ -6,11 +6,11 @@ package org.jooq.util.ase.sys.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Sysindexes extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 664930674;
private static final long serialVersionUID = -1728546129;
/**
* The singleton instance of dbo.sysindexes

View File

@ -6,11 +6,11 @@ package org.jooq.util.ase.sys.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Sysobjects extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -1862765525;
private static final long serialVersionUID = 269485006;
/**
* The singleton instance of dbo.sysobjects

View File

@ -6,11 +6,11 @@ package org.jooq.util.ase.sys.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Sysreferences extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -1354733426;
private static final long serialVersionUID = 1183364529;
/**
* The singleton instance of dbo.sysreferences

View File

@ -0,0 +1,64 @@
/**
* This class is generated by jOOQ
*/
package org.jooq.util.ase.sys.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Sysusers extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 1948471539;
/**
* The singleton instance of dbo.sysusers
*/
public static final org.jooq.util.ase.sys.tables.Sysusers SYSUSERS = new org.jooq.util.ase.sys.tables.Sysusers();
/**
* The class holding records for this type
*/
private static final java.lang.Class<org.jooq.Record> __RECORD_TYPE = org.jooq.Record.class;
/**
* The class holding records for this type
*/
@Override
public java.lang.Class<org.jooq.Record> getRecordType() {
return __RECORD_TYPE;
}
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.Integer> SUID = createField("suid", org.jooq.impl.SQLDataType.INTEGER, SYSUSERS);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.Integer> UID = createField("uid", org.jooq.impl.SQLDataType.INTEGER, SYSUSERS);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.Integer> GID = createField("gid", org.jooq.impl.SQLDataType.INTEGER, SYSUSERS);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> NAME = createField("name", org.jooq.impl.SQLDataType.VARCHAR, SYSUSERS);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> ENVIRON = createField("environ", org.jooq.impl.SQLDataType.VARCHAR, SYSUSERS);
/**
* No further instances allowed
*/
private Sysusers() {
super("sysusers", org.jooq.util.ase.sys.Dbo.DBO);
}
}

View File

@ -43,6 +43,7 @@ import static org.jooq.util.cubrid.dba.Tables.DB_CLASS;
import static org.jooq.util.cubrid.dba.Tables.DB_INDEX;
import static org.jooq.util.cubrid.dba.Tables.DB_INDEX_KEY;
import static org.jooq.util.cubrid.dba.Tables.DB_SERIAL;
import static org.jooq.util.cubrid.dba.Tables.DB_USER;
import java.math.BigInteger;
import java.sql.DatabaseMetaData;
@ -157,6 +158,21 @@ public class CUBRIDDatabase extends AbstractDatabase {
}
}
@Override
protected List<SchemaDefinition> getSchemata0() throws SQLException {
List<SchemaDefinition> result = new ArrayList<SchemaDefinition>();
for (String name : create()
.select(DB_USER.NAME)
.from(DB_USER)
.fetch(DB_USER.NAME)) {
result.add(new SchemaDefinition(this, name, ""));
}
return result;
}
@Override
protected List<SequenceDefinition> getSequences0() throws SQLException {
List<SequenceDefinition> result = new ArrayList<SequenceDefinition>();

View File

@ -6,11 +6,11 @@ package org.jooq.util.cubrid.dba;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.2.0"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Dba extends org.jooq.impl.SchemaImpl {
private static final long serialVersionUID = 216675210;
private static final long serialVersionUID = 1086648763;
/**
* The singleton instance of DBA
@ -31,6 +31,7 @@ public class Dba extends org.jooq.impl.SchemaImpl {
org.jooq.util.cubrid.dba.tables.DbClass.DB_CLASS,
org.jooq.util.cubrid.dba.tables.DbIndex.DB_INDEX,
org.jooq.util.cubrid.dba.tables.DbIndexKey.DB_INDEX_KEY,
org.jooq.util.cubrid.dba.tables.DbSerial.DB_SERIAL);
org.jooq.util.cubrid.dba.tables.DbSerial.DB_SERIAL,
org.jooq.util.cubrid.dba.tables.DbUser.DB_USER);
}
}

View File

@ -6,11 +6,11 @@ package org.jooq.util.cubrid.dba;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.2.0"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class DbaFactory extends org.jooq.util.cubrid.CUBRIDFactory {
private static final long serialVersionUID = -166585026;
private static final long serialVersionUID = 1796518591;
/**
* Create a factory with a connection

View File

@ -8,7 +8,7 @@ package org.jooq.util.cubrid.dba;
*
* Convenience access to all tables in DBA
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.2.0"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public final class Tables {
@ -37,6 +37,11 @@ public final class Tables {
*/
public static org.jooq.util.cubrid.dba.tables.DbSerial DB_SERIAL = org.jooq.util.cubrid.dba.tables.DbSerial.DB_SERIAL;
/**
* The table DBA.db_user
*/
public static org.jooq.util.cubrid.dba.tables.DbUser DB_USER = org.jooq.util.cubrid.dba.tables.DbUser.DB_USER;
/**
* No instances
*/

View File

@ -6,11 +6,11 @@ package org.jooq.util.cubrid.dba.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.2.0"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class DbAttribute extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -1348144219;
private static final long serialVersionUID = 344989030;
/**
* The singleton instance of DBA.db_attribute

View File

@ -6,11 +6,11 @@ package org.jooq.util.cubrid.dba.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.2.0"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class DbClass extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 1215483532;
private static final long serialVersionUID = -1391625429;
/**
* The singleton instance of DBA.db_class

View File

@ -6,11 +6,11 @@ package org.jooq.util.cubrid.dba.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.2.0"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class DbIndex extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 1323614535;
private static final long serialVersionUID = -468760794;
/**
* The singleton instance of DBA.db_index

View File

@ -6,11 +6,11 @@ package org.jooq.util.cubrid.dba.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.2.0"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class DbIndexKey extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -1653020162;
private static final long serialVersionUID = -851934691;
/**
* The singleton instance of DBA.db_index_key

View File

@ -6,11 +6,11 @@ package org.jooq.util.cubrid.dba.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.2.0"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class DbSerial extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -1656488487;
private static final long serialVersionUID = 51483064;
/**
* The singleton instance of DBA.db_serial

View File

@ -0,0 +1,95 @@
/**
* This class is generated by jOOQ
*/
package org.jooq.util.cubrid.dba.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class DbUser extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -154927421;
/**
* The singleton instance of DBA.db_user
*/
public static final org.jooq.util.cubrid.dba.tables.DbUser DB_USER = new org.jooq.util.cubrid.dba.tables.DbUser();
/**
* The class holding records for this type
*/
private static final java.lang.Class<org.jooq.Record> __RECORD_TYPE = org.jooq.Record.class;
/**
* The class holding records for this type
*/
@Override
public java.lang.Class<org.jooq.Record> getRecordType() {
return __RECORD_TYPE;
}
/**
* An uncommented item
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.String> NAME = createField("name", org.jooq.impl.SQLDataType.VARCHAR, this);
/**
* An uncommented item
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.Integer> ID = createField("id", org.jooq.impl.SQLDataType.INTEGER, this);
/**
* An uncommented item
*
* The SQL type of this item (OBJECT) could not be mapped.<br/>
* Deserialising this field might not work!
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.Object> PASSWORD = createField("password", org.jooq.impl.SQLDataType.OTHER, this);
/**
* An uncommented item
*
* The SQL type of this item (SET) could not be mapped.<br/>
* Deserialising this field might not work!
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.Object> DIRECT_GROUPS = createField("direct_groups", org.jooq.impl.SQLDataType.OTHER, this);
/**
* An uncommented item
*
* The SQL type of this item (SET) could not be mapped.<br/>
* Deserialising this field might not work!
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.Object> GROUPS = createField("groups", org.jooq.impl.SQLDataType.OTHER, this);
/**
* An uncommented item
*
* The SQL type of this item (OBJECT) could not be mapped.<br/>
* Deserialising this field might not work!
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.Object> AUTHORIZATION = createField("authorization", org.jooq.impl.SQLDataType.OTHER, this);
/**
* An uncommented item
*
* The SQL type of this item (SEQUENCE) could not be mapped.<br/>
* Deserialising this field might not work!
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.Object> TRIGGERS = createField("triggers", org.jooq.impl.SQLDataType.OTHER, this);
public DbUser() {
super("db_user", org.jooq.util.cubrid.dba.Dba.DBA);
}
public DbUser(java.lang.String alias) {
super(alias, org.jooq.util.cubrid.dba.Dba.DBA, org.jooq.util.cubrid.dba.tables.DbUser.DB_USER);
}
@Override
public org.jooq.util.cubrid.dba.tables.DbUser as(java.lang.String alias) {
return new org.jooq.util.cubrid.dba.tables.DbUser(alias);
}
}

View File

@ -38,18 +38,19 @@ package org.jooq.util.db2;
import static org.jooq.impl.Factory.concat;
import static org.jooq.impl.Factory.two;
import static org.jooq.impl.Factory.val;
import static org.jooq.util.db2.syscat.tables.Datatypes.DATATYPES;
import static org.jooq.util.db2.syscat.Tables.DATATYPES;
import static org.jooq.util.db2.syscat.Tables.FUNCTIONS;
import static org.jooq.util.db2.syscat.Tables.KEYCOLUSE;
import static org.jooq.util.db2.syscat.Tables.REFERENCES;
import static org.jooq.util.db2.syscat.Tables.SCHEMATA;
import static org.jooq.util.db2.syscat.Tables.SEQUENCES;
import static org.jooq.util.db2.syscat.Tables.TABCONST;
import static org.jooq.util.db2.syscat.Tables.TABLES;
import static org.jooq.util.db2.syscat.tables.Functions.FUNCNAME;
import static org.jooq.util.db2.syscat.tables.Functions.FUNCSCHEMA;
import static org.jooq.util.db2.syscat.tables.Functions.FUNCTIONS;
import static org.jooq.util.db2.syscat.tables.Keycoluse.KEYCOLUSE;
import static org.jooq.util.db2.syscat.tables.Procedures.PROCEDURES;
import static org.jooq.util.db2.syscat.tables.Procedures.PROCNAME;
import static org.jooq.util.db2.syscat.tables.Procedures.PROCSCHEMA;
import static org.jooq.util.db2.syscat.tables.References.REFERENCES;
import static org.jooq.util.db2.syscat.tables.Sequences.SEQUENCES;
import static org.jooq.util.db2.syscat.tables.Tabconst.TABCONST;
import static org.jooq.util.db2.syscat.tables.Tables.TABLES;
import java.sql.SQLException;
import java.util.ArrayList;
@ -76,6 +77,7 @@ import org.jooq.util.db2.syscat.SyscatFactory;
import org.jooq.util.db2.syscat.tables.Datatypes;
import org.jooq.util.db2.syscat.tables.Keycoluse;
import org.jooq.util.db2.syscat.tables.References;
import org.jooq.util.db2.syscat.tables.Schemata;
import org.jooq.util.db2.syscat.tables.Sequences;
import org.jooq.util.db2.syscat.tables.Tabconst;
import org.jooq.util.db2.syscat.tables.Tables;
@ -187,6 +189,21 @@ public class DB2Database extends AbstractDatabase {
}
}
@Override
protected List<SchemaDefinition> getSchemata0() throws SQLException {
List<SchemaDefinition> result = new ArrayList<SchemaDefinition>();
for (String name : create()
.select(Schemata.SCHEMANAME.trim())
.from(SCHEMATA)
.fetch(Schemata.SCHEMANAME.trim())) {
result.add(new SchemaDefinition(this, name, ""));
}
return result;
}
@Override
protected List<SequenceDefinition> getSequences0() throws SQLException {
List<SequenceDefinition> result = new ArrayList<SequenceDefinition>();

View File

@ -6,11 +6,11 @@ package org.jooq.util.db2.syscat;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Syscat extends org.jooq.impl.SchemaImpl {
private static final long serialVersionUID = 1387661164;
private static final long serialVersionUID = 954463263;
/**
* The singleton instance of SYSCAT
@ -36,6 +36,7 @@ public class Syscat extends org.jooq.impl.SchemaImpl {
org.jooq.util.db2.syscat.tables.Procedures.PROCEDURES,
org.jooq.util.db2.syscat.tables.Procparms.PROCPARMS,
org.jooq.util.db2.syscat.tables.References.REFERENCES,
org.jooq.util.db2.syscat.tables.Schemata.SCHEMATA,
org.jooq.util.db2.syscat.tables.Sequences.SEQUENCES,
org.jooq.util.db2.syscat.tables.Tabconst.TABCONST,
org.jooq.util.db2.syscat.tables.Tables.TABLES);

View File

@ -6,11 +6,11 @@ package org.jooq.util.db2.syscat;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class SyscatFactory extends org.jooq.util.db2.DB2Factory {
private static final long serialVersionUID = -372754065;
private static final long serialVersionUID = -1392286126;
/**
* Create a factory with a connection

View File

@ -8,7 +8,7 @@ package org.jooq.util.db2.syscat;
*
* Convenience access to all tables in SYSCAT
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public final class Tables {
@ -57,6 +57,11 @@ public final class Tables {
*/
public static org.jooq.util.db2.syscat.tables.References REFERENCES = org.jooq.util.db2.syscat.tables.References.REFERENCES;
/**
* The table SYSCAT.SCHEMATA
*/
public static org.jooq.util.db2.syscat.tables.Schemata SCHEMATA = org.jooq.util.db2.syscat.tables.Schemata.SCHEMATA;
/**
* The table SYSCAT.SEQUENCES
*/

View File

@ -6,11 +6,11 @@ package org.jooq.util.db2.syscat.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Attributes extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 1544180123;
private static final long serialVersionUID = -1665246530;
/**
* The singleton instance of SYSCAT.ATTRIBUTES

View File

@ -6,11 +6,11 @@ package org.jooq.util.db2.syscat.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Columns extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 2033717233;
private static final long serialVersionUID = -1162728876;
/**
* The singleton instance of SYSCAT.COLUMNS

View File

@ -6,11 +6,11 @@ package org.jooq.util.db2.syscat.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Datatypes extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -678430722;
private static final long serialVersionUID = 1101322107;
/**
* The singleton instance of SYSCAT.DATATYPES

View File

@ -6,11 +6,11 @@ package org.jooq.util.db2.syscat.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Funcparms extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 1422623242;
private static final long serialVersionUID = -1036939001;
/**
* The singleton instance of SYSCAT.FUNCPARMS

View File

@ -6,11 +6,11 @@ package org.jooq.util.db2.syscat.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Functions extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 1565733387;
private static final long serialVersionUID = 1838462254;
/**
* The singleton instance of SYSCAT.FUNCTIONS

View File

@ -6,11 +6,11 @@ package org.jooq.util.db2.syscat.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Keycoluse extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -1024358622;
private static final long serialVersionUID = 1002319173;
/**
* The singleton instance of SYSCAT.KEYCOLUSE

View File

@ -6,11 +6,11 @@ package org.jooq.util.db2.syscat.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Procedures extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 1262378665;
private static final long serialVersionUID = -707072986;
/**
* The singleton instance of SYSCAT.PROCEDURES

View File

@ -6,11 +6,11 @@ package org.jooq.util.db2.syscat.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Procparms extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -1518578228;
private static final long serialVersionUID = 1900169;
/**
* The singleton instance of SYSCAT.PROCPARMS

View File

@ -6,11 +6,11 @@ package org.jooq.util.db2.syscat.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class References extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -98734711;
private static final long serialVersionUID = 1536265542;
/**
* The singleton instance of SYSCAT.REFERENCES

View File

@ -0,0 +1,74 @@
/**
* This class is generated by jOOQ
*/
package org.jooq.util.db2.syscat.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Schemata extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 1092308661;
/**
* The singleton instance of SYSCAT.SCHEMATA
*/
public static final org.jooq.util.db2.syscat.tables.Schemata SCHEMATA = new org.jooq.util.db2.syscat.tables.Schemata();
/**
* The class holding records for this type
*/
private static final java.lang.Class<org.jooq.Record> __RECORD_TYPE = org.jooq.Record.class;
/**
* The class holding records for this type
*/
@Override
public java.lang.Class<org.jooq.Record> getRecordType() {
return __RECORD_TYPE;
}
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> SCHEMANAME = createField("SCHEMANAME", org.jooq.impl.SQLDataType.VARCHAR, SCHEMATA);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> OWNER = createField("OWNER", org.jooq.impl.SQLDataType.VARCHAR, SCHEMATA);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> OWNERTYPE = createField("OWNERTYPE", org.jooq.impl.SQLDataType.CHAR, SCHEMATA);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> DEFINER = createField("DEFINER", org.jooq.impl.SQLDataType.VARCHAR, SCHEMATA);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> DEFINERTYPE = createField("DEFINERTYPE", org.jooq.impl.SQLDataType.CHAR, SCHEMATA);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.sql.Timestamp> CREATE_TIME = createField("CREATE_TIME", org.jooq.impl.SQLDataType.TIMESTAMP, SCHEMATA);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> REMARKS = createField("REMARKS", org.jooq.impl.SQLDataType.VARCHAR, SCHEMATA);
/**
* No further instances allowed
*/
private Schemata() {
super("SCHEMATA", org.jooq.util.db2.syscat.Syscat.SYSCAT);
}
}

View File

@ -6,11 +6,11 @@ package org.jooq.util.db2.syscat.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Sequences extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 1706667636;
private static final long serialVersionUID = 1777710103;
/**
* The singleton instance of SYSCAT.SEQUENCES

View File

@ -6,11 +6,11 @@ package org.jooq.util.db2.syscat.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Tabconst extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 1915033245;
private static final long serialVersionUID = -1245548070;
/**
* The singleton instance of SYSCAT.TABCONST

View File

@ -6,11 +6,11 @@ package org.jooq.util.db2.syscat.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Tables extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 1553584909;
private static final long serialVersionUID = 1679771594;
/**
* The singleton instance of SYSCAT.TABLES

View File

@ -211,6 +211,21 @@ public class DerbyDatabase extends AbstractDatabase {
return result;
}
@Override
protected List<SchemaDefinition> getSchemata0() throws SQLException {
List<SchemaDefinition> result = new ArrayList<SchemaDefinition>();
for (String name : create()
.select(Sysschemas.SCHEMANAME)
.from(SYSSCHEMAS)
.fetch(Sysschemas.SCHEMANAME)) {
result.add(new SchemaDefinition(this, name, ""));
}
return result;
}
@Override
protected List<SequenceDefinition> getSequences0() throws SQLException {
List<SequenceDefinition> result = new ArrayList<SequenceDefinition>();

View File

@ -38,6 +38,7 @@ package org.jooq.util.h2;
import static org.jooq.util.h2.information_schema.tables.Constraints.CONSTRAINTS;
import static org.jooq.util.h2.information_schema.tables.CrossReferences.CROSS_REFERENCES;
import static org.jooq.util.h2.information_schema.tables.FunctionAliases.FUNCTION_ALIASES;
import static org.jooq.util.h2.information_schema.tables.Schemata.SCHEMATA;
import static org.jooq.util.h2.information_schema.tables.Sequences.SEQUENCES;
import static org.jooq.util.h2.information_schema.tables.Tables.TABLES;
import static org.jooq.util.h2.information_schema.tables.TypeInfo.TYPE_INFO;
@ -65,6 +66,7 @@ import org.jooq.util.h2.information_schema.InformationSchemaFactory;
import org.jooq.util.h2.information_schema.tables.Constraints;
import org.jooq.util.h2.information_schema.tables.CrossReferences;
import org.jooq.util.h2.information_schema.tables.FunctionAliases;
import org.jooq.util.h2.information_schema.tables.Schemata;
import org.jooq.util.h2.information_schema.tables.Sequences;
import org.jooq.util.h2.information_schema.tables.Tables;
import org.jooq.util.h2.information_schema.tables.TypeInfo;
@ -173,6 +175,24 @@ public class H2Database extends AbstractDatabase {
}
}
@Override
protected List<SchemaDefinition> getSchemata0() throws SQLException {
List<SchemaDefinition> result = new ArrayList<SchemaDefinition>();
for (Record record : create().select(
Schemata.SCHEMA_NAME,
Schemata.REMARKS)
.from(SCHEMATA)
.fetch()) {
result.add(new SchemaDefinition(this,
record.getValue(Schemata.SCHEMA_NAME),
record.getValue(Schemata.REMARKS)));
}
return result;
}
@Override
protected List<SequenceDefinition> getSequences0() throws SQLException {
List<SequenceDefinition> result = new ArrayList<SequenceDefinition>();

View File

@ -6,11 +6,11 @@ package org.jooq.util.h2.information_schema;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class InformationSchema extends org.jooq.impl.SchemaImpl {
private static final long serialVersionUID = 1888320696;
private static final long serialVersionUID = -652367162;
/**
* The singleton instance of INFORMATION_SCHEMA
@ -30,6 +30,7 @@ public class InformationSchema extends org.jooq.impl.SchemaImpl {
org.jooq.util.h2.information_schema.tables.FunctionColumns.FUNCTION_COLUMNS,
org.jooq.util.h2.information_schema.tables.Constraints.CONSTRAINTS,
org.jooq.util.h2.information_schema.tables.CrossReferences.CROSS_REFERENCES,
org.jooq.util.h2.information_schema.tables.Schemata.SCHEMATA,
org.jooq.util.h2.information_schema.tables.FunctionAliases.FUNCTION_ALIASES,
org.jooq.util.h2.information_schema.tables.Sequences.SEQUENCES,
org.jooq.util.h2.information_schema.tables.TypeInfo.TYPE_INFO,

View File

@ -6,11 +6,11 @@ package org.jooq.util.h2.information_schema;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class InformationSchemaFactory extends org.jooq.util.h2.H2Factory {
private static final long serialVersionUID = 1216829554;
private static final long serialVersionUID = -340832465;
/**
* Create a factory with a connection

View File

@ -8,7 +8,7 @@ package org.jooq.util.h2.information_schema;
*
* Convenience access to all tables in INFORMATION_SCHEMA
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public final class Tables {
@ -27,6 +27,11 @@ public final class Tables {
*/
public static org.jooq.util.h2.information_schema.tables.CrossReferences CROSS_REFERENCES = org.jooq.util.h2.information_schema.tables.CrossReferences.CROSS_REFERENCES;
/**
* The table INFORMATION_SCHEMA.SCHEMATA
*/
public static org.jooq.util.h2.information_schema.tables.Schemata SCHEMATA = org.jooq.util.h2.information_schema.tables.Schemata.SCHEMATA;
/**
* The table INFORMATION_SCHEMA.FUNCTION_ALIASES
*/

View File

@ -6,11 +6,11 @@ package org.jooq.util.h2.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Columns extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 344248416;
private static final long serialVersionUID = -806204669;
/**
* The singleton instance of INFORMATION_SCHEMA.COLUMNS

View File

@ -6,11 +6,11 @@ package org.jooq.util.h2.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Constraints extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -820225270;
private static final long serialVersionUID = -2089202361;
/**
* The singleton instance of INFORMATION_SCHEMA.CONSTRAINTS

View File

@ -6,11 +6,11 @@ package org.jooq.util.h2.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class CrossReferences extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 379859458;
private static final long serialVersionUID = 1959764581;
/**
* The singleton instance of INFORMATION_SCHEMA.CROSS_REFERENCES

View File

@ -6,11 +6,11 @@ package org.jooq.util.h2.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class FunctionAliases extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -745022602;
private static final long serialVersionUID = 965480179;
/**
* The singleton instance of INFORMATION_SCHEMA.FUNCTION_ALIASES

View File

@ -6,11 +6,11 @@ package org.jooq.util.h2.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class FunctionColumns extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 2037193224;
private static final long serialVersionUID = 1195680875;
/**
* The singleton instance of INFORMATION_SCHEMA.FUNCTION_COLUMNS

View File

@ -0,0 +1,79 @@
/**
* This class is generated by jOOQ
*/
package org.jooq.util.h2.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Schemata extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -933683682;
/**
* The singleton instance of INFORMATION_SCHEMA.SCHEMATA
*/
public static final org.jooq.util.h2.information_schema.tables.Schemata SCHEMATA = new org.jooq.util.h2.information_schema.tables.Schemata();
/**
* The class holding records for this type
*/
private static final java.lang.Class<org.jooq.Record> __RECORD_TYPE = org.jooq.Record.class;
/**
* The class holding records for this type
*/
@Override
public java.lang.Class<org.jooq.Record> getRecordType() {
return __RECORD_TYPE;
}
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> CATALOG_NAME = createField("CATALOG_NAME", org.jooq.impl.SQLDataType.VARCHAR, SCHEMATA);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> SCHEMA_NAME = createField("SCHEMA_NAME", org.jooq.impl.SQLDataType.VARCHAR, SCHEMATA);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> SCHEMA_OWNER = createField("SCHEMA_OWNER", org.jooq.impl.SQLDataType.VARCHAR, SCHEMATA);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> DEFAULT_CHARACTER_SET_NAME = createField("DEFAULT_CHARACTER_SET_NAME", org.jooq.impl.SQLDataType.VARCHAR, SCHEMATA);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> DEFAULT_COLLATION_NAME = createField("DEFAULT_COLLATION_NAME", org.jooq.impl.SQLDataType.VARCHAR, SCHEMATA);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.Boolean> IS_DEFAULT = createField("IS_DEFAULT", org.jooq.impl.SQLDataType.BOOLEAN, SCHEMATA);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> REMARKS = createField("REMARKS", org.jooq.impl.SQLDataType.VARCHAR, SCHEMATA);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.Integer> ID = createField("ID", org.jooq.impl.SQLDataType.INTEGER, SCHEMATA);
/**
* No further instances allowed
*/
private Schemata() {
super("SCHEMATA", org.jooq.util.h2.information_schema.InformationSchema.INFORMATION_SCHEMA);
}
}

View File

@ -6,11 +6,11 @@ package org.jooq.util.h2.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Sequences extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 726821903;
private static final long serialVersionUID = -1603626292;
/**
* The singleton instance of INFORMATION_SCHEMA.SEQUENCES

View File

@ -6,11 +6,11 @@ package org.jooq.util.h2.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Tables extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -909898387;
private static final long serialVersionUID = -1803714096;
/**
* The singleton instance of INFORMATION_SCHEMA.TABLES

View File

@ -6,11 +6,11 @@ package org.jooq.util.h2.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class TypeInfo extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 1507222662;
private static final long serialVersionUID = -386106557;
/**
* The singleton instance of INFORMATION_SCHEMA.TYPE_INFO

View File

@ -41,6 +41,7 @@ import static org.jooq.util.hsqldb.information_schema.Tables.ELEMENT_TYPES;
import static org.jooq.util.hsqldb.information_schema.Tables.KEY_COLUMN_USAGE;
import static org.jooq.util.hsqldb.information_schema.Tables.REFERENTIAL_CONSTRAINTS;
import static org.jooq.util.hsqldb.information_schema.Tables.ROUTINES;
import static org.jooq.util.hsqldb.information_schema.Tables.SCHEMATA;
import static org.jooq.util.hsqldb.information_schema.Tables.SEQUENCES;
import static org.jooq.util.hsqldb.information_schema.Tables.TABLES;
import static org.jooq.util.hsqldb.information_schema.Tables.TABLE_CONSTRAINTS;
@ -79,9 +80,6 @@ public class HSQLDBDatabase extends AbstractDatabase {
return new HSQLDBFactory(getConnection());
}
/**
* {@inheritDoc}
*/
@Override
protected void loadPrimaryKeys(DefaultRelations relations) throws SQLException {
for (Record record : fetchKeys("PRIMARY KEY")) {
@ -97,9 +95,6 @@ public class HSQLDBDatabase extends AbstractDatabase {
}
}
/**
* {@inheritDoc}
*/
@Override
protected void loadUniqueKeys(DefaultRelations relations) throws SQLException {
for (Record record : fetchKeys("UNIQUE")) {
@ -136,9 +131,6 @@ public class HSQLDBDatabase extends AbstractDatabase {
.fetch();
}
/**
* {@inheritDoc}
*/
@Override
protected void loadForeignKeys(DefaultRelations relations) throws SQLException {
Result<Record> result = create()
@ -179,9 +171,21 @@ public class HSQLDBDatabase extends AbstractDatabase {
}
}
/**
* {@inheritDoc}
*/
@Override
protected List<SchemaDefinition> getSchemata0() throws SQLException {
List<SchemaDefinition> result = new ArrayList<SchemaDefinition>();
for (String name : create()
.select(SCHEMATA.SCHEMA_NAME)
.from(SCHEMATA)
.fetch(SCHEMATA.SCHEMA_NAME)) {
result.add(new SchemaDefinition(this, name, ""));
}
return result;
}
@Override
protected List<SequenceDefinition> getSequences0() throws SQLException {
List<SequenceDefinition> result = new ArrayList<SequenceDefinition>();
@ -212,9 +216,6 @@ public class HSQLDBDatabase extends AbstractDatabase {
return result;
}
/**
* {@inheritDoc}
*/
@Override
protected List<TableDefinition> getTables0() throws SQLException {
List<TableDefinition> result = new ArrayList<TableDefinition>();
@ -240,36 +241,24 @@ public class HSQLDBDatabase extends AbstractDatabase {
return result;
}
/**
* {@inheritDoc}
*/
@Override
protected List<EnumDefinition> getEnums0() throws SQLException {
List<EnumDefinition> result = new ArrayList<EnumDefinition>();
return result;
}
/**
* {@inheritDoc}
*/
@Override
protected List<UDTDefinition> getUDTs0() throws SQLException {
List<UDTDefinition> result = new ArrayList<UDTDefinition>();
return result;
}
/**
* {@inheritDoc}
*/
@Override
protected List<ArrayDefinition> getArrays0() throws SQLException {
List<ArrayDefinition> result = new ArrayList<ArrayDefinition>();
return result;
}
/**
* {@inheritDoc}
*/
@Override
protected List<RoutineDefinition> getRoutines0() throws SQLException {
List<RoutineDefinition> result = new ArrayList<RoutineDefinition>();
@ -305,9 +294,6 @@ public class HSQLDBDatabase extends AbstractDatabase {
return result;
}
/**
* {@inheritDoc}
*/
@Override
protected List<PackageDefinition> getPackages0() throws SQLException {
List<PackageDefinition> result = new ArrayList<PackageDefinition>();

View File

@ -6,11 +6,11 @@ package org.jooq.util.hsqldb.information_schema;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class InformationSchema extends org.jooq.impl.SchemaImpl {
private static final long serialVersionUID = -1534414125;
private static final long serialVersionUID = 688591995;
/**
* The singleton instance of INFORMATION_SCHEMA
@ -34,6 +34,7 @@ public class InformationSchema extends org.jooq.impl.SchemaImpl {
org.jooq.util.hsqldb.information_schema.tables.Parameters.PARAMETERS,
org.jooq.util.hsqldb.information_schema.tables.ReferentialConstraints.REFERENTIAL_CONSTRAINTS,
org.jooq.util.hsqldb.information_schema.tables.Routines.ROUTINES,
org.jooq.util.hsqldb.information_schema.tables.Schemata.SCHEMATA,
org.jooq.util.hsqldb.information_schema.tables.Sequences.SEQUENCES,
org.jooq.util.hsqldb.information_schema.tables.Tables.TABLES,
org.jooq.util.hsqldb.information_schema.tables.TableConstraints.TABLE_CONSTRAINTS);

View File

@ -6,11 +6,11 @@ package org.jooq.util.hsqldb.information_schema;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class InformationSchemaFactory extends org.jooq.util.hsqldb.HSQLDBFactory {
private static final long serialVersionUID = 1596782584;
private static final long serialVersionUID = 612688309;
/**
* Create a factory with a connection

View File

@ -8,7 +8,7 @@ package org.jooq.util.hsqldb.information_schema;
*
* Convenience access to all tables in INFORMATION_SCHEMA
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public final class Tables {
@ -47,6 +47,11 @@ public final class Tables {
*/
public static org.jooq.util.hsqldb.information_schema.tables.Routines ROUTINES = org.jooq.util.hsqldb.information_schema.tables.Routines.ROUTINES;
/**
* The table INFORMATION_SCHEMA.SCHEMATA
*/
public static org.jooq.util.hsqldb.information_schema.tables.Schemata SCHEMATA = org.jooq.util.hsqldb.information_schema.tables.Schemata.SCHEMATA;
/**
* The table INFORMATION_SCHEMA.SEQUENCES
*/

View File

@ -6,11 +6,11 @@ package org.jooq.util.hsqldb.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Columns extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -173682921;
private static final long serialVersionUID = 730335754;
/**
* The singleton instance of INFORMATION_SCHEMA.COLUMNS
@ -265,17 +265,11 @@ public class Columns extends org.jooq.impl.TableImpl<org.jooq.Record> {
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.Long> DECLARED_NUMERIC_SCALE = createField("DECLARED_NUMERIC_SCALE", org.jooq.impl.SQLDataType.BIGINT, this);
/**
* No further instances allowed
*/
private Columns() {
public Columns() {
super("COLUMNS", org.jooq.util.hsqldb.information_schema.InformationSchema.INFORMATION_SCHEMA);
}
/**
* No further instances allowed
*/
private Columns(java.lang.String alias) {
public Columns(java.lang.String alias) {
super(alias, org.jooq.util.hsqldb.information_schema.InformationSchema.INFORMATION_SCHEMA, org.jooq.util.hsqldb.information_schema.tables.Columns.COLUMNS);
}

View File

@ -6,11 +6,11 @@ package org.jooq.util.hsqldb.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class ConstraintColumnUsage extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -1586142196;
private static final long serialVersionUID = -1433884199;
/**
* The singleton instance of INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE
@ -65,17 +65,11 @@ public class ConstraintColumnUsage extends org.jooq.impl.TableImpl<org.jooq.Reco
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.String> CONSTRAINT_NAME = createField("CONSTRAINT_NAME", org.jooq.impl.SQLDataType.VARCHAR, this);
/**
* No further instances allowed
*/
private ConstraintColumnUsage() {
public ConstraintColumnUsage() {
super("CONSTRAINT_COLUMN_USAGE", org.jooq.util.hsqldb.information_schema.InformationSchema.INFORMATION_SCHEMA);
}
/**
* No further instances allowed
*/
private ConstraintColumnUsage(java.lang.String alias) {
public ConstraintColumnUsage(java.lang.String alias) {
super(alias, org.jooq.util.hsqldb.information_schema.InformationSchema.INFORMATION_SCHEMA, org.jooq.util.hsqldb.information_schema.tables.ConstraintColumnUsage.CONSTRAINT_COLUMN_USAGE);
}

View File

@ -6,11 +6,11 @@ package org.jooq.util.hsqldb.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class ElementTypes extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 398841598;
private static final long serialVersionUID = -1943758981;
/**
* The singleton instance of INFORMATION_SCHEMA.ELEMENT_TYPES
@ -185,17 +185,11 @@ public class ElementTypes extends org.jooq.impl.TableImpl<org.jooq.Record> {
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.Long> DECLARED_NUMERIC_SCALE = createField("DECLARED_NUMERIC_SCALE", org.jooq.impl.SQLDataType.BIGINT, this);
/**
* No further instances allowed
*/
private ElementTypes() {
public ElementTypes() {
super("ELEMENT_TYPES", org.jooq.util.hsqldb.information_schema.InformationSchema.INFORMATION_SCHEMA);
}
/**
* No further instances allowed
*/
private ElementTypes(java.lang.String alias) {
public ElementTypes(java.lang.String alias) {
super(alias, org.jooq.util.hsqldb.information_schema.InformationSchema.INFORMATION_SCHEMA, org.jooq.util.hsqldb.information_schema.tables.ElementTypes.ELEMENT_TYPES);
}

View File

@ -6,11 +6,11 @@ package org.jooq.util.hsqldb.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class KeyColumnUsage extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -1398228570;
private static final long serialVersionUID = -1468929901;
/**
* The singleton instance of INFORMATION_SCHEMA.KEY_COLUMN_USAGE
@ -75,17 +75,11 @@ public class KeyColumnUsage extends org.jooq.impl.TableImpl<org.jooq.Record> {
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.Long> POSITION_IN_UNIQUE_CONSTRAINT = createField("POSITION_IN_UNIQUE_CONSTRAINT", org.jooq.impl.SQLDataType.BIGINT, this);
/**
* No further instances allowed
*/
private KeyColumnUsage() {
public KeyColumnUsage() {
super("KEY_COLUMN_USAGE", org.jooq.util.hsqldb.information_schema.InformationSchema.INFORMATION_SCHEMA);
}
/**
* No further instances allowed
*/
private KeyColumnUsage(java.lang.String alias) {
public KeyColumnUsage(java.lang.String alias) {
super(alias, org.jooq.util.hsqldb.information_schema.InformationSchema.INFORMATION_SCHEMA, org.jooq.util.hsqldb.information_schema.tables.KeyColumnUsage.KEY_COLUMN_USAGE);
}

View File

@ -6,11 +6,11 @@ package org.jooq.util.hsqldb.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Parameters extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -1754858560;
private static final long serialVersionUID = 1543475117;
/**
* The singleton instance of INFORMATION_SCHEMA.PARAMETERS
@ -230,17 +230,11 @@ public class Parameters extends org.jooq.impl.TableImpl<org.jooq.Record> {
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.Long> DECLARED_NUMERIC_SCALE = createField("DECLARED_NUMERIC_SCALE", org.jooq.impl.SQLDataType.BIGINT, this);
/**
* No further instances allowed
*/
private Parameters() {
public Parameters() {
super("PARAMETERS", org.jooq.util.hsqldb.information_schema.InformationSchema.INFORMATION_SCHEMA);
}
/**
* No further instances allowed
*/
private Parameters(java.lang.String alias) {
public Parameters(java.lang.String alias) {
super(alias, org.jooq.util.hsqldb.information_schema.InformationSchema.INFORMATION_SCHEMA, org.jooq.util.hsqldb.information_schema.tables.Parameters.PARAMETERS);
}

View File

@ -6,11 +6,11 @@ package org.jooq.util.hsqldb.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class ReferentialConstraints extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 131895180;
private static final long serialVersionUID = -1952528247;
/**
* The singleton instance of INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS
@ -75,17 +75,11 @@ public class ReferentialConstraints extends org.jooq.impl.TableImpl<org.jooq.Rec
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.String> DELETE_RULE = createField("DELETE_RULE", org.jooq.impl.SQLDataType.VARCHAR, this);
/**
* No further instances allowed
*/
private ReferentialConstraints() {
public ReferentialConstraints() {
super("REFERENTIAL_CONSTRAINTS", org.jooq.util.hsqldb.information_schema.InformationSchema.INFORMATION_SCHEMA);
}
/**
* No further instances allowed
*/
private ReferentialConstraints(java.lang.String alias) {
public ReferentialConstraints(java.lang.String alias) {
super(alias, org.jooq.util.hsqldb.information_schema.InformationSchema.INFORMATION_SCHEMA, org.jooq.util.hsqldb.information_schema.tables.ReferentialConstraints.REFERENTIAL_CONSTRAINTS);
}

View File

@ -6,11 +6,11 @@ package org.jooq.util.hsqldb.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Routines extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -1452312172;
private static final long serialVersionUID = -106550271;
/**
* The singleton instance of INFORMATION_SCHEMA.ROUTINES
@ -470,17 +470,11 @@ public class Routines extends org.jooq.impl.TableImpl<org.jooq.Record> {
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.Long> RESULT_CAST_DECLARED_NUMERIC_SCALE = createField("RESULT_CAST_DECLARED_NUMERIC_SCALE", org.jooq.impl.SQLDataType.BIGINT, this);
/**
* No further instances allowed
*/
private Routines() {
public Routines() {
super("ROUTINES", org.jooq.util.hsqldb.information_schema.InformationSchema.INFORMATION_SCHEMA);
}
/**
* No further instances allowed
*/
private Routines(java.lang.String alias) {
public Routines(java.lang.String alias) {
super(alias, org.jooq.util.hsqldb.information_schema.InformationSchema.INFORMATION_SCHEMA, org.jooq.util.hsqldb.information_schema.tables.Routines.ROUTINES);
}

View File

@ -0,0 +1,80 @@
/**
* This class is generated by jOOQ
*/
package org.jooq.util.hsqldb.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Schemata extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 2070767037;
/**
* The singleton instance of INFORMATION_SCHEMA.SCHEMATA
*/
public static final org.jooq.util.hsqldb.information_schema.tables.Schemata SCHEMATA = new org.jooq.util.hsqldb.information_schema.tables.Schemata();
/**
* The class holding records for this type
*/
private static final java.lang.Class<org.jooq.Record> __RECORD_TYPE = org.jooq.Record.class;
/**
* The class holding records for this type
*/
@Override
public java.lang.Class<org.jooq.Record> getRecordType() {
return __RECORD_TYPE;
}
/**
* An uncommented item
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.String> CATALOG_NAME = createField("CATALOG_NAME", org.jooq.impl.SQLDataType.VARCHAR, this);
/**
* An uncommented item
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.String> SCHEMA_NAME = createField("SCHEMA_NAME", org.jooq.impl.SQLDataType.VARCHAR, this);
/**
* An uncommented item
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.String> SCHEMA_OWNER = createField("SCHEMA_OWNER", org.jooq.impl.SQLDataType.VARCHAR, this);
/**
* An uncommented item
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.String> DEFAULT_CHARACTER_SET_CATALOG = createField("DEFAULT_CHARACTER_SET_CATALOG", org.jooq.impl.SQLDataType.VARCHAR, this);
/**
* An uncommented item
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.String> DEFAULT_CHARACTER_SET_SCHEMA = createField("DEFAULT_CHARACTER_SET_SCHEMA", org.jooq.impl.SQLDataType.VARCHAR, this);
/**
* An uncommented item
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.String> DEFAULT_CHARACTER_SET_NAME = createField("DEFAULT_CHARACTER_SET_NAME", org.jooq.impl.SQLDataType.VARCHAR, this);
/**
* An uncommented item
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.String> SQL_PATH = createField("SQL_PATH", org.jooq.impl.SQLDataType.VARCHAR, this);
public Schemata() {
super("SCHEMATA", org.jooq.util.hsqldb.information_schema.InformationSchema.INFORMATION_SCHEMA);
}
public Schemata(java.lang.String alias) {
super(alias, org.jooq.util.hsqldb.information_schema.InformationSchema.INFORMATION_SCHEMA, org.jooq.util.hsqldb.information_schema.tables.Schemata.SCHEMATA);
}
@Override
public org.jooq.util.hsqldb.information_schema.tables.Schemata as(java.lang.String alias) {
return new org.jooq.util.hsqldb.information_schema.tables.Schemata(alias);
}
}

View File

@ -6,11 +6,11 @@ package org.jooq.util.hsqldb.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Sequences extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -1921557034;
private static final long serialVersionUID = -616213725;
/**
* The singleton instance of INFORMATION_SCHEMA.SEQUENCES
@ -110,17 +110,11 @@ public class Sequences extends org.jooq.impl.TableImpl<org.jooq.Record> {
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.String> NEXT_VALUE = createField("NEXT_VALUE", org.jooq.impl.SQLDataType.VARCHAR, this);
/**
* No further instances allowed
*/
private Sequences() {
public Sequences() {
super("SEQUENCES", org.jooq.util.hsqldb.information_schema.InformationSchema.INFORMATION_SCHEMA);
}
/**
* No further instances allowed
*/
private Sequences(java.lang.String alias) {
public Sequences(java.lang.String alias) {
super(alias, org.jooq.util.hsqldb.information_schema.InformationSchema.INFORMATION_SCHEMA, org.jooq.util.hsqldb.information_schema.tables.Sequences.SEQUENCES);
}

View File

@ -6,11 +6,11 @@ package org.jooq.util.hsqldb.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class TableConstraints extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 1342081192;
private static final long serialVersionUID = -522229083;
/**
* The singleton instance of INFORMATION_SCHEMA.TABLE_CONSTRAINTS
@ -75,17 +75,11 @@ public class TableConstraints extends org.jooq.impl.TableImpl<org.jooq.Record> {
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.String> INITIALLY_DEFERRED = createField("INITIALLY_DEFERRED", org.jooq.impl.SQLDataType.VARCHAR, this);
/**
* No further instances allowed
*/
private TableConstraints() {
public TableConstraints() {
super("TABLE_CONSTRAINTS", org.jooq.util.hsqldb.information_schema.InformationSchema.INFORMATION_SCHEMA);
}
/**
* No further instances allowed
*/
private TableConstraints(java.lang.String alias) {
public TableConstraints(java.lang.String alias) {
super(alias, org.jooq.util.hsqldb.information_schema.InformationSchema.INFORMATION_SCHEMA, org.jooq.util.hsqldb.information_schema.tables.TableConstraints.TABLE_CONSTRAINTS);
}

View File

@ -6,11 +6,11 @@ package org.jooq.util.hsqldb.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Tables extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -332419757;
private static final long serialVersionUID = -415539098;
/**
* The singleton instance of INFORMATION_SCHEMA.TABLES
@ -90,17 +90,11 @@ public class Tables extends org.jooq.impl.TableImpl<org.jooq.Record> {
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.String> COMMIT_ACTION = createField("COMMIT_ACTION", org.jooq.impl.SQLDataType.VARCHAR, this);
/**
* No further instances allowed
*/
private Tables() {
public Tables() {
super("TABLES", org.jooq.util.hsqldb.information_schema.InformationSchema.INFORMATION_SCHEMA);
}
/**
* No further instances allowed
*/
private Tables(java.lang.String alias) {
public Tables(java.lang.String alias) {
super(alias, org.jooq.util.hsqldb.information_schema.InformationSchema.INFORMATION_SCHEMA, org.jooq.util.hsqldb.information_schema.tables.Tables.TABLES);
}

View File

@ -36,14 +36,15 @@
package org.jooq.util.ingres;
import static org.jooq.impl.Factory.trim;
import static org.jooq.util.ingres.ingres.tables.IiconstraintIndexes.IICONSTRAINT_INDEXES;
import static org.jooq.util.ingres.ingres.tables.Iiconstraints.IICONSTRAINTS;
import static org.jooq.util.ingres.ingres.tables.IidbComments.IIDB_COMMENTS;
import static org.jooq.util.ingres.ingres.tables.IiindexColumns.IIINDEX_COLUMNS;
import static org.jooq.util.ingres.ingres.tables.Iiindexes.IIINDEXES;
import static org.jooq.util.ingres.ingres.tables.IirefConstraints.IIREF_CONSTRAINTS;
import static org.jooq.util.ingres.ingres.tables.Iisequences.IISEQUENCES;
import static org.jooq.util.ingres.ingres.tables.Iitables.IITABLES;
import static org.jooq.util.ingres.ingres.Tables.IICONSTRAINTS;
import static org.jooq.util.ingres.ingres.Tables.IICONSTRAINT_INDEXES;
import static org.jooq.util.ingres.ingres.Tables.IIDB_COMMENTS;
import static org.jooq.util.ingres.ingres.Tables.IIINDEXES;
import static org.jooq.util.ingres.ingres.Tables.IIINDEX_COLUMNS;
import static org.jooq.util.ingres.ingres.Tables.IIREF_CONSTRAINTS;
import static org.jooq.util.ingres.ingres.Tables.IISCHEMA;
import static org.jooq.util.ingres.ingres.Tables.IISEQUENCES;
import static org.jooq.util.ingres.ingres.Tables.IITABLES;
import java.sql.SQLException;
import java.util.ArrayList;
@ -73,6 +74,7 @@ import org.jooq.util.ingres.ingres.tables.IidbComments;
import org.jooq.util.ingres.ingres.tables.IiindexColumns;
import org.jooq.util.ingres.ingres.tables.Iiindexes;
import org.jooq.util.ingres.ingres.tables.IirefConstraints;
import org.jooq.util.ingres.ingres.tables.Iischema;
import org.jooq.util.ingres.ingres.tables.Iisequences;
import org.jooq.util.ingres.ingres.tables.Iitables;
@ -192,6 +194,21 @@ public class IngresDatabase extends AbstractDatabase {
}
}
@Override
protected List<SchemaDefinition> getSchemata0() throws SQLException {
List<SchemaDefinition> result = new ArrayList<SchemaDefinition>();
for (String name : create()
.select(trim(Iischema.SCHEMA_NAME))
.from(IISCHEMA)
.fetch(trim(Iischema.SCHEMA_NAME))) {
result.add(new SchemaDefinition(this, name, ""));
}
return result;
}
@Override
protected List<SequenceDefinition> getSequences0() throws SQLException {
List<SequenceDefinition> result = new ArrayList<SequenceDefinition>();

View File

@ -6,11 +6,11 @@ package org.jooq.util.ingres.ingres;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class $ingres extends org.jooq.impl.SchemaImpl {
private static final long serialVersionUID = 826778745;
private static final long serialVersionUID = 234779151;
/**
* The singleton instance of $ingres
@ -35,6 +35,7 @@ public class $ingres extends org.jooq.impl.SchemaImpl {
org.jooq.util.ingres.ingres.tables.IiindexColumns.IIINDEX_COLUMNS,
org.jooq.util.ingres.ingres.tables.Iiindexes.IIINDEXES,
org.jooq.util.ingres.ingres.tables.IirefConstraints.IIREF_CONSTRAINTS,
org.jooq.util.ingres.ingres.tables.Iischema.IISCHEMA,
org.jooq.util.ingres.ingres.tables.Iisequences.IISEQUENCES,
org.jooq.util.ingres.ingres.tables.Iitables.IITABLES);
}

View File

@ -6,11 +6,11 @@ package org.jooq.util.ingres.ingres;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class $ingresFactory extends org.jooq.util.ingres.IngresFactory {
private static final long serialVersionUID = -365695075;
private static final long serialVersionUID = -706112998;
/**
* Create a factory with a connection

View File

@ -8,7 +8,7 @@ package org.jooq.util.ingres.ingres;
*
* Convenience access to all tables in $ingres
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public final class Tables {
@ -52,6 +52,11 @@ public final class Tables {
*/
public static org.jooq.util.ingres.ingres.tables.IirefConstraints IIREF_CONSTRAINTS = org.jooq.util.ingres.ingres.tables.IirefConstraints.IIREF_CONSTRAINTS;
/**
* The table $ingres.iischema
*/
public static org.jooq.util.ingres.ingres.tables.Iischema IISCHEMA = org.jooq.util.ingres.ingres.tables.Iischema.IISCHEMA;
/**
* The table $ingres.iisequences
*/

View File

@ -6,11 +6,11 @@ package org.jooq.util.ingres.ingres.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Iicolumns extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 399159632;
private static final long serialVersionUID = -1656823053;
/**
* The singleton instance of $ingres.iicolumns

View File

@ -6,11 +6,11 @@ package org.jooq.util.ingres.ingres.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class IiconstraintIndexes extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -1150393142;
private static final long serialVersionUID = 1510850887;
/**
* The singleton instance of $ingres.iiconstraint_indexes

View File

@ -6,11 +6,11 @@ package org.jooq.util.ingres.ingres.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Iiconstraints extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 1625126507;
private static final long serialVersionUID = -1937760754;
/**
* The singleton instance of $ingres.iiconstraints

View File

@ -6,11 +6,11 @@ package org.jooq.util.ingres.ingres.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class IidbComments extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 433892058;
private static final long serialVersionUID = -567029315;
/**
* The singleton instance of $ingres.iidb_comments

View File

@ -6,11 +6,11 @@ package org.jooq.util.ingres.ingres.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class IidbSubcomments extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -554011227;
private static final long serialVersionUID = 2036963656;
/**
* The singleton instance of $ingres.iidb_subcomments

View File

@ -6,11 +6,11 @@ package org.jooq.util.ingres.ingres.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class IiindexColumns extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -235957163;
private static final long serialVersionUID = -1151911432;
/**
* The singleton instance of $ingres.iiindex_columns

View File

@ -6,11 +6,11 @@ package org.jooq.util.ingres.ingres.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Iiindexes extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -1000725289;
private static final long serialVersionUID = -1955489580;
/**
* The singleton instance of $ingres.iiindexes

View File

@ -6,11 +6,11 @@ package org.jooq.util.ingres.ingres.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class IirefConstraints extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 1093351088;
private static final long serialVersionUID = -1717541779;
/**
* The singleton instance of $ingres.iiref_constraints

View File

@ -0,0 +1,59 @@
/**
* This class is generated by jOOQ
*/
package org.jooq.util.ingres.ingres.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Iischema extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -861714426;
/**
* The singleton instance of $ingres.iischema
*/
public static final org.jooq.util.ingres.ingres.tables.Iischema IISCHEMA = new org.jooq.util.ingres.ingres.tables.Iischema();
/**
* The class holding records for this type
*/
private static final java.lang.Class<org.jooq.Record> __RECORD_TYPE = org.jooq.Record.class;
/**
* The class holding records for this type
*/
@Override
public java.lang.Class<org.jooq.Record> getRecordType() {
return __RECORD_TYPE;
}
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> SCHEMA_NAME = createField("schema_name", org.jooq.impl.SQLDataType.CHAR, IISCHEMA);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> SCHEMA_OWNER = createField("schema_owner", org.jooq.impl.SQLDataType.CHAR, IISCHEMA);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.Integer> SCHEMA_ID = createField("schema_id", org.jooq.impl.SQLDataType.INTEGER, IISCHEMA);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.Integer> SCHEMA_IDX = createField("schema_idx", org.jooq.impl.SQLDataType.INTEGER, IISCHEMA);
/**
* No further instances allowed
*/
private Iischema() {
super("iischema", org.jooq.util.ingres.ingres.$ingres.$INGRES);
}
}

View File

@ -6,11 +6,11 @@ package org.jooq.util.ingres.ingres.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Iisequences extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -280129123;
private static final long serialVersionUID = -157414528;
/**
* The singleton instance of $ingres.iisequences

View File

@ -6,11 +6,11 @@ package org.jooq.util.ingres.ingres.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Iitables extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -1753068701;
private static final long serialVersionUID = -1953759392;
/**
* The singleton instance of $ingres.iitables

View File

@ -36,11 +36,12 @@
package org.jooq.util.mysql;
import static org.jooq.util.mysql.information_schema.tables.Columns.COLUMNS;
import static org.jooq.util.mysql.information_schema.tables.KeyColumnUsage.KEY_COLUMN_USAGE;
import static org.jooq.util.mysql.information_schema.tables.ReferentialConstraints.REFERENTIAL_CONSTRAINTS;
import static org.jooq.util.mysql.information_schema.tables.TableConstraints.TABLE_CONSTRAINTS;
import static org.jooq.util.mysql.information_schema.tables.Tables.TABLES;
import static org.jooq.util.mysql.information_schema.Tables.COLUMNS;
import static org.jooq.util.mysql.information_schema.Tables.KEY_COLUMN_USAGE;
import static org.jooq.util.mysql.information_schema.Tables.REFERENTIAL_CONSTRAINTS;
import static org.jooq.util.mysql.information_schema.Tables.SCHEMATA;
import static org.jooq.util.mysql.information_schema.Tables.TABLES;
import static org.jooq.util.mysql.information_schema.Tables.TABLE_CONSTRAINTS;
import static org.jooq.util.mysql.mysql.tables.Proc.DB;
import static org.jooq.util.mysql.mysql.tables.Proc.PROC;
@ -66,6 +67,7 @@ import org.jooq.util.UDTDefinition;
import org.jooq.util.mysql.information_schema.tables.Columns;
import org.jooq.util.mysql.information_schema.tables.KeyColumnUsage;
import org.jooq.util.mysql.information_schema.tables.ReferentialConstraints;
import org.jooq.util.mysql.information_schema.tables.Schemata;
import org.jooq.util.mysql.information_schema.tables.TableConstraints;
import org.jooq.util.mysql.information_schema.tables.Tables;
import org.jooq.util.mysql.mysql.tables.Proc;
@ -174,6 +176,21 @@ public class MySQLDatabase extends AbstractDatabase {
}
}
@Override
protected List<SchemaDefinition> getSchemata0() throws SQLException {
List<SchemaDefinition> result = new ArrayList<SchemaDefinition>();
for (String name : create()
.select(Schemata.SCHEMA_NAME)
.from(SCHEMATA)
.fetch(Schemata.SCHEMA_NAME)) {
result.add(new SchemaDefinition(this, name, ""));
}
return result;
}
@Override
protected List<SequenceDefinition> getSequences0() throws SQLException {
List<SequenceDefinition> result = new ArrayList<SequenceDefinition>();
@ -243,7 +260,7 @@ public class MySQLDatabase extends AbstractDatabase {
ColumnDefinition columnDefinition = tableDefinition.getColumn(column);
if (columnDefinition != null) {
// [#1137] Avoid generating enum classes for enum types that
// are explicitly forced to another type
if (getConfiguredForcedType(columnDefinition) == null) {

View File

@ -6,11 +6,11 @@ package org.jooq.util.mysql.information_schema;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class InformationSchema extends org.jooq.impl.SchemaImpl {
private static final long serialVersionUID = 1515994441;
private static final long serialVersionUID = 1202806093;
/**
* The singleton instance of information_schema
@ -30,6 +30,7 @@ public class InformationSchema extends org.jooq.impl.SchemaImpl {
org.jooq.util.mysql.information_schema.tables.Columns.COLUMNS,
org.jooq.util.mysql.information_schema.tables.KeyColumnUsage.KEY_COLUMN_USAGE,
org.jooq.util.mysql.information_schema.tables.ReferentialConstraints.REFERENTIAL_CONSTRAINTS,
org.jooq.util.mysql.information_schema.tables.Schemata.SCHEMATA,
org.jooq.util.mysql.information_schema.tables.Tables.TABLES,
org.jooq.util.mysql.information_schema.tables.TableConstraints.TABLE_CONSTRAINTS);
}

View File

@ -6,11 +6,11 @@ package org.jooq.util.mysql.information_schema;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class InformationSchemaFactory extends org.jooq.util.mysql.MySQLFactory {
private static final long serialVersionUID = -515696430;
private static final long serialVersionUID = -1777054257;
/**
* Create a factory with a connection

View File

@ -8,7 +8,7 @@ package org.jooq.util.mysql.information_schema;
*
* Convenience access to all tables in information_schema
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public final class Tables {
@ -27,6 +27,11 @@ public final class Tables {
*/
public static org.jooq.util.mysql.information_schema.tables.ReferentialConstraints REFERENTIAL_CONSTRAINTS = org.jooq.util.mysql.information_schema.tables.ReferentialConstraints.REFERENTIAL_CONSTRAINTS;
/**
* The table information_schema.SCHEMATA
*/
public static org.jooq.util.mysql.information_schema.tables.Schemata SCHEMATA = org.jooq.util.mysql.information_schema.tables.Schemata.SCHEMATA;
/**
* The table information_schema.TABLES
*/

View File

@ -6,11 +6,11 @@ package org.jooq.util.mysql.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Columns extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -473450104;
private static final long serialVersionUID = -1648345275;
/**
* The singleton instance of information_schema.COLUMNS

View File

@ -6,11 +6,11 @@ package org.jooq.util.mysql.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class KeyColumnUsage extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -1224002655;
private static final long serialVersionUID = 1925558878;
/**
* The singleton instance of information_schema.KEY_COLUMN_USAGE

View File

@ -6,11 +6,11 @@ package org.jooq.util.mysql.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class ReferentialConstraints extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 55957718;
private static final long serialVersionUID = 1019556307;
/**
* The singleton instance of information_schema.REFERENTIAL_CONSTRAINTS

View File

@ -0,0 +1,64 @@
/**
* This class is generated by jOOQ
*/
package org.jooq.util.mysql.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Schemata extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -842759611;
/**
* The singleton instance of information_schema.SCHEMATA
*/
public static final org.jooq.util.mysql.information_schema.tables.Schemata SCHEMATA = new org.jooq.util.mysql.information_schema.tables.Schemata();
/**
* The class holding records for this type
*/
private static final java.lang.Class<org.jooq.Record> __RECORD_TYPE = org.jooq.Record.class;
/**
* The class holding records for this type
*/
@Override
public java.lang.Class<org.jooq.Record> getRecordType() {
return __RECORD_TYPE;
}
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> CATALOG_NAME = createField("CATALOG_NAME", org.jooq.impl.SQLDataType.VARCHAR, SCHEMATA);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> SCHEMA_NAME = createField("SCHEMA_NAME", org.jooq.impl.SQLDataType.VARCHAR, SCHEMATA);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> DEFAULT_CHARACTER_SET_NAME = createField("DEFAULT_CHARACTER_SET_NAME", org.jooq.impl.SQLDataType.VARCHAR, SCHEMATA);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> DEFAULT_COLLATION_NAME = createField("DEFAULT_COLLATION_NAME", org.jooq.impl.SQLDataType.VARCHAR, SCHEMATA);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> SQL_PATH = createField("SQL_PATH", org.jooq.impl.SQLDataType.VARCHAR, SCHEMATA);
/**
* No further instances allowed
*/
private Schemata() {
super("SCHEMATA", org.jooq.util.mysql.information_schema.InformationSchema.INFORMATION_SCHEMA);
}
}

View File

@ -6,11 +6,11 @@ package org.jooq.util.mysql.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class TableConstraints extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -1287073714;
private static final long serialVersionUID = -1623096079;
/**
* The singleton instance of information_schema.TABLE_CONSTRAINTS

View File

@ -6,11 +6,11 @@ package org.jooq.util.mysql.information_schema.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Tables extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -722007800;
private static final long serialVersionUID = 553216517;
/**
* The singleton instance of information_schema.TABLES

View File

@ -43,6 +43,7 @@ import static org.jooq.util.oracle.sys.Tables.ALL_OBJECTS;
import static org.jooq.util.oracle.sys.Tables.ALL_SEQUENCES;
import static org.jooq.util.oracle.sys.Tables.ALL_TAB_COMMENTS;
import static org.jooq.util.oracle.sys.Tables.ALL_TYPES;
import static org.jooq.util.oracle.sys.Tables.ALL_USERS;
import java.math.BigDecimal;
import java.math.BigInteger;
@ -172,6 +173,21 @@ public class OracleDatabase extends AbstractDatabase {
}
}
@Override
protected List<SchemaDefinition> getSchemata0() throws SQLException {
List<SchemaDefinition> result = new ArrayList<SchemaDefinition>();
for (String name : create()
.selectDistinct(ALL_USERS.USERNAME)
.from(ALL_USERS)
.fetch(ALL_USERS.USERNAME)) {
result.add(new SchemaDefinition(this, name, ""));
}
return result;
}
/**
* {@inheritDoc}
*/

View File

@ -6,11 +6,11 @@ package org.jooq.util.oracle.sys;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class Sys extends org.jooq.impl.SchemaImpl {
private static final long serialVersionUID = -2003889206;
private static final long serialVersionUID = 1503809982;
/**
* The singleton instance of SYS
@ -38,6 +38,7 @@ public class Sys extends org.jooq.impl.SchemaImpl {
org.jooq.util.oracle.sys.tables.AllTabCols.ALL_TAB_COLS,
org.jooq.util.oracle.sys.tables.AllTabComments.ALL_TAB_COMMENTS,
org.jooq.util.oracle.sys.tables.AllTypeAttrs.ALL_TYPE_ATTRS,
org.jooq.util.oracle.sys.tables.AllTypes.ALL_TYPES);
org.jooq.util.oracle.sys.tables.AllTypes.ALL_TYPES,
org.jooq.util.oracle.sys.tables.AllUsers.ALL_USERS);
}
}

View File

@ -6,11 +6,11 @@ package org.jooq.util.oracle.sys;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class SysFactory extends org.jooq.util.oracle.OracleFactory {
private static final long serialVersionUID = 1588893751;
private static final long serialVersionUID = -1512813004;
/**
* Create a factory with a connection

View File

@ -8,7 +8,7 @@ package org.jooq.util.oracle.sys;
*
* Convenience access to all tables in SYS
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public final class Tables {
@ -72,6 +72,11 @@ public final class Tables {
*/
public static org.jooq.util.oracle.sys.tables.AllTypes ALL_TYPES = org.jooq.util.oracle.sys.tables.AllTypes.ALL_TYPES;
/**
* Information about all users of the database
*/
public static org.jooq.util.oracle.sys.tables.AllUsers ALL_USERS = org.jooq.util.oracle.sys.tables.AllUsers.ALL_USERS;
/**
* No instances
*/

View File

@ -8,11 +8,11 @@ package org.jooq.util.oracle.sys.tables;
*
* Arguments in object accessible to the user
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class AllArguments extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 766409551;
private static final long serialVersionUID = -593371790;
/**
* The singleton instance of SYS.ALL_ARGUMENTS
@ -167,17 +167,11 @@ public class AllArguments extends org.jooq.impl.TableImpl<org.jooq.Record> {
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.String> CHAR_USED = createField("CHAR_USED", org.jooq.impl.SQLDataType.VARCHAR, this);
/**
* No further instances allowed
*/
private AllArguments() {
public AllArguments() {
super("ALL_ARGUMENTS", org.jooq.util.oracle.sys.Sys.SYS);
}
/**
* No further instances allowed
*/
private AllArguments(java.lang.String alias) {
public AllArguments(java.lang.String alias) {
super(alias, org.jooq.util.oracle.sys.Sys.SYS, org.jooq.util.oracle.sys.tables.AllArguments.ALL_ARGUMENTS);
}

View File

@ -8,11 +8,11 @@ package org.jooq.util.oracle.sys.tables;
*
* Comments on columns of accessible tables and views
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class AllColComments extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = 354918751;
private static final long serialVersionUID = -731363694;
/**
* The singleton instance of SYS.ALL_COL_COMMENTS
@ -52,17 +52,11 @@ public class AllColComments extends org.jooq.impl.TableImpl<org.jooq.Record> {
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.String> COMMENTS = createField("COMMENTS", org.jooq.impl.SQLDataType.VARCHAR, this);
/**
* No further instances allowed
*/
private AllColComments() {
public AllColComments() {
super("ALL_COL_COMMENTS", org.jooq.util.oracle.sys.Sys.SYS);
}
/**
* No further instances allowed
*/
private AllColComments(java.lang.String alias) {
public AllColComments(java.lang.String alias) {
super(alias, org.jooq.util.oracle.sys.Sys.SYS, org.jooq.util.oracle.sys.tables.AllColComments.ALL_COL_COMMENTS);
}

View File

@ -8,11 +8,11 @@ package org.jooq.util.oracle.sys.tables;
*
* Description of named collection types accessible to the user
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class AllCollTypes extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -1534142998;
private static final long serialVersionUID = -2014095779;
/**
* The singleton instance of SYS.ALL_COLL_TYPES
@ -104,17 +104,11 @@ binary precision of the FLOAT element
*/
public final org.jooq.TableField<org.jooq.Record, java.lang.String> CHAR_USED = createField("CHAR_USED", org.jooq.impl.SQLDataType.VARCHAR, this);
/**
* No further instances allowed
*/
private AllCollTypes() {
public AllCollTypes() {
super("ALL_COLL_TYPES", org.jooq.util.oracle.sys.Sys.SYS);
}
/**
* No further instances allowed
*/
private AllCollTypes(java.lang.String alias) {
public AllCollTypes(java.lang.String alias) {
super(alias, org.jooq.util.oracle.sys.Sys.SYS, org.jooq.util.oracle.sys.tables.AllCollTypes.ALL_COLL_TYPES);
}

View File

@ -8,11 +8,11 @@ package org.jooq.util.oracle.sys.tables;
*
* Information about accessible columns in constraint definitions
*/
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.0.6"},
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.3.0"},
comments = "This class is generated by jOOQ")
public class AllConsColumns extends org.jooq.impl.TableImpl<org.jooq.Record> {
private static final long serialVersionUID = -708290058;
private static final long serialVersionUID = 1678303875;
/**
* The singleton instance of SYS.ALL_CONS_COLUMNS
@ -57,17 +57,11 @@ public class AllConsColumns extends org.jooq.impl.TableImpl<org.jooq.Record> {
*/
public final org.jooq.TableField<org.jooq.Record, java.math.BigDecimal> POSITION = createField("POSITION", org.jooq.impl.SQLDataType.NUMERIC, this);
/**
* No further instances allowed
*/
private AllConsColumns() {
public AllConsColumns() {
super("ALL_CONS_COLUMNS", org.jooq.util.oracle.sys.Sys.SYS);
}
/**
* No further instances allowed
*/
private AllConsColumns(java.lang.String alias) {
public AllConsColumns(java.lang.String alias) {
super(alias, org.jooq.util.oracle.sys.Sys.SYS, org.jooq.util.oracle.sys.tables.AllConsColumns.ALL_CONS_COLUMNS);
}

Some files were not shown because too many files have changed in this diff Show More