Top Description Inners Fields Constructors Methods
org.jooq.impl

pack-priv final Class MetaImpl

extends AbstractMeta
Class Inheritance
Static Imports
java.lang.Boolean.FALSE, .Boolean.TRUE, java.util.Arrays.asList, .Collections.emptyList, org.jooq.SQLDialect.DERBY, .SQLDialect.FIREBIRD, .SQLDialect.H2, .SQLDialect.HSQLDB, .SQLDialect.IGNITE, .SQLDialect.MARIADB, .SQLDialect.MYSQL, .SQLDialect.POSTGRES, .SQLDialect.SQLITE, .SQLDialect.YUGABYTEDB, org.jooq.impl.AbstractNamed.findIgnoreCase, .DSL.comment, .DSL.condition, .DSL.field, .DSL.name, .MetaSQL.M_SEQUENCES, .MetaSQL.M_SEQUENCES_INCLUDING_SYSTEM_SEQUENCES, .MetaSQL.M_SOURCES, .MetaSQL.M_UNIQUE_KEYS, .SQLDataType.INTEGER, .SQLDataType.VARCHAR, .Tools.EMPTY_OBJECT, .Tools.EMPTY_SORTFIELD, .Tools.flatMap, .Tools.map, org.jooq.tools.StringUtils.defaultIfEmpty, .StringUtils.defaultString, .StringUtils.isEmpty

An implementation of the public Meta type.

This implementation implements Serializable, without taking care of properly deserialising the referenced executor.

Author
Lukas Eder

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
private class
private class
MetaImpl.MetaTable

Deprecated as a consequence of TableImpl being deprecated.
private class

Field Summary

Modifier and TypeField and Description
private static final Set<SQLDialect>
private final DatabaseMetaData
private static final Set<SQLDialect>
private static final Class<?>[]
private static final Class<?>[]
private static final Set<SQLDialect>
private final boolean
private static final JooqLogger
private static final Set<SQLDialect>
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern

Constructor Summary

AccessConstructor and Description
pack-priv
MetaImpl(Configuration configuration, DatabaseMetaData databaseMetaData)

Method Summary

Modifier and TypeMethod and Description
pack-priv final <R> R
pack-priv final <R> R
pack-priv final List<Catalog>
pack-priv final List<UniqueKey<?>>
pack-priv final List<Schema>
pack-priv final List<Table<?>>
pack-priv final boolean
pack-priv final Table<?>
lookupTable(Schema schema, String tableName)

private final Result<Record>
private static final TableOptions
public String
toString()

Overrides org.jooq.impl.AbstractMeta.toString.

Returns a string representation of the object.
private static final <T, E extends Exception> T
withCatalog(Catalog catalog, DSLContext ctx, ThrowingFunction<DSLContext, T, E> supplier)

Inherited from org.jooq.impl.AbstractMeta:
applyapplyapplyapplycopyFKddlddlequalsfilterCatalogsfilterDomainsfilterForeignKeysfilterIndexesfilterPrimaryKeysfilterSchemasfilterSequencesfilterTablesfilterUniqueKeysgetCataloggetCataloggetCatalogsgetDomainsgetDomainsgetDomainsgetDomains0getForeignKeysgetForeignKeysgetForeignKeysgetForeignKeys0getIndexesgetIndexesgetIndexesgetIndexes0getPrimaryKeysgetPrimaryKeysgetPrimaryKeysgetSchemasgetSchemasgetSchemasgetSequencesgetSequencesgetSequencesgetSequences0getTablesgetTablesgetTablesgetUniqueKeysgetUniqueKeysgetUniqueKeysgetUniqueKeys0hashCodeinformationSchemalookupKeylookupTablelookupUniqueKeymigrateTomigrateTosnapshot

Field Detail

