Skip to content

Commit

Permalink
[#3336] Add code generation flag to enable / disable imports in
Browse files Browse the repository at this point in the history
generated code - Regenerated some jOOQ-meta schemas
  • Loading branch information
lukaseder committed Dec 30, 2014
1 parent af55cca commit 48ef0b8
Show file tree
Hide file tree
Showing 41 changed files with 1,824 additions and 1,195 deletions.
Expand Up @@ -3,18 +3,44 @@
*/
package org.jooq.util.h2.information_schema;


import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import javax.annotation.Generated;

import org.jooq.Table;
import org.jooq.impl.SchemaImpl;
import org.jooq.util.h2.information_schema.tables.Columns;
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.FunctionColumns;
import org.jooq.util.h2.information_schema.tables.Indexes;
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;


/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.0" },
comments = "This class is generated by jOOQ")
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class InformationSchema extends org.jooq.impl.SchemaImpl {
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.6.0"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class InformationSchema extends SchemaImpl {

private static final long serialVersionUID = -645562026;
private static final long serialVersionUID = 1479405880;

/**
* The singleton instance of <code>INFORMATION_SCHEMA</code>
* The reference instance of <code>INFORMATION_SCHEMA</code>
*/
public static final InformationSchema INFORMATION_SCHEMA = new InformationSchema();

Expand All @@ -26,23 +52,23 @@ private InformationSchema() {
}

@Override
public final java.util.List<org.jooq.Table<?>> getTables() {
java.util.List result = new java.util.ArrayList();
public final List<Table<?>> getTables() {
List result = new ArrayList();
result.addAll(getTables0());
return result;
}

private final java.util.List<org.jooq.Table<?>> getTables0() {
return java.util.Arrays.<org.jooq.Table<?>>asList(
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,
org.jooq.util.h2.information_schema.tables.Indexes.INDEXES,
org.jooq.util.h2.information_schema.tables.Columns.COLUMNS,
org.jooq.util.h2.information_schema.tables.Tables.TABLES);
private final List<Table<?>> getTables0() {
return Arrays.<Table<?>>asList(
FunctionColumns.FUNCTION_COLUMNS,
Constraints.CONSTRAINTS,
CrossReferences.CROSS_REFERENCES,
Schemata.SCHEMATA,
FunctionAliases.FUNCTION_ALIASES,
Sequences.SEQUENCES,
TypeInfo.TYPE_INFO,
Indexes.INDEXES,
Columns.COLUMNS,
Tables.TABLES);
}
}
Expand Up @@ -3,60 +3,77 @@
*/
package org.jooq.util.h2.information_schema;


import javax.annotation.Generated;

import org.jooq.util.h2.information_schema.tables.Columns;
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.FunctionColumns;
import org.jooq.util.h2.information_schema.tables.Indexes;
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.TypeInfo;


/**
* This class is generated by jOOQ.
*
* Convenience access to all tables in INFORMATION_SCHEMA
*/
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.0" },
comments = "This class is generated by jOOQ")
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.6.0"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Tables {

/**
* The table INFORMATION_SCHEMA.FUNCTION_COLUMNS
*/
public static final org.jooq.util.h2.information_schema.tables.FunctionColumns FUNCTION_COLUMNS = org.jooq.util.h2.information_schema.tables.FunctionColumns.FUNCTION_COLUMNS;
public static final FunctionColumns FUNCTION_COLUMNS = org.jooq.util.h2.information_schema.tables.FunctionColumns.FUNCTION_COLUMNS;

/**
* The table INFORMATION_SCHEMA.CONSTRAINTS
*/
public static final org.jooq.util.h2.information_schema.tables.Constraints CONSTRAINTS = org.jooq.util.h2.information_schema.tables.Constraints.CONSTRAINTS;
public static final Constraints CONSTRAINTS = org.jooq.util.h2.information_schema.tables.Constraints.CONSTRAINTS;

/**
* The table INFORMATION_SCHEMA.CROSS_REFERENCES
*/
public static final org.jooq.util.h2.information_schema.tables.CrossReferences CROSS_REFERENCES = org.jooq.util.h2.information_schema.tables.CrossReferences.CROSS_REFERENCES;
public static final CrossReferences CROSS_REFERENCES = org.jooq.util.h2.information_schema.tables.CrossReferences.CROSS_REFERENCES;

/**
* The table INFORMATION_SCHEMA.SCHEMATA
*/
public static final org.jooq.util.h2.information_schema.tables.Schemata SCHEMATA = org.jooq.util.h2.information_schema.tables.Schemata.SCHEMATA;
public static final Schemata SCHEMATA = org.jooq.util.h2.information_schema.tables.Schemata.SCHEMATA;

/**
* The table INFORMATION_SCHEMA.FUNCTION_ALIASES
*/
public static final org.jooq.util.h2.information_schema.tables.FunctionAliases FUNCTION_ALIASES = org.jooq.util.h2.information_schema.tables.FunctionAliases.FUNCTION_ALIASES;
public static final FunctionAliases FUNCTION_ALIASES = org.jooq.util.h2.information_schema.tables.FunctionAliases.FUNCTION_ALIASES;

/**
* The table INFORMATION_SCHEMA.SEQUENCES
*/
public static final org.jooq.util.h2.information_schema.tables.Sequences SEQUENCES = org.jooq.util.h2.information_schema.tables.Sequences.SEQUENCES;
public static final Sequences SEQUENCES = org.jooq.util.h2.information_schema.tables.Sequences.SEQUENCES;

/**
* The table INFORMATION_SCHEMA.TYPE_INFO
*/
public static final org.jooq.util.h2.information_schema.tables.TypeInfo TYPE_INFO = org.jooq.util.h2.information_schema.tables.TypeInfo.TYPE_INFO;
public static final TypeInfo TYPE_INFO = org.jooq.util.h2.information_schema.tables.TypeInfo.TYPE_INFO;

/**
* The table INFORMATION_SCHEMA.INDEXES
*/
public static final org.jooq.util.h2.information_schema.tables.Indexes INDEXES = org.jooq.util.h2.information_schema.tables.Indexes.INDEXES;
public static final Indexes INDEXES = org.jooq.util.h2.information_schema.tables.Indexes.INDEXES;

/**
* The table INFORMATION_SCHEMA.COLUMNS
*/
public static final org.jooq.util.h2.information_schema.tables.Columns COLUMNS = org.jooq.util.h2.information_schema.tables.Columns.COLUMNS;
public static final Columns COLUMNS = org.jooq.util.h2.information_schema.tables.Columns.COLUMNS;

/**
* The table INFORMATION_SCHEMA.TABLES
Expand Down
Expand Up @@ -3,143 +3,159 @@
*/
package org.jooq.util.h2.information_schema.tables;


import javax.annotation.Generated;

import org.jooq.Field;
import org.jooq.Record;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.impl.TableImpl;
import org.jooq.util.h2.information_schema.InformationSchema;


/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.0" },
comments = "This class is generated by jOOQ")
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Columns extends org.jooq.impl.TableImpl<org.jooq.Record> {
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.6.0"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Columns extends TableImpl<Record> {

private static final long serialVersionUID = 1081638829;
private static final long serialVersionUID = -1092445246;

/**
* The singleton instance of <code>INFORMATION_SCHEMA.COLUMNS</code>
* The reference instance of <code>INFORMATION_SCHEMA.COLUMNS</code>
*/
public static final org.jooq.util.h2.information_schema.tables.Columns COLUMNS = new org.jooq.util.h2.information_schema.tables.Columns();
public static final Columns COLUMNS = new Columns();

/**
* The class holding records for this type
*/
@Override
public java.lang.Class<org.jooq.Record> getRecordType() {
return org.jooq.Record.class;
public Class<Record> getRecordType() {
return Record.class;
}

/**
* The column <code>INFORMATION_SCHEMA.COLUMNS.TABLE_CATALOG</code>.
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> TABLE_CATALOG = createField("TABLE_CATALOG", org.jooq.impl.SQLDataType.VARCHAR.length(2147483647), COLUMNS, "");
public static final TableField<Record, String> TABLE_CATALOG = createField("TABLE_CATALOG", org.jooq.impl.SQLDataType.VARCHAR.length(2147483647), COLUMNS, "");

/**
* The column <code>INFORMATION_SCHEMA.COLUMNS.TABLE_SCHEMA</code>.
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> TABLE_SCHEMA = createField("TABLE_SCHEMA", org.jooq.impl.SQLDataType.VARCHAR.length(2147483647), COLUMNS, "");
public static final TableField<Record, String> TABLE_SCHEMA = createField("TABLE_SCHEMA", org.jooq.impl.SQLDataType.VARCHAR.length(2147483647), COLUMNS, "");

/**
* The column <code>INFORMATION_SCHEMA.COLUMNS.TABLE_NAME</code>.
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> TABLE_NAME = createField("TABLE_NAME", org.jooq.impl.SQLDataType.VARCHAR.length(2147483647), COLUMNS, "");
public static final TableField<Record, String> TABLE_NAME = createField("TABLE_NAME", org.jooq.impl.SQLDataType.VARCHAR.length(2147483647), COLUMNS, "");

/**
* The column <code>INFORMATION_SCHEMA.COLUMNS.COLUMN_NAME</code>.
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> COLUMN_NAME = createField("COLUMN_NAME", org.jooq.impl.SQLDataType.VARCHAR.length(2147483647), COLUMNS, "");
public static final TableField<Record, String> COLUMN_NAME = createField("COLUMN_NAME", org.jooq.impl.SQLDataType.VARCHAR.length(2147483647), COLUMNS, "");

/**
* The column <code>INFORMATION_SCHEMA.COLUMNS.ORDINAL_POSITION</code>.
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.Integer> ORDINAL_POSITION = createField("ORDINAL_POSITION", org.jooq.impl.SQLDataType.INTEGER, COLUMNS, "");
public static final TableField<Record, Integer> ORDINAL_POSITION = createField("ORDINAL_POSITION", org.jooq.impl.SQLDataType.INTEGER, COLUMNS, "");

/**
* The column <code>INFORMATION_SCHEMA.COLUMNS.COLUMN_DEFAULT</code>.
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> COLUMN_DEFAULT = createField("COLUMN_DEFAULT", org.jooq.impl.SQLDataType.VARCHAR.length(2147483647), COLUMNS, "");
public static final TableField<Record, String> COLUMN_DEFAULT = createField("COLUMN_DEFAULT", org.jooq.impl.SQLDataType.VARCHAR.length(2147483647), COLUMNS, "");

/**
* The column <code>INFORMATION_SCHEMA.COLUMNS.IS_NULLABLE</code>.
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> IS_NULLABLE = createField("IS_NULLABLE", org.jooq.impl.SQLDataType.VARCHAR.length(2147483647), COLUMNS, "");
public static final TableField<Record, String> IS_NULLABLE = createField("IS_NULLABLE", org.jooq.impl.SQLDataType.VARCHAR.length(2147483647), COLUMNS, "");

/**
* The column <code>INFORMATION_SCHEMA.COLUMNS.DATA_TYPE</code>.
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.Integer> DATA_TYPE = createField("DATA_TYPE", org.jooq.impl.SQLDataType.INTEGER, COLUMNS, "");
public static final TableField<Record, Integer> DATA_TYPE = createField("DATA_TYPE", org.jooq.impl.SQLDataType.INTEGER, COLUMNS, "");

/**
* The column <code>INFORMATION_SCHEMA.COLUMNS.CHARACTER_MAXIMUM_LENGTH</code>.
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.Integer> CHARACTER_MAXIMUM_LENGTH = createField("CHARACTER_MAXIMUM_LENGTH", org.jooq.impl.SQLDataType.INTEGER, COLUMNS, "");
public static final TableField<Record, Integer> CHARACTER_MAXIMUM_LENGTH = createField("CHARACTER_MAXIMUM_LENGTH", org.jooq.impl.SQLDataType.INTEGER, COLUMNS, "");

/**
* The column <code>INFORMATION_SCHEMA.COLUMNS.CHARACTER_OCTET_LENGTH</code>.
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.Integer> CHARACTER_OCTET_LENGTH = createField("CHARACTER_OCTET_LENGTH", org.jooq.impl.SQLDataType.INTEGER, COLUMNS, "");
public static final TableField<Record, Integer> CHARACTER_OCTET_LENGTH = createField("CHARACTER_OCTET_LENGTH", org.jooq.impl.SQLDataType.INTEGER, COLUMNS, "");

/**
* The column <code>INFORMATION_SCHEMA.COLUMNS.NUMERIC_PRECISION</code>.
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.Integer> NUMERIC_PRECISION = createField("NUMERIC_PRECISION", org.jooq.impl.SQLDataType.INTEGER, COLUMNS, "");
public static final TableField<Record, Integer> NUMERIC_PRECISION = createField("NUMERIC_PRECISION", org.jooq.impl.SQLDataType.INTEGER, COLUMNS, "");

/**
* The column <code>INFORMATION_SCHEMA.COLUMNS.NUMERIC_PRECISION_RADIX</code>.
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.Integer> NUMERIC_PRECISION_RADIX = createField("NUMERIC_PRECISION_RADIX", org.jooq.impl.SQLDataType.INTEGER, COLUMNS, "");
public static final TableField<Record, Integer> NUMERIC_PRECISION_RADIX = createField("NUMERIC_PRECISION_RADIX", org.jooq.impl.SQLDataType.INTEGER, COLUMNS, "");

/**
* The column <code>INFORMATION_SCHEMA.COLUMNS.NUMERIC_SCALE</code>.
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.Integer> NUMERIC_SCALE = createField("NUMERIC_SCALE", org.jooq.impl.SQLDataType.INTEGER, COLUMNS, "");
public static final TableField<Record, Integer> NUMERIC_SCALE = createField("NUMERIC_SCALE", org.jooq.impl.SQLDataType.INTEGER, COLUMNS, "");

/**
* The column <code>INFORMATION_SCHEMA.COLUMNS.CHARACTER_SET_NAME</code>.
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> CHARACTER_SET_NAME = createField("CHARACTER_SET_NAME", org.jooq.impl.SQLDataType.VARCHAR.length(2147483647), COLUMNS, "");
public static final TableField<Record, String> CHARACTER_SET_NAME = createField("CHARACTER_SET_NAME", org.jooq.impl.SQLDataType.VARCHAR.length(2147483647), COLUMNS, "");

/**
* The column <code>INFORMATION_SCHEMA.COLUMNS.COLLATION_NAME</code>.
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> COLLATION_NAME = createField("COLLATION_NAME", org.jooq.impl.SQLDataType.VARCHAR.length(2147483647), COLUMNS, "");
public static final TableField<Record, String> COLLATION_NAME = createField("COLLATION_NAME", org.jooq.impl.SQLDataType.VARCHAR.length(2147483647), COLUMNS, "");

/**
* The column <code>INFORMATION_SCHEMA.COLUMNS.TYPE_NAME</code>.
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> TYPE_NAME = createField("TYPE_NAME", org.jooq.impl.SQLDataType.VARCHAR.length(2147483647), COLUMNS, "");
public static final TableField<Record, String> TYPE_NAME = createField("TYPE_NAME", org.jooq.impl.SQLDataType.VARCHAR.length(2147483647), COLUMNS, "");

/**
* The column <code>INFORMATION_SCHEMA.COLUMNS.NULLABLE</code>.
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.Integer> NULLABLE = createField("NULLABLE", org.jooq.impl.SQLDataType.INTEGER, COLUMNS, "");
public static final TableField<Record, Integer> NULLABLE = createField("NULLABLE", org.jooq.impl.SQLDataType.INTEGER, COLUMNS, "");

/**
* The column <code>INFORMATION_SCHEMA.COLUMNS.IS_COMPUTED</code>.
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.Boolean> IS_COMPUTED = createField("IS_COMPUTED", org.jooq.impl.SQLDataType.BOOLEAN, COLUMNS, "");
public static final TableField<Record, Boolean> IS_COMPUTED = createField("IS_COMPUTED", org.jooq.impl.SQLDataType.BOOLEAN, COLUMNS, "");

/**
* The column <code>INFORMATION_SCHEMA.COLUMNS.SELECTIVITY</code>.
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.Integer> SELECTIVITY = createField("SELECTIVITY", org.jooq.impl.SQLDataType.INTEGER, COLUMNS, "");
public static final TableField<Record, Integer> SELECTIVITY = createField("SELECTIVITY", org.jooq.impl.SQLDataType.INTEGER, COLUMNS, "");

/**
* The column <code>INFORMATION_SCHEMA.COLUMNS.CHECK_CONSTRAINT</code>.
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> CHECK_CONSTRAINT = createField("CHECK_CONSTRAINT", org.jooq.impl.SQLDataType.VARCHAR.length(2147483647), COLUMNS, "");
public static final TableField<Record, String> CHECK_CONSTRAINT = createField("CHECK_CONSTRAINT", org.jooq.impl.SQLDataType.VARCHAR.length(2147483647), COLUMNS, "");

/**
* The column <code>INFORMATION_SCHEMA.COLUMNS.SEQUENCE_NAME</code>.
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> SEQUENCE_NAME = createField("SEQUENCE_NAME", org.jooq.impl.SQLDataType.VARCHAR.length(2147483647), COLUMNS, "");
public static final TableField<Record, String> SEQUENCE_NAME = createField("SEQUENCE_NAME", org.jooq.impl.SQLDataType.VARCHAR.length(2147483647), COLUMNS, "");

/**
* The column <code>INFORMATION_SCHEMA.COLUMNS.REMARKS</code>.
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.String> REMARKS = createField("REMARKS", org.jooq.impl.SQLDataType.VARCHAR.length(2147483647), COLUMNS, "");
public static final TableField<Record, String> REMARKS = createField("REMARKS", org.jooq.impl.SQLDataType.VARCHAR.length(2147483647), COLUMNS, "");

/**
* The column <code>INFORMATION_SCHEMA.COLUMNS.SOURCE_DATA_TYPE</code>.
*/
public static final org.jooq.TableField<org.jooq.Record, java.lang.Short> SOURCE_DATA_TYPE = createField("SOURCE_DATA_TYPE", org.jooq.impl.SQLDataType.SMALLINT, COLUMNS, "");
public static final TableField<Record, Short> SOURCE_DATA_TYPE = createField("SOURCE_DATA_TYPE", org.jooq.impl.SQLDataType.SMALLINT, COLUMNS, "");

/**
* No further instances allowed
Expand All @@ -148,11 +164,11 @@ private Columns() {
this("COLUMNS", null);
}

private Columns(java.lang.String alias, org.jooq.Table<org.jooq.Record> aliased) {
private Columns(String alias, Table<Record> aliased) {
this(alias, aliased, null);
}

private Columns(java.lang.String alias, org.jooq.Table<org.jooq.Record> aliased, org.jooq.Field<?>[] parameters) {
super(alias, org.jooq.util.h2.information_schema.InformationSchema.INFORMATION_SCHEMA, aliased, parameters, "");
private Columns(String alias, Table<Record> aliased, Field<?>[] parameters) {
super(alias, InformationSchema.INFORMATION_SCHEMA, aliased, parameters, "");
}
}

0 comments on commit 48ef0b8

Please sign in to comment.