- java.lang.Object
-
- org.jooq.meta.AbstractDatabase
-
- org.jooq.meta.AbstractMetaDatabase
-
- All Implemented Interfaces:
AutoCloseable,Database
- Direct Known Subclasses:
JDBCDatabase
public abstract class AbstractMetaDatabase extends AbstractDatabase
The base implementation forMetabased databases.- Author:
- Lukas Eder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jooq.meta.Database
Database.Filter
-
-
Constructor Summary
Constructors Constructor Description AbstractMetaDatabase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected DSLContextcreate0()Create a new Factoryprotected List<ArrayDefinition>getArrays0()Retrieve ALL ARRAYs from the database.protected List<CatalogDefinition>getCatalogs0()Retrieve ALL catalogs from the database.protected List<DomainDefinition>getDomains0()Retrieve ALL domain UDTs from the database.protected List<EnumDefinition>getEnums0()Retrieve ALL enum UDTs from the database.protected abstract MetagetMeta0()protected List<PackageDefinition>getPackages0()Retrieve ALL packages from the database.protected List<RoutineDefinition>getRoutines0()Retrieve ALL stored routines (functions and procedures) from the database.protected List<SchemaDefinition>getSchemata0()Retrieve ALL schemata from the database.protected List<SequenceDefinition>getSequences0()Retrieve ALL sequences from the database.protected List<TableDefinition>getTables0()Retrieve ALL tables from the database.protected List<UDTDefinition>getUDTs0()Retrieve ALL UDTs from the database.protected voidloadCheckConstraints(DefaultRelations r)RetrieveCHECKconstraints and store them to relations.protected voidloadForeignKeys(DefaultRelations relations)Retrieve foreign keys and store them to relations.protected voidloadPrimaryKeys(DefaultRelations relations)Retrieve primary keys and store them to relationsprotected voidloadUniqueKeys(DefaultRelations relations)Retrieve non-primary unique keys and store them to relations-
Methods inherited from class org.jooq.meta.AbstractDatabase
addFilter, close, configuredDialectIsNotFamilyAndSupports, create, create, dateAsTimestamp, embeddableDomains, embeddablePrimaryKeys, embeddableUniqueKeys, existAll, existAll, exists, exists, exists0, exists0, exists1, exists1, fetchedSize, filter, filter, filterExcludeInclude, filterExcludeInclude, filterExcludeInclude, filterPackage, filterPackage, filterSchema, filterSchema, filterTable, filterTable, getAll, getArray, getArray, getArray, getArray, getArrays, getBasedir, getCatalog, getCatalogs, getCatalogVersionProvider, getCheckConstraints, getConfiguredComments, getConfiguredCustomType, getConfiguredCustomTypes, getConfiguredEmbeddables, getConfiguredEnumTypes, getConfiguredForcedType, getConfiguredForcedType, getConfiguredForcedTypes, getConfiguredSyntheticForeignKeys, getConfiguredSyntheticIdentities, getConfiguredSyntheticPrimaryKeys, getConfiguredSyntheticUniqueKeys, getConfiguredSyntheticViews, getConnection, getDataTypeForMAX_VAL, getDefinition, getDefinition, getDialect, getDomain, getDomain, getDomain, getDomain, getDomains, getDomains, getEmbeddables, getEmbeddables, getEmbeddables, getEmbeddablesByReferencingTable, getEnum, getEnum, getEnum, getEnum, getEnums, getExcluded, getExcludes, getFilters, getForceIntegerTypesOnZeroScaleDecimals, getForeignKeys, getForeignKeys, getIdentities, getIncludeCheckConstraints, getIncluded, getIncludeDomains, getIncludeEmbeddables, getIncludeExcludeColumns, getIncludeExcludePackageRoutines, getIncludeForeignKeys, getIncludeIndexes, getIncludeInvisibleColumns, getIncludePackageConstants, getIncludePackageRoutines, getIncludePackages, getIncludePackageUDTs, getIncludePrimaryKeys, getIncludeRoutines, getIncludes, getIncludeSequences, getIncludeSystemCheckConstraints, getIncludeSystemIndexes, getIncludeSystemSequences, getIncludeSystemTables, getIncludeSystemUDTs, getIncludeTables, getIncludeTriggerRoutines, getIncludeUDTs, getIncludeUniqueKeys, getIndexes, getIndexes, getIndexes0, getInputCatalogs, getInputSchemata, getInputSchemata, getInputSchemata, getKeys, getKeys, getLogSlowQueriesAfterSeconds, getLogSlowResultsAfterSeconds, getOrderProvider, getOutputCatalog, getOutputSchema, getOutputSchema, getOverridePrimaryKeys, getPackage, getPackages, getPrimaryKeys, getPrimaryKeys, getProperties, getRecordTimestampFields, getRecordVersionFields, getRegexFlags, getRegexMatchesPartialQualification, getRelations, getRelations0, getRenderQuotedNames, getRoutines, getSchema, getSchemata, getSchemata, getSchemaVersionProvider, getSequences, getSequences, getSources, getSources0, getSqlMatchesPartialQualification, getSyntheticIdentities, getSyntheticPrimaryKeys, getTable, getTable, getTable, getTable, getTables, getTables, getUDT, getUDT, getUDT, getUDT, getUDTs, getUDTs, getUDTs, getUniqueKeys, getUniqueKeys, getUnusedComments, getUnusedEmbeddables, getUnusedForcedTypes, getUnusedSyntheticForeignKeys, getUnusedSyntheticIdentities, getUnusedSyntheticPrimaryKeys, getUnusedSyntheticUniqueKeys, getUnusedSyntheticViews, ignoreProcedureReturnValues, includeRelations, integerDisplayWidths, isArrayType, javaTimeTypes, markUsed, markUsed, markUsed, markUsed, markUsed, markUsed, markUsed, markUsed, onError, setBasedir, setCatalogVersionProvider, setConfiguredCatalogs, setConfiguredComments, setConfiguredCustomTypes, setConfiguredEmbeddables, setConfiguredEnumTypes, setConfiguredForcedTypes, setConfiguredSchemata, setConfiguredSyntheticObjects, setConnection, setDateAsTimestamp, setDialect, setEmbeddableDomains, setEmbeddablePrimaryKeys, setEmbeddableUniqueKeys, setExcludes, setForceIntegerTypesOnZeroScaleDecimals, setIgnoreProcedureReturnValues, setIncludeCheckConstraints, setIncludeDomains, setIncludeEmbeddables, setIncludeExcludeColumns, setIncludeExcludePackageRoutines, setIncludeForeignKeys, setIncludeIndexes, setIncludeInvisibleColumns, setIncludePackageConstants, setIncludePackageRoutines, setIncludePackages, setIncludePackageUDTs, setIncludePrimaryKeys, setIncludeRelations, setIncludeRoutines, setIncludes, setIncludeSequences, setIncludeSystemCheckConstraints, setIncludeSystemIndexes, setIncludeSystemSequences, setIncludeSystemTables, setIncludeSystemUDTs, setIncludeTables, setIncludeTriggerRoutines, setIncludeUDTs, setIncludeUniqueKeys, setIntegerDisplayWidths, setJavaTimeTypes, setLogSlowQueriesAfterSeconds, setLogSlowResultsAfterSeconds, setOnError, setOrderProvider, setOverridePrimaryKeys, setProperties, setRecordTimestampFields, setRecordVersionFields, setRegexFlags, setRegexMatchesPartialQualification, setSchemaVersionProvider, setSqlMatchesPartialQualification, setSupportsUnsignedTypes, setSyntheticIdentities, setSyntheticPrimaryKeys, setTableValuedFunctions, sort, supportsUnsignedTypes, tableValuedFunctions
-
-
-
-
Method Detail
-
create0
protected DSLContext create0()
Description copied from class:AbstractDatabaseCreate a new Factory- Specified by:
create0in classAbstractDatabase
-
getMeta0
protected abstract Meta getMeta0()
-
loadPrimaryKeys
protected void loadPrimaryKeys(DefaultRelations relations) throws SQLException
Description copied from class:AbstractDatabaseRetrieve primary keys and store them to relations- Specified by:
loadPrimaryKeysin classAbstractDatabase- Throws:
SQLException
-
loadUniqueKeys
protected void loadUniqueKeys(DefaultRelations relations) throws SQLException
Description copied from class:AbstractDatabaseRetrieve non-primary unique keys and store them to relations- Specified by:
loadUniqueKeysin classAbstractDatabase- Throws:
SQLException
-
loadForeignKeys
protected void loadForeignKeys(DefaultRelations relations) throws SQLException
Description copied from class:AbstractDatabaseRetrieve foreign keys and store them to relations. Unique keys are already loaded.- Specified by:
loadForeignKeysin classAbstractDatabase- Throws:
SQLException
-
loadCheckConstraints
protected void loadCheckConstraints(DefaultRelations r) throws SQLException
Description copied from class:AbstractDatabaseRetrieveCHECKconstraints and store them to relations.- Specified by:
loadCheckConstraintsin classAbstractDatabase- Throws:
SQLException
-
getCatalogs0
protected List<CatalogDefinition> getCatalogs0() throws SQLException
Description copied from class:AbstractDatabaseRetrieve ALL catalogs from the database. This will be filtered inAbstractDatabase.getCatalogs()- Specified by:
getCatalogs0in classAbstractDatabase- Throws:
SQLException
-
getSchemata0
protected List<SchemaDefinition> getSchemata0() throws SQLException
Description copied from class:AbstractDatabaseRetrieve ALL schemata from the database. This will be filtered inAbstractDatabase.getSchemata()- Specified by:
getSchemata0in classAbstractDatabase- Throws:
SQLException
-
getSequences0
protected List<SequenceDefinition> getSequences0() throws SQLException
Description copied from class:AbstractDatabaseRetrieve ALL sequences from the database. This will be filtered inAbstractDatabase.getTables(SchemaDefinition)- Specified by:
getSequences0in classAbstractDatabase- Throws:
SQLException
-
getTables0
protected List<TableDefinition> getTables0() throws SQLException
Description copied from class:AbstractDatabaseRetrieve ALL tables from the database. This will be filtered inAbstractDatabase.getTables(SchemaDefinition)- Specified by:
getTables0in classAbstractDatabase- Throws:
SQLException
-
getEnums0
protected List<EnumDefinition> getEnums0() throws SQLException
Description copied from class:AbstractDatabaseRetrieve ALL enum UDTs from the database. This will be filtered inAbstractDatabase.getEnums(SchemaDefinition)- Specified by:
getEnums0in classAbstractDatabase- Throws:
SQLException
-
getDomains0
protected List<DomainDefinition> getDomains0() throws SQLException
Description copied from class:AbstractDatabaseRetrieve ALL domain UDTs from the database. This will be filtered inAbstractDatabase.getDomains(SchemaDefinition)- Specified by:
getDomains0in classAbstractDatabase- Throws:
SQLException
-
getUDTs0
protected List<UDTDefinition> getUDTs0() throws SQLException
Description copied from class:AbstractDatabaseRetrieve ALL UDTs from the database. This will be filtered inAbstractDatabase.getEnums(SchemaDefinition)- Specified by:
getUDTs0in classAbstractDatabase- Throws:
SQLException
-
getArrays0
protected List<ArrayDefinition> getArrays0() throws SQLException
Description copied from class:AbstractDatabaseRetrieve ALL ARRAYs from the database. This will be filtered inAbstractDatabase.getArrays(SchemaDefinition)- Specified by:
getArrays0in classAbstractDatabase- Throws:
SQLException
-
getRoutines0
protected List<RoutineDefinition> getRoutines0() throws SQLException
Description copied from class:AbstractDatabaseRetrieve ALL stored routines (functions and procedures) from the database. This will be filtered inAbstractDatabase.getRoutines(SchemaDefinition)- Specified by:
getRoutines0in classAbstractDatabase- Throws:
SQLException
-
getPackages0
protected List<PackageDefinition> getPackages0() throws SQLException
Description copied from class:AbstractDatabaseRetrieve ALL packages from the database. This will be filtered inAbstractDatabase.getPackages(SchemaDefinition)- Specified by:
getPackages0in classAbstractDatabase- Throws:
SQLException
-
-