CURRENT_TIMESTAMP_COLUMN_DEFAULTback to summary
private static final Set<SQLDialect> CURRENT_TIMESTAMP_COLUMN_DEFAULT
databaseMetaDataback to summary
private final DatabaseMetaData databaseMetaData
EXPRESSION_COLUMN_DEFAULTback to summary
private static final Set<SQLDialect> EXPRESSION_COLUMN_DEFAULT
GET_COLUMNS_EXTENDEDback to summary
private static final Class<?>[] GET_COLUMNS_EXTENDED
GET_COLUMNS_SHORTback to summary
private static final Class<?>[] GET_COLUMNS_SHORT
INVERSE_SCHEMA_CATALOGback to summary
private static final Set<SQLDialect> INVERSE_SCHEMA_CATALOG
inverseSchemaCatalogback to summary
private final boolean inverseSchemaCatalog
logback to summary
private static final JooqLogger log
NO_SUPPORT_SCHEMASback to summary
private static final Set<SQLDialect> NO_SUPPORT_SCHEMAS
P_SYSINDEX_DERBYback to summary
private static final Pattern P_SYSINDEX_DERBY
P_SYSINDEX_H2back to summary
private static final Pattern P_SYSINDEX_H2
P_SYSINDEX_HSQLDBback to summary
private static final Pattern P_SYSINDEX_HSQLDB
P_SYSINDEX_SQLITEback to summary
private static final Pattern P_SYSINDEX_SQLITE

Constructor Detail

MetaImplback to summary
pack-priv MetaImpl(Configuration configuration, DatabaseMetaData databaseMetaData)

Method Detail

catalogSchemaback to summary
pack-priv final <R> R catalogSchema(Catalog catalog, Schema schema, ThrowingBiFunction<String, String, R, SQLException> function) throws SQLException
catalogSchemaback to summary
pack-priv final <R> R catalogSchema(String catalog, String schema, ThrowingBiFunction<String, String, R, SQLException> function) throws SQLException
getCatalogs0back to summary
pack-priv final List<Catalog> getCatalogs0()

Implements abstract org.jooq.impl.AbstractMeta.getCatalogs0.

Annotations
@Override
getPrimaryKeys0back to summary
pack-priv final List<UniqueKey<?>> getPrimaryKeys0()

Overrides org.jooq.impl.AbstractMeta.getPrimaryKeys0.

Annotations
@Override
getSchemas0back to summary
pack-priv final List<Schema> getSchemas0()

Overrides org.jooq.impl.AbstractMeta.getSchemas0.

Annotations
@Override
getTables0back to summary
pack-priv final List<Table<?>> getTables0()

Overrides org.jooq.impl.AbstractMeta.getTables0.

Annotations
@Override
hasCatalogback to summary
pack-priv final boolean hasCatalog(Catalog catalog)
lookupTableback to summary
pack-priv final Table<?> lookupTable(Schema schema, String tableName)
metaback to summary
private final Result<Record> meta(ThrowingFunction<DatabaseMetaData, Result<Record>, SQLException> function)
tableOptionback to summary
private static final TableOptions tableOption(DSLContext ctx, MetaImpl.MetaSchema schema, String tableName, TableOptions.TableType tableType)
toStringback to summary
public String toString()

Overrides org.jooq.impl.AbstractMeta.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
withCatalogback to summary
private static final <T, E extends Exception> T withCatalog(Catalog catalog, DSLContext ctx, ThrowingFunction<DSLContext, T, E> supplier) throws ThrowingFunction-:E
org.jooq.impl back to summary

private final Class MetaImpl.MetaCatalog

extends CatalogImpl
Class Inheritance

Field Summary

Inherited from org.jooq.impl.CatalogImpl:
DEFAULT_CATALOG

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public final List<Schema>
getSchemas()

Overrides org.jooq.impl.CatalogImpl.getSchemas.

Implements org.jooq.Catalog.getSchemas.

List all schemas contained in this catalog.
Inherited from org.jooq.impl.CatalogImpl:
acceptclausesequalsgetSchemagetSchemaschemaStream

Constructor Detail

MetaCatalogback to summary
pack-priv MetaCatalog(String name)

Method Detail

getSchemasback to summary
public final List<Schema> getSchemas()

Overrides org.jooq.impl.CatalogImpl.getSchemas.

Implements org.jooq.Catalog.getSchemas.

Doc from org.jooq.impl.CatalogImpl.getSchemas.

List all schemas contained in this catalog.

Subclasses should override this method

Annotations
@Override
org.jooq.impl back to summary

private final Class MetaImpl.MetaSchema

extends SchemaImpl
Class Inheritance

Field Summary

Modifier and TypeField and Description
private transient volatile Map<Name, Result<Record>>
private transient volatile Map<Name, Result<Record>>
private transient volatile Map<Name, String>
private transient volatile Map<Name, Result<Record>>
Inherited from org.jooq.impl.SchemaImpl:
DEFAULT_SCHEMA

Constructor Summary

AccessConstructor and Description
pack-priv
MetaSchema(String name, Catalog catalog)

Method Summary

Modifier and TypeMethod and Description
private final Result<Record>
getColumns(String catalog, String schema, String table)

private final Result<Record>
getColumns0(final String catalog, final String schema, final String table)

public List<Sequence<?>>
getSequences()

Overrides org.jooq.impl.SchemaImpl.getSequences.

Implements org.jooq.Schema.getSequences.

List all sequences contained in this schema.
private final Result<Record>
public final synchronized List<Table<?>>
getTables()

Overrides org.jooq.impl.SchemaImpl.getTables.

Implements org.jooq.Schema.getTables.

List all tables contained in this schema.
private final Result<Record>
getUks(String catalog, String schema, String table)

private final void
initUks(String catalog, String schema)

private final void
initUksSQLite(String catalog, String schema)

private final String
pack-priv final String
source(String tableName)

Inherited from org.jooq.impl.SchemaImpl:
acceptclausesdomainStreamequalsforeignKeyStreamgetCataloggetDomaingetDomaingetDomainsgetForeignKeysgetForeignKeysgetForeignKeysgetIndexesgetIndexesgetIndexesgetPrimaryKeysgetPrimaryKeysgetPrimaryKeysgetSequencegetSequencegetTablegetTablegetUDTgetUDTgetUDTsgetUniqueKeysgetUniqueKeysgetUniqueKeysindexStreamprimaryKeyStreamsequenceStreamtableStreamudtStreamuniqueKeyStream

Field Detail

columnCacheback to summary
private transient volatile Map<Name, Result<Record>> columnCache
sequenceCacheback to summary
private transient volatile Map<Name, Result<Record>> sequenceCache
sourceCacheback to summary
private transient volatile Map<Name, String> sourceCache
ukCacheback to summary
private transient volatile Map<Name, Result<Record>> ukCache

Constructor Detail

MetaSchemaback to summary
pack-priv MetaSchema(String name, Catalog catalog)

Method Detail

getColumnsback to summary
private final Result<Record> getColumns(String catalog, String schema, String table)
Annotations
@SuppressWarnings:unchecked
getColumns0back to summary
private final Result<Record> getColumns0(final String catalog, final String schema, final String table)
getSequencesback to summary
public List<Sequence<?>> getSequences()

Overrides org.jooq.impl.SchemaImpl.getSequences.

Implements org.jooq.Schema.getSequences.

Doc from org.jooq.impl.SchemaImpl.getSequences.

List all sequences contained in this schema.

Subclasses should override this method

Annotations
@SuppressWarnings:unchecked
@Override
getSequences0back to summary
private final Result<Record> getSequences0()
getTablesback to summary
public final synchronized List<Table<?>> getTables()

Overrides org.jooq.impl.SchemaImpl.getTables.

Implements org.jooq.Schema.getTables.

Doc from org.jooq.impl.SchemaImpl.getTables.

List all tables contained in this schema.

Subclasses should override this method

Annotations
@Override
getUksback to summary
private final Result<Record> getUks(String catalog, String schema, String table)
initUksback to summary
private final void initUks(String catalog, String schema)
initUksSQLiteback to summary
private final void initUksSQLite(String catalog, String schema)
patchSchemaback to summary
private final String patchSchema(String sql)
sourceback to summary
pack-priv final String source(String tableName)
org.jooq.impl back to summary

private final Class MetaImpl.MetaTable

extends TableImpl<Record>
Class Inheritance

Deprecated

as a consequence of TableImpl being deprecated. See corresponding docs for further information.

Field Summary

Modifier and TypeField and Description
private final Result<Record>
Inherited from org.jooq.impl.TableImpl:
aliaschildchildPathfieldsparameters

Constructor Summary

AccessConstructor and Description
pack-priv
MetaTable(String name, MetaImpl.MetaSchema schema, Result<Record> columns, Result<Record> uks, String remarks, TableOptions.TableType tableType)

Method Summary

Modifier and TypeMethod and Description
private final List<Index>
private final UniqueKey<Record>
createUniqueKey(Result<Record> result, int columnName, int keyName, boolean isPrimary)

public final List<Index>
getIndexes()

Overrides org.jooq.impl.AbstractTable.getIndexes.

Implements org.jooq.Table.getIndexes.

Retrieve all of the table's indexes.
public final UniqueKey<Record>
getPrimaryKey()

Overrides org.jooq.impl.AbstractTable.getPrimaryKey.

Implements org.jooq.Table.getPrimaryKey.

Retrieve the table's primary key

Subclasses may override this method

public final List<ForeignKey<Record, ?>>
getReferences()

Overrides org.jooq.impl.AbstractTable.getReferences.

Implements org.jooq.Table.getReferences.

Get the list of FOREIGN KEY's of this table

Subclasses should override this method

public final List<UniqueKey<Record>>
getUniqueKeys()

Overrides org.jooq.impl.AbstractTable.getUniqueKeys.

Implements org.jooq.Table.getUniqueKeys.

Retrieve all of the table's unique keys.
private final void
private final TableField<Record, ?>
lookup(Table<?> table, String fieldName)

Deprecated as a consequence of TableField being deprecated.
private final Result<Record>
Inherited from org.jooq.impl.TableImpl:
acceptaliasedasasclausesdeclaresTablesequalsfieldfieldfieldfieldfieldfieldfields0fieldsRowgetAliasedTablegetRecordTypehashCodeisSimpleisSyntheticjoinrenamerenamerenamerootChild

Field Detail

uksback to summary
private final Result<Record> uks

Constructor Detail

MetaTableback to summary
pack-priv MetaTable(String name, MetaImpl.MetaSchema schema, Result<Record> columns, Result<Record> uks, String remarks, TableOptions.TableType tableType)

Method Detail

createIndexesback to summary
private final List<Index> createIndexes(Result<Record> result)
createUniqueKeyback to summary
private final UniqueKey<Record> createUniqueKey(Result<Record> result, int columnName, int keyName, boolean isPrimary)
Annotations
@SuppressWarnings:unchecked
getIndexesback to summary
public final List<Index> getIndexes()

Overrides org.jooq.impl.AbstractTable.getIndexes.

Implements org.jooq.Table.getIndexes.

Doc from org.jooq.impl.AbstractTable.getIndexes.

Retrieve all of the table's indexes.

Subclasses should override this method

Returns:List<Index>

Doc from org.jooq.Table.getIndexes.

All indexes. This is never null.

Annotations
@Override
getPrimaryKeyback to summary
public final UniqueKey<Record> getPrimaryKey()

Overrides org.jooq.impl.AbstractTable.getPrimaryKey.

Implements org.jooq.Table.getPrimaryKey.

Doc from org.jooq.impl.AbstractTable.getPrimaryKey.

Retrieve the table's primary key

Subclasses may override this method

Returns:UniqueKey<Record>

Doc from org.jooq.Table.getPrimaryKey.

The primary key. This is never null for an updatable table.

Annotations
@Override
getReferencesback to summary
public final List<ForeignKey<Record, ?>> getReferences()

Overrides org.jooq.impl.AbstractTable.getReferences.

Implements org.jooq.Table.getReferences.

Doc from org.jooq.impl.AbstractTable.getReferences.

Get the list of FOREIGN KEY's of this table

Subclasses should override this method

Returns:List<ForeignKey<Record, ?>>

Doc from org.jooq.Table.getReferences.

This table's FOREIGN KEY's. This is never null.

Annotations
@Override
@SuppressWarnings:unchecked
getUniqueKeysback to summary
public final List<UniqueKey<Record>> getUniqueKeys()

Overrides org.jooq.impl.AbstractTable.getUniqueKeys.

Implements org.jooq.Table.getUniqueKeys.

Doc from org.jooq.impl.AbstractTable.getUniqueKeys.

Retrieve all of the table's unique keys.

Subclasses should override this method

Returns:List<UniqueKey<Record>>

Doc from org.jooq.Table.getUniqueKeys.

All keys. This is never null.

Annotations
@SuppressWarnings:unchecked
@Override
initColumnsback to summary
private final void initColumns(Result<Record> columns)
Annotations
@SuppressWarnings:rawtypes, unchecked
lookupback to summary
private final TableField<Record, ?> lookup(Table<?> table, String fieldName)

Deprecated

as a consequence of TableField being deprecated. See corresponding docs for further information.

Annotations
@SuppressWarnings:unchecked
removeSystemIndexesback to summary
private final Result<Record> removeSystemIndexes(Result<Record> result)
org.jooq.impl back to summary

private final Class MetaImpl.MetaUniqueKey

extends AbstractKey<Record>
implements UniqueKey<Record>
Class Inheritance
All Implemented Interfaces
org.jooq.UniqueKey, org.jooq.Key, org.jooq.Named, org.jooq.QueryPart, java.io.Serializable

Field Summary

Modifier and TypeField and Description
private final boolean

Constructor Summary

AccessConstructor and Description
pack-priv
MetaUniqueKey(Table<Record> table, String name, TableField<Record, ?>[] fields, boolean isPrimary)

Deprecated as a consequence of TableField being deprecated.

Method Summary

Modifier and TypeMethod and Description
pack-priv final ConstraintEnforcementStep
constraint0()

Implements abstract org.jooq.impl.AbstractKey.constraint0.

Deprecated as a consequence of ConstraintEnforcementStep being deprecated.
public final List<ForeignKey<?, Record>>
getReferences()

Implements org.jooq.UniqueKey.getReferences.

A list of all ForeignKeys, referencing this UniqueKey
public final boolean
isPrimary()

Implements org.jooq.UniqueKey.isPrimary.

Whether this is the table's primary key.
Inherited from org.jooq.impl.AbstractKey:
acceptconstraintenforcedequalsgetFieldsgetFieldsArraygetTablehashCodenullabletoString

Field Detail

isPrimaryback to summary
private final boolean isPrimary

Constructor Detail

MetaUniqueKeyback to summary
pack-priv MetaUniqueKey(Table<Record> table, String name, TableField<Record, ?>[] fields, boolean isPrimary)

Deprecated

as a consequence of TableField being deprecated. See corresponding docs for further information.

Method Detail

constraint0back to summary
pack-priv final ConstraintEnforcementStep constraint0()

Implements abstract org.jooq.impl.AbstractKey.constraint0.

Deprecated

as a consequence of ConstraintEnforcementStep being deprecated. See corresponding docs for further information.

Annotations
@Override
getReferencesback to summary
public final List<ForeignKey<?, Record>> getReferences()

Implements org.jooq.UniqueKey.getReferences.

Doc from org.jooq.UniqueKey.getReferences.

A list of all ForeignKeys, referencing this UniqueKey

Annotations
@Override
@SuppressWarnings:unchecked
isPrimaryback to summary
public final boolean isPrimary()

Implements org.jooq.UniqueKey.isPrimary.

Doc from org.jooq.UniqueKey.isPrimary.

Whether this is the table's primary key.

Annotations
@Override