- java.lang.Object
-
- org.jooq.meta.AbstractDatabase
-
- All Implemented Interfaces:
AutoCloseable,Database
- Direct Known Subclasses:
AbstractMetaDatabase,CUBRIDDatabase,DerbyDatabase,FirebirdDatabase,H2Database,HSQLDBDatabase,MySQLDatabase,PostgresDatabase,SQLiteDatabase,XMLDatabase
public abstract class AbstractDatabase extends Object implements Database
A base implementation for all types of databases.- Author:
- Lukas Eder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jooq.meta.Database
Database.Filter
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractDatabase()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddFilter(Database.Filter filter)[#3488] Add an additional filter to the database that is applied in addition to include / exclude.voidclose()Release any resources that this Database may have allocated.protected booleanconfiguredDialectIsNotFamilyAndSupports(List<SQLDialect> d, Supplier<Boolean> ifFamily)Check if the configured dialect is versioned explicitly and supports a given dialect.DSLContextcreate()Create the factory for this database.protected DSLContextcreate(boolean muteExceptions)protected abstract DSLContextcreate0()Create a new FactorybooleandateAsTimestamp()Whether DATE columns should be treated as TIMESTAMP columns.StringembeddableDomains()A regular expression matching domain type definitions for which embeddable types should be generated.StringembeddablePrimaryKeys()A regular expression matching primary keys for which embeddable types should be generated.StringembeddableUniqueKeys()A regular expression matching unique keys for which embeddable types should be generated.booleanexistAll(Table<?>... t)Check for the existence of several tables in the dictionary views.booleanexistAll(TableField<?,?>... f)Check for the existence of several table fields in the dictionary views.booleanexists(Table<?> table)Check for the existence of a table in the dictionary views.booleanexists(TableField<?,?> field)Check for the existence of a table field in the dictionary views.protected booleanexists0(Table<?> table)[#8972] Subclasses may override this method for a more efficient implementation.protected booleanexists0(TableField<?,?> field)[#8972] Subclasses may override this method for a more efficient implementation.protected <R extends Record>
booleanexists1(Table<?> find, Table<R> in, TableField<R,String> schemaQualifier, TableField<R,String> tableQualifier)A utility method to look up a table in a single dictionary view.protected <R extends Record>
booleanexists1(TableField<?,?> find, Table<R> in, TableField<R,String> schemaQualifier, TableField<R,String> tableQualifier, TableField<R,String> columnQualifier)A utility method to look up a field in a single dictionary view.protected static StringfetchedSize(Collection<?> fetched, Collection<?> included)protected <T extends Definition>
List<T>filter(List<T> definitions, String include)protected <T extends Definition>
List<T>filter(List<T> definitions, List<String> include)<T extends Definition>
List<T>filterExcludeInclude(List<T> definitions)Filter a list of definitions according to the exclude / include / and filter settings of this database.protected <T extends Definition>
List<T>filterExcludeInclude(List<T> definitions, String[] e, String[] i, List<Database.Filter> f)protected <T extends Definition>
List<T>filterExcludeInclude(List<T> definitions, String e, String i)protected <T extends Definition>
List<T>filterPackage(List<T> definitions, PackageDefinition pkg)protected <T extends Definition>
List<T>filterPackage(List<T> definitions, PackageDefinition pkg, Map<PackageDefinition,List<T>> cache)protected <T extends Definition>
List<T>filterSchema(List<T> definitions, SchemaDefinition schema)protected <T extends Definition>
List<T>filterSchema(List<T> definitions, SchemaDefinition schema, Map<SchemaDefinition,List<T>> cache)protected <T extends TableElementDefinition>
List<T>filterTable(List<T> definitions, TableDefinition table)protected <T extends TableElementDefinition>
List<T>filterTable(List<T> definitions, TableDefinition table, Map<TableDefinition,List<T>> cache)List<Definition>getAll()Retrieve all objects.ArrayDefinitiongetArray(SchemaDefinition schema, String name)Get a ARRAY defined in this database by name.ArrayDefinitiongetArray(SchemaDefinition schema, String name, boolean ignoreCase)Get a ARRAY defined in this database by name.ArrayDefinitiongetArray(SchemaDefinition schema, Name name)Get a ARRAY defined in this database by name.ArrayDefinitiongetArray(SchemaDefinition schema, Name name, boolean ignoreCase)Get a ARRAY defined in this database by name.List<ArrayDefinition>getArrays(SchemaDefinition schema)The Arrays defined in this database.protected abstract List<ArrayDefinition>getArrays0()Retrieve ALL ARRAYs from the database.StringgetBasedir()The basedir that can be used by file based implementations to resolve relative paths.CatalogDefinitiongetCatalog(String inputName)Get a catalog defined in this database by name.List<CatalogDefinition>getCatalogs()The catalogs generated from this database.protected abstract List<CatalogDefinition>getCatalogs0()Retrieve ALL catalogs from the database.CatalogVersionProvidergetCatalogVersionProvider()The database's catalog version provider.List<CheckConstraintDefinition>getCheckConstraints(SchemaDefinition schema)The check constraints contained in this database.List<CommentType>getConfiguredComments()Get the configured comments.CustomTypegetConfiguredCustomType(String typeName)Deprecated.List<CustomType>getConfiguredCustomTypes()Deprecated.List<EmbeddableDefinitionType>getConfiguredEmbeddables()Get the configured embeddable type definitions for any givenDefinition.List<EnumType>getConfiguredEnumTypes()Database objects matching any of these field names will be generated as enum types.ForcedTypegetConfiguredForcedType(Definition definition)Get the configured forced type object for any givenDefinition, ornullif noForcedTypematches the definition.ForcedTypegetConfiguredForcedType(Definition definition, DataTypeDefinition definedType)Get the configured forced type object for any givenDefinition, ornullif noForcedTypematches the definition.List<ForcedType>getConfiguredForcedTypes()Database objects matching any of these field names will be generated as forced types.List<SyntheticForeignKeyType>getConfiguredSyntheticForeignKeys()Get the configured synthetic foreign keys.List<SyntheticIdentityType>getConfiguredSyntheticIdentities()Get the configured synthetic identities.List<SyntheticPrimaryKeyType>getConfiguredSyntheticPrimaryKeys()Get the configured synthetic primary keys.List<SyntheticUniqueKeyType>getConfiguredSyntheticUniqueKeys()Get the configured synthetic unique keys.List<SyntheticViewType>getConfiguredSyntheticViews()Get the configured synthetic views.ConnectiongetConnection()The database connection.protected DataTypeDefinitiongetDataTypeForMAX_VAL(SchemaDefinition schema, BigInteger value)Get the data type considering a known max valueprotected static <D extends Definition>
DgetDefinition(List<D> definitions, String name, boolean ignoreCase)protected static <D extends Definition>
DgetDefinition(List<D> definitions, Name name, boolean ignoreCase)SQLDialectgetDialect()Get the dialect for this database.DomainDefinitiongetDomain(SchemaDefinition schema, String name)Get an domain UDT defined in this database by name.DomainDefinitiongetDomain(SchemaDefinition schema, String name, boolean ignoreCase)Get an domain UDT defined in this database by name.DomainDefinitiongetDomain(SchemaDefinition schema, Name name)Get an domain UDT defined in this database by name.DomainDefinitiongetDomain(SchemaDefinition schema, Name name, boolean ignoreCase)Get an domain UDT defined in this database by name.List<DomainDefinition>getDomains()The domain UDTs defined in this database.List<DomainDefinition>getDomains(SchemaDefinition schema)The domain UDTs defined in this database.protected abstract List<DomainDefinition>getDomains0()Retrieve ALL domain UDTs from the database.List<EmbeddableDefinition>getEmbeddables()Get all embeddables.List<EmbeddableDefinition>getEmbeddables(SchemaDefinition schema)Get all embeddables for a given defining schema.List<EmbeddableDefinition>getEmbeddables(TableDefinition table)Get all embeddables for a given defining table.List<EmbeddableDefinition>getEmbeddablesByReferencingTable(TableDefinition table)Get all embeddables for a given referencing table.EnumDefinitiongetEnum(SchemaDefinition schema, String name)Get an enum UDT defined in this database by name.EnumDefinitiongetEnum(SchemaDefinition schema, String name, boolean ignoreCase)Get an enum UDT defined in this database by name.EnumDefinitiongetEnum(SchemaDefinition schema, Name name)Get an enum UDT defined in this database by name.EnumDefinitiongetEnum(SchemaDefinition schema, Name name, boolean ignoreCase)Get an enum UDT defined in this database by name.List<EnumDefinition>getEnums(SchemaDefinition schema)The enum UDTs defined in this database.protected abstract List<EnumDefinition>getEnums0()Retrieve ALL enum UDTs from the database.List<Definition>getExcluded()Retrieve all excluded objects.String[]getExcludes()Database objects matching any of these regular expressions will not be generated.List<Database.Filter>getFilters()[#3488] The filters that are applied in addition to include / exclude.booleangetForceIntegerTypesOnZeroScaleDecimals()Whether zero-scale decimal types should be treated as their most appropriate, corresponding integer type.List<ForeignKeyDefinition>getForeignKeys()The foreign keys contained in this database.List<ForeignKeyDefinition>getForeignKeys(SchemaDefinition schema)The foreign keys contained in this database.List<IdentityDefinition>getIdentities(SchemaDefinition schema)The identities contained in this database.booleangetIncludeCheckConstraints()whether check constraints should be included.List<Definition>getIncluded()Retrieve all included objects.booleangetIncludeDomains()whether domains should be included.booleangetIncludeEmbeddables()Whether embeddable types should be included.booleangetIncludeExcludeColumns()Indicate whether include / exclude regular expression shall also match database columns.booleangetIncludeExcludePackageRoutines()Indicate whether include / exclude regular expression shall also match package routines.booleangetIncludeForeignKeys()whether foreign key relationships should be included.booleangetIncludeIndexes()whether indexes should be included.booleangetIncludeInvisibleColumns()Whether invisible columns should be included.booleangetIncludePackageConstants()whether package constants should be included.booleangetIncludePackageRoutines()whether package routines should be included.booleangetIncludePackages()whether packages should be included.booleangetIncludePackageUDTs()whether package UDTs should be included.booleangetIncludePrimaryKeys()whether primary keys should be included.booleangetIncludeRoutines()whether routines should be included.String[]getIncludes()Only database objects matching any of these regular expressions will be generated.booleangetIncludeSequences()whether sequences should be included.booleangetIncludeSystemCheckConstraints()whether system generated check constraints should be included.booleangetIncludeSystemIndexes()whether system generated indexes should be included.booleangetIncludeSystemSequences()whether system generated sequences should be included.booleangetIncludeSystemTables()whether system generated tables should be included.booleangetIncludeSystemUDTs()whether system generated UDTs should be included.booleangetIncludeTables()Whether tables (and views) should be included.booleangetIncludeTriggerRoutines()whether trigger routines should be included.booleangetIncludeUDTs()whether user defined types should be included.booleangetIncludeUniqueKeys()whether unique keys should be included.List<IndexDefinition>getIndexes(SchemaDefinition schema)The indexes contained in this database.List<IndexDefinition>getIndexes(TableDefinition table)The indexes contained in this database.protected List<IndexDefinition>getIndexes0()Retrieve ALL indexes from the databaseList<String>getInputCatalogs()The input catalogs are the catalogs that jooq-meta is reading data from.List<String>getInputSchemata()The input schemata are the schemata from all catalogs that jooq-meta is reading data from.List<String>getInputSchemata(String catalog)The input schemata are the schemata from a given catalog that jooq-meta is reading data from.List<String>getInputSchemata(CatalogDefinition catalog)The input schemata are the schemata from a given catalog that jooq-meta is reading data from.List<UniqueKeyDefinition>getKeys()The unique and primary keys contained in this database.List<UniqueKeyDefinition>getKeys(SchemaDefinition schema)The unique and primary keys contained in this database.intgetLogSlowQueriesAfterSeconds()Log slow queries after this amount of seconds.intgetLogSlowResultsAfterSeconds()Log slow results after this amount of seconds.Comparator<Definition>getOrderProvider()The database's order provider.StringgetOutputCatalog(String inputCatalog)Deprecated.StringgetOutputSchema(String inputSchema)Deprecated.StringgetOutputSchema(String inputCatalog, String inputSchema)The output schema is the schema used by jooq-codegen in class names.String[]getOverridePrimaryKeys()Deprecated.PackageDefinitiongetPackage(SchemaDefinition schema, String inputName)Get a package defined in this database by name.List<PackageDefinition>getPackages(SchemaDefinition schema)The packages contained in this database.protected abstract List<PackageDefinition>getPackages0()Retrieve ALL packages from the database.List<UniqueKeyDefinition>getPrimaryKeys()The primary keys contained in this database.List<UniqueKeyDefinition>getPrimaryKeys(SchemaDefinition schema)The primary keys contained in this database.PropertiesgetProperties()Database properties.String[]getRecordTimestampFields()Table columns matching these regular expressions will be considered as record timestamp fields in generated code.String[]getRecordVersionFields()Table columns matching these regular expressions will be considered as record version fields in generated code.List<RegexFlag>getRegexFlags()The regular expression flags that should be applied when using regular expressions.booleangetRegexMatchesPartialQualification()Whether the regular expressions matching database objects should match partially qualified names as well as fully qualified and unqualified names.RelationsgetRelations()Retrieve the schema's primary key / foreign key relations.protected RelationsgetRelations0()Retrieve ALL relations from the database.protected RenderQuotedNamesgetRenderQuotedNames()Subclasses may override this.List<RoutineDefinition>getRoutines(SchemaDefinition schema)The stored routines (procedures and functions) contained in this database.protected abstract List<RoutineDefinition>getRoutines0()Retrieve ALL stored routines (functions and procedures) from the database.SchemaDefinitiongetSchema(String inputName)Get a schema defined in this database by name.List<SchemaDefinition>getSchemata()The schemata generated from this database.List<SchemaDefinition>getSchemata(CatalogDefinition catalog)The schemata generated from this database and a given catalog.protected abstract List<SchemaDefinition>getSchemata0()Retrieve ALL schemata from the database.SchemaVersionProvidergetSchemaVersionProvider()The database's schema version provider.List<SequenceDefinition>getSequences()The sequences contained in this database.List<SequenceDefinition>getSequences(SchemaDefinition schema)The sequences contained in this database.protected abstract List<SequenceDefinition>getSequences0()Retrieve ALL sequences from the database.Map<Definition,String>getSources()Get the sources for all objects that offer sources.protected Map<Definition,String>getSources0()Retrieve ALL source code from the database.booleangetSqlMatchesPartialQualification()Whether the SQL statements matching database objects should match partially qualified names as well as fully qualified and unqualified names.String[]getSyntheticIdentities()Deprecated.String[]getSyntheticPrimaryKeys()Deprecated.TableDefinitiongetTable(SchemaDefinition schema, String name)Get a table in this database by name.TableDefinitiongetTable(SchemaDefinition schema, String name, boolean ignoreCase)Get a table in this database by name.TableDefinitiongetTable(SchemaDefinition schema, Name name)Get a table in this database by name.TableDefinitiongetTable(SchemaDefinition schema, Name name, boolean ignoreCase)Get a table in this database by name.List<TableDefinition>getTables()The tables contained in this database.List<TableDefinition>getTables(SchemaDefinition schema)The tables contained in this database.protected abstract List<TableDefinition>getTables0()Retrieve ALL tables from the database.UDTDefinitiongetUDT(SchemaDefinition schema, String name)Get a UDT defined in this database by name.UDTDefinitiongetUDT(SchemaDefinition schema, String name, boolean ignoreCase)Get a UDT defined in this database by name.UDTDefinitiongetUDT(SchemaDefinition schema, Name name)Get a UDT defined in this database by name.UDTDefinitiongetUDT(SchemaDefinition schema, Name name, boolean ignoreCase)Get a UDT defined in this database by name.List<UDTDefinition>getUDTs()The UDTs defined in this database.List<UDTDefinition>getUDTs(PackageDefinition pkg)The UDTs defined in this database.List<UDTDefinition>getUDTs(SchemaDefinition schema)The UDTs defined in this database.protected abstract List<UDTDefinition>getUDTs0()Retrieve ALL UDTs from the database.List<UniqueKeyDefinition>getUniqueKeys()The unique keys contained in this database.List<UniqueKeyDefinition>getUniqueKeys(SchemaDefinition schema)The unique keys contained in this database.List<CommentType>getUnusedComments()Retrieve the not-yet used comments.List<EmbeddableDefinitionType>getUnusedEmbeddables()Retrieve the not-yet used embeddables.List<ForcedType>getUnusedForcedTypes()Retrieve the not-yet used forced types.List<SyntheticForeignKeyType>getUnusedSyntheticForeignKeys()Retrieve the not-yet used synthetic foreign keys.List<SyntheticIdentityType>getUnusedSyntheticIdentities()Retrieve the not-yet used synthetic identities.List<SyntheticPrimaryKeyType>getUnusedSyntheticPrimaryKeys()Retrieve the not-yet used synthetic primary keys.List<SyntheticUniqueKeyType>getUnusedSyntheticUniqueKeys()Retrieve the not-yet used synthetic unique keys.List<SyntheticViewType>getUnusedSyntheticViews()Retrieve the not-yet used synthetic views.booleanignoreProcedureReturnValues()Whether this database should ignore procedure return values.booleanincludeRelations()[#3559] Whether relations (i.e. constraints) should be included in this database.booleanintegerDisplayWidths()Whether this database includes integer display widths in metadata, where applicable.booleanisArrayType(String dataType)Check whether a type is an array type.booleanjavaTimeTypes()Whetherjava.timetypes are used, as opposed tojava.sqltypes.protected abstract voidloadCheckConstraints(DefaultRelations r)RetrieveCHECKconstraints and store them to relations.protected abstract voidloadForeignKeys(DefaultRelations r)Retrieve foreign keys and store them to relations.protected abstract voidloadPrimaryKeys(DefaultRelations r)Retrieve primary keys and store them to relationsprotected abstract voidloadUniqueKeys(DefaultRelations r)Retrieve non-primary unique keys and store them to relationsvoidmarkUsed(CommentType object)Mark a comment as used.voidmarkUsed(EmbeddableDefinitionType embeddable)Mark an embeddable as used.voidmarkUsed(ForcedType forcedType)Mark a forced type as used.voidmarkUsed(SyntheticForeignKeyType foreignKey)Mark a synthetic foreign key as used.voidmarkUsed(SyntheticIdentityType identity)Mark a synthetic identity as used.voidmarkUsed(SyntheticPrimaryKeyType primaryKey)Mark a synthetic primary key as used.voidmarkUsed(SyntheticUniqueKeyType uniqueKey)Mark a synthetic unique key as used.voidmarkUsed(SyntheticViewType view)Mark a synthetic view as used.OnErroronError()The behaviour when errors are encountered.voidsetBasedir(String basedir)The basedir that can be used by file based implementations to resolve relative paths.voidsetCatalogVersionProvider(CatalogVersionProvider catalogVersionProvider)The database's catalog version provider.voidsetConfiguredCatalogs(List<CatalogMappingType> catalogs)The input and output catalogs.voidsetConfiguredComments(List<CommentType> configuredComments)Configure the comments.voidsetConfiguredCustomTypes(List<CustomType> configuredCustomTypes)Deprecated.voidsetConfiguredEmbeddables(List<EmbeddableDefinitionType> configuredEmbeddables)Configure the embeddable types.voidsetConfiguredEnumTypes(List<EnumType> configuredEnumTypes)Database objects matching any of these field names will be generated as enum types.voidsetConfiguredForcedTypes(List<ForcedType> configuredForcedTypes)Database objects matching any of these field names will be generated as forced types.voidsetConfiguredSchemata(List<SchemaMappingType> schemata)The input and output schemata.voidsetConfiguredSyntheticObjects(SyntheticObjectsType configuredSyntheticObjects)Configure the synthetic objects.voidsetConnection(Connection connection)Initialise a connection to this database.voidsetDateAsTimestamp(boolean dateAsTimestamp)Whether DATE columns should be treated as TIMESTAMP columns.voidsetDialect(SQLDialect dialect)Set the dialect for this database.voidsetEmbeddableDomains(String embeddableDomains)A regular expression matching domain type definitions for which embeddable types should be generated.voidsetEmbeddablePrimaryKeys(String embeddablePrimaryKeys)A regular expression matching primary keys for which embeddable types should be generated.voidsetEmbeddableUniqueKeys(String embeddableUniqueKeys)A regular expression matching unique keys for which embeddable types should be generated.voidsetExcludes(String[] excludes)Database objects matching any of these regular expressions will not be generated.voidsetForceIntegerTypesOnZeroScaleDecimals(boolean forceIntegerTypesOnZeroScaleDecimals)Whether zero-scale decimal types should be treated as their most appropriate, corresponding integer type.voidsetIgnoreProcedureReturnValues(boolean ignoreProcedureReturnValues)Whether this database should ignore procedure return values.voidsetIncludeCheckConstraints(boolean includeCheckConstraints)whether check constraints should be included.voidsetIncludeDomains(boolean includeDomains)whether domains should be included.voidsetIncludeEmbeddables(boolean includeEmbeddables)Whether embeddable types should be included.voidsetIncludeExcludeColumns(boolean includeExcludeColumns)Indicate whether include / exclude regular expression shall also match database columns.voidsetIncludeExcludePackageRoutines(boolean includeExcludePackageRoutines)Indicate whether include / exclude regular expression shall also match package routines.voidsetIncludeForeignKeys(boolean includeForeignKeys)whether foreign key relationships should be included.voidsetIncludeIndexes(boolean includeIndexes)whether indexes should be included.voidsetIncludeInvisibleColumns(boolean includeInvisibleColumns)Whether invisible columns should be included.voidsetIncludePackageConstants(boolean includePackageConstants)whether package constants should be included.voidsetIncludePackageRoutines(boolean includePackageRoutines)whether package routines should be included.voidsetIncludePackages(boolean includePackages)whether packages should be included.voidsetIncludePackageUDTs(boolean includePackageUDTs)whether package UDTs should be included.voidsetIncludePrimaryKeys(boolean includePrimaryKeys)whether primary keys should be included.voidsetIncludeRelations(boolean includeRelations)[#3559] Whether relations (i.e. constraints) should be included in this database.voidsetIncludeRoutines(boolean includeRoutines)whether routines should be included.voidsetIncludes(String[] includes)Only database objects matching any of these regular expressions will be generated.voidsetIncludeSequences(boolean includeSequences)whether sequences should be included.voidsetIncludeSystemCheckConstraints(boolean includeSystemCheckConstraints)whether system generated check constraints should be included.voidsetIncludeSystemIndexes(boolean includeSystemIndexes)whether system generated indexes should be included.voidsetIncludeSystemSequences(boolean includeSystemSequences)whether system generated sequences should be included.voidsetIncludeSystemTables(boolean includeSystemTables)whether system generated tables should be included.voidsetIncludeSystemUDTs(boolean includeSystemUDTs)whether system generated UDTs should be included.voidsetIncludeTables(boolean includeTables)Whether tables (and views) should be included.voidsetIncludeTriggerRoutines(boolean includeTriggerRoutines)whether trigger routines should be included.voidsetIncludeUDTs(boolean includeUDTs)whether user defined types should be included.voidsetIncludeUniqueKeys(boolean includeUniqueKeys)whether unique keys should be included.voidsetIntegerDisplayWidths(boolean integerDisplayWidths)Whether this database includes integer display widths in metadata, where applicable.voidsetJavaTimeTypes(boolean javaTimeTypes)Whetherjava.timetypes are used, as opposed tojava.sqltypes.voidsetLogSlowQueriesAfterSeconds(int logSlowQueriesAfterSeconds)Log slow queries after this amount of seconds.voidsetLogSlowResultsAfterSeconds(int logSlowResultsAfterSeconds)Log slow results after this amount of seconds.voidsetOnError(OnError onError)The behaviour when errors are encountered.voidsetOrderProvider(Comparator<Definition> provider)The database's order provider.voidsetOverridePrimaryKeys(String[] overridePrimaryKeys)Deprecated.voidsetProperties(Properties properties)Database properties.voidsetRecordTimestampFields(String[] recordTimestampFields)Table columns matching these regular expressions will be considered as record timestamp fields in generated code.voidsetRecordVersionFields(String[] recordVersionFields)Table columns matching these regular expressions will be considered as record version fields in generated code.voidsetRegexFlags(List<RegexFlag> regexFlags)The regular expression flags that should be applied when using regular expressions.voidsetRegexMatchesPartialQualification(boolean regexMatchesPartialQualification)Whether the regular expressions matching database objects should match partially qualified names as well as fully qualified and unqualified names.voidsetSchemaVersionProvider(SchemaVersionProvider schemaVersionProvider)The database's schema version provider.voidsetSqlMatchesPartialQualification(boolean sqlMatchesPartialQualification)Whether the SQL statements matching database objects should match partially qualified names as well as fully qualified and unqualified names.voidsetSupportsUnsignedTypes(boolean supportsUnsignedTypes)Whether this database supports unsigned types.voidsetSyntheticIdentities(String[] syntheticIdentities)Deprecated.voidsetSyntheticPrimaryKeys(String[] syntheticPrimaryKeys)Deprecated.voidsetTableValuedFunctions(boolean tableValuedFunctions)[#4838] Whether table-valued functions should be reported as tables.<T extends Definition>
List<T>sort(List<T> definitions)Sort a list of definitions according to theDatabase.getOrderProvider()defined in this database.booleansupportsUnsignedTypes()Whether this database supports unsigned types.booleantableValuedFunctions()[#4838] Whether table-valued functions should be reported as tables.
-
-
-
Method Detail
-
getDialect
public final SQLDialect getDialect()
Description copied from interface:DatabaseGet the dialect for this database.- Specified by:
getDialectin interfaceDatabase
-
setDialect
public final void setDialect(SQLDialect dialect)
Description copied from interface:DatabaseSet the dialect for this database.- Specified by:
setDialectin interfaceDatabase
-
setConnection
public final void setConnection(Connection connection)
Description copied from interface:DatabaseInitialise a connection to this database.- Specified by:
setConnectionin interfaceDatabase
-
getConnection
public final Connection getConnection()
Description copied from interface:DatabaseThe database connection.- Specified by:
getConnectionin interfaceDatabase
-
create
public final DSLContext create()
Description copied from interface:DatabaseCreate the factory for this database.
-
create
protected final DSLContext create(boolean muteExceptions)
-
getRenderQuotedNames
protected RenderQuotedNames getRenderQuotedNames()
Subclasses may override this.
-
configuredDialectIsNotFamilyAndSupports
protected boolean configuredDialectIsNotFamilyAndSupports(List<SQLDialect> d, Supplier<Boolean> ifFamily)
Check if the configured dialect is versioned explicitly and supports a given dialect.This can be used as an optimisation to check if a dialect supports e.g. a
SQLDialect#POSTGRES_12without needing to query the information schema.
-
exists
public final boolean exists(TableField<?,?> field)
Description copied from interface:DatabaseCheck for the existence of a table field in the dictionary views.
-
exists0
protected boolean exists0(TableField<?,?> field)
[#8972] Subclasses may override this method for a more efficient implementation.
-
exists1
protected final <R extends Record> boolean exists1(TableField<?,?> find, Table<R> in, TableField<R,String> schemaQualifier, TableField<R,String> tableQualifier, TableField<R,String> columnQualifier)
A utility method to look up a field in a single dictionary view.- Parameters:
find- The field to look upin- The dictionary viewschemaQualifier- The column in the dictionary view qualifying the schematableQualifier- The column in the dictionary view qualifying the tablecolumnQualifier- The column in the dictionary view qualifying the column
-
existAll
public final boolean existAll(TableField<?,?>... f)
Description copied from interface:DatabaseCheck for the existence of several table fields in the dictionary views.
-
exists
public final boolean exists(Table<?> table)
Description copied from interface:DatabaseCheck for the existence of a table in the dictionary views.
-
exists0
protected boolean exists0(Table<?> table)
[#8972] Subclasses may override this method for a more efficient implementation.
-
exists1
protected final <R extends Record> boolean exists1(Table<?> find, Table<R> in, TableField<R,String> schemaQualifier, TableField<R,String> tableQualifier)
A utility method to look up a table in a single dictionary view.- Parameters:
find- The table to look upin- The dictionary viewschemaQualifier- The column in the dictionary view qualifying the schematableQualifier- The column in the dictionary view qualifying the table
-
existAll
public final boolean existAll(Table<?>... t)
Description copied from interface:DatabaseCheck for the existence of several tables in the dictionary views.
-
getSources
public final Map<Definition,String> getSources()
Description copied from interface:DatabaseGet the sources for all objects that offer sources.- Specified by:
getSourcesin interfaceDatabase
-
getCatalogs
public final List<CatalogDefinition> getCatalogs()
Description copied from interface:DatabaseThe catalogs generated from this database.- Specified by:
getCatalogsin interfaceDatabase
-
getCatalog
public final CatalogDefinition getCatalog(String inputName)
Description copied from interface:DatabaseGet a catalog defined in this database by name.- Specified by:
getCatalogin interfaceDatabase
-
getSchemata
public final List<SchemaDefinition> getSchemata()
Description copied from interface:DatabaseThe schemata generated from this database.- Specified by:
getSchematain interfaceDatabase
-
getSchemata
public final List<SchemaDefinition> getSchemata(CatalogDefinition catalog)
Description copied from interface:DatabaseThe schemata generated from this database and a given catalog.- Specified by:
getSchematain interfaceDatabase
-
getSchema
public final SchemaDefinition getSchema(String inputName)
Description copied from interface:DatabaseGet a schema defined in this database by name.
-
getInputCatalogs
public final List<String> getInputCatalogs()
Description copied from interface:DatabaseThe input catalogs are the catalogs that jooq-meta is reading data from.- Specified by:
getInputCatalogsin interfaceDatabase
-
getInputSchemata
public final List<String> getInputSchemata()
Description copied from interface:DatabaseThe input schemata are the schemata from all catalogs that jooq-meta is reading data from.This will combine the schemata from all catalogs in a single list. If you're working with a multi-catalog environment, you may want to call
Database.getInputSchemata(String)instead to disambiguate schema names (e.g. in SQL Server, there are multiple "dbo" schemas).- Specified by:
getInputSchematain interfaceDatabase
-
getInputSchemata
public final List<String> getInputSchemata(CatalogDefinition catalog)
Description copied from interface:DatabaseThe input schemata are the schemata from a given catalog that jooq-meta is reading data from.- Specified by:
getInputSchematain interfaceDatabase
-
getInputSchemata
public final List<String> getInputSchemata(String catalog)
Description copied from interface:DatabaseThe input schemata are the schemata from a given catalog that jooq-meta is reading data from.- Specified by:
getInputSchematain interfaceDatabase
-
getOutputCatalog
@Deprecated public String getOutputCatalog(String inputCatalog)
Deprecated.Description copied from interface:DatabaseThe output catalog is the catalog used by jooq-codegen in class names.- Specified by:
getOutputCatalogin interfaceDatabase
-
getOutputSchema
@Deprecated public String getOutputSchema(String inputSchema)
Deprecated.Description copied from interface:DatabaseThe output schema is the schema used by jooq-codegen in class names.- Specified by:
getOutputSchemain interfaceDatabase
-
getOutputSchema
public String getOutputSchema(String inputCatalog, String inputSchema)
Description copied from interface:DatabaseThe output schema is the schema used by jooq-codegen in class names.- Specified by:
getOutputSchemain interfaceDatabase
-
setConfiguredCatalogs
public final void setConfiguredCatalogs(List<CatalogMappingType> catalogs)
Description copied from interface:DatabaseThe input and output catalogs.- Specified by:
setConfiguredCatalogsin interfaceDatabase
-
setConfiguredSchemata
public final void setConfiguredSchemata(List<SchemaMappingType> schemata)
Description copied from interface:DatabaseThe input and output schemata.- Specified by:
setConfiguredSchematain interfaceDatabase
-
setProperties
public final void setProperties(Properties properties)
Description copied from interface:DatabaseDatabase properties.These properties are typically used by database implementations like the jooq-meta-extensions's
JPADatabase(reverse-engineering JPA-annotated entities: properties are used to describe entity lookup paths) or theXMLDatabase(reverse-engineering an XML file: properties are used to describe the XML file's location).User-defined database implementations may use these properties for the same reason.
- Specified by:
setPropertiesin interfaceDatabase
-
getProperties
public final Properties getProperties()
Description copied from interface:DatabaseDatabase properties.These properties are typically used by database implementations like the jooq-meta-extensions's
JPADatabase(reverse-engineering JPA-annotated entities: properties are used to describe entity lookup paths) or theXMLDatabase(reverse-engineering an XML file: properties are used to describe the XML file's location).User-defined database implementations may use these properties for the same reason.
- Specified by:
getPropertiesin interfaceDatabase
-
setBasedir
public final void setBasedir(String basedir)
Description copied from interface:DatabaseThe basedir that can be used by file based implementations to resolve relative paths.- Specified by:
setBasedirin interfaceDatabase
-
getBasedir
public final String getBasedir()
Description copied from interface:DatabaseThe basedir that can be used by file based implementations to resolve relative paths.- Specified by:
getBasedirin interfaceDatabase
-
setOnError
public final void setOnError(OnError onError)
Description copied from interface:DatabaseThe behaviour when errors are encountered.- Specified by:
setOnErrorin interfaceDatabase
-
onError
public final OnError onError()
Description copied from interface:DatabaseThe behaviour when errors are encountered.
-
getFilters
public final List<Database.Filter> getFilters()
Description copied from interface:Database[#3488] The filters that are applied in addition to include / exclude.- Specified by:
getFiltersin interfaceDatabase
-
addFilter
public final void addFilter(Database.Filter filter)
Description copied from interface:Database[#3488] Add an additional filter to the database that is applied in addition to include / exclude.
-
setExcludes
public final void setExcludes(String[] excludes)
Description copied from interface:DatabaseDatabase objects matching any of these regular expressions will not be generated.- Specified by:
setExcludesin interfaceDatabase
-
getExcludes
public final String[] getExcludes()
Description copied from interface:DatabaseDatabase objects matching any of these regular expressions will not be generated.- Specified by:
getExcludesin interfaceDatabase
-
setIncludes
public final void setIncludes(String[] includes)
Description copied from interface:DatabaseOnly database objects matching any of these regular expressions will be generated.- Specified by:
setIncludesin interfaceDatabase
-
getIncludes
public final String[] getIncludes()
Description copied from interface:DatabaseOnly database objects matching any of these regular expressions will be generated.- Specified by:
getIncludesin interfaceDatabase
-
setIncludeExcludeColumns
public final void setIncludeExcludeColumns(boolean includeExcludeColumns)
Description copied from interface:DatabaseIndicate whether include / exclude regular expression shall also match database columns.- Specified by:
setIncludeExcludeColumnsin interfaceDatabase
-
getIncludeExcludeColumns
public final boolean getIncludeExcludeColumns()
Description copied from interface:DatabaseIndicate whether include / exclude regular expression shall also match database columns.- Specified by:
getIncludeExcludeColumnsin interfaceDatabase
-
setIncludeExcludePackageRoutines
public final void setIncludeExcludePackageRoutines(boolean includeExcludePackageRoutines)
Description copied from interface:DatabaseIndicate whether include / exclude regular expression shall also match package routines.- Specified by:
setIncludeExcludePackageRoutinesin interfaceDatabase
-
getIncludeExcludePackageRoutines
public final boolean getIncludeExcludePackageRoutines()
Description copied from interface:DatabaseIndicate whether include / exclude regular expression shall also match package routines.- Specified by:
getIncludeExcludePackageRoutinesin interfaceDatabase
-
setIncludeInvisibleColumns
public final void setIncludeInvisibleColumns(boolean includeInvisibleColumns)
Description copied from interface:DatabaseWhether invisible columns should be included.- Specified by:
setIncludeInvisibleColumnsin interfaceDatabase
-
getIncludeInvisibleColumns
public final boolean getIncludeInvisibleColumns()
Description copied from interface:DatabaseWhether invisible columns should be included.- Specified by:
getIncludeInvisibleColumnsin interfaceDatabase
-
getIncludeTables
public final boolean getIncludeTables()
Description copied from interface:DatabaseWhether tables (and views) should be included.- Specified by:
getIncludeTablesin interfaceDatabase
-
setIncludeTables
public final void setIncludeTables(boolean includeTables)
Description copied from interface:DatabaseWhether tables (and views) should be included.- Specified by:
setIncludeTablesin interfaceDatabase
-
getIncludeEmbeddables
public final boolean getIncludeEmbeddables()
Description copied from interface:DatabaseWhether embeddable types should be included.- Specified by:
getIncludeEmbeddablesin interfaceDatabase
-
setIncludeEmbeddables
public final void setIncludeEmbeddables(boolean includeEmbeddables)
Description copied from interface:DatabaseWhether embeddable types should be included.- Specified by:
setIncludeEmbeddablesin interfaceDatabase
-
getIncludeRoutines
public final boolean getIncludeRoutines()
Description copied from interface:Databasewhether routines should be included.- Specified by:
getIncludeRoutinesin interfaceDatabase
-
setIncludeRoutines
public final void setIncludeRoutines(boolean includeRoutines)
Description copied from interface:Databasewhether routines should be included.- Specified by:
setIncludeRoutinesin interfaceDatabase
-
setIncludeTriggerRoutines
public void setIncludeTriggerRoutines(boolean includeTriggerRoutines)
Description copied from interface:Databasewhether trigger routines should be included.- Specified by:
setIncludeTriggerRoutinesin interfaceDatabase
-
getIncludeTriggerRoutines
public boolean getIncludeTriggerRoutines()
Description copied from interface:Databasewhether trigger routines should be included.- Specified by:
getIncludeTriggerRoutinesin interfaceDatabase
-
getIncludePackages
public final boolean getIncludePackages()
Description copied from interface:Databasewhether packages should be included.- Specified by:
getIncludePackagesin interfaceDatabase
-
setIncludePackages
public final void setIncludePackages(boolean includePackages)
Description copied from interface:Databasewhether packages should be included.- Specified by:
setIncludePackagesin interfaceDatabase
-
getIncludePackageRoutines
public final boolean getIncludePackageRoutines()
Description copied from interface:Databasewhether package routines should be included.- Specified by:
getIncludePackageRoutinesin interfaceDatabase
-
setIncludePackageRoutines
public final void setIncludePackageRoutines(boolean includePackageRoutines)
Description copied from interface:Databasewhether package routines should be included.- Specified by:
setIncludePackageRoutinesin interfaceDatabase
-
getIncludePackageUDTs
public final boolean getIncludePackageUDTs()
Description copied from interface:Databasewhether package UDTs should be included.- Specified by:
getIncludePackageUDTsin interfaceDatabase
-
setIncludePackageUDTs
public final void setIncludePackageUDTs(boolean includePackageUDTs)
Description copied from interface:Databasewhether package UDTs should be included.- Specified by:
setIncludePackageUDTsin interfaceDatabase
-
getIncludePackageConstants
public final boolean getIncludePackageConstants()
Description copied from interface:Databasewhether package constants should be included.- Specified by:
getIncludePackageConstantsin interfaceDatabase
-
setIncludePackageConstants
public final void setIncludePackageConstants(boolean includePackageConstants)
Description copied from interface:Databasewhether package constants should be included.- Specified by:
setIncludePackageConstantsin interfaceDatabase
-
getIncludeUDTs
public final boolean getIncludeUDTs()
Description copied from interface:Databasewhether user defined types should be included.- Specified by:
getIncludeUDTsin interfaceDatabase
-
setIncludeUDTs
public final void setIncludeUDTs(boolean includeUDTs)
Description copied from interface:Databasewhether user defined types should be included.- Specified by:
setIncludeUDTsin interfaceDatabase
-
getIncludeDomains
public final boolean getIncludeDomains()
Description copied from interface:Databasewhether domains should be included.- Specified by:
getIncludeDomainsin interfaceDatabase
-
setIncludeDomains
public final void setIncludeDomains(boolean includeDomains)
Description copied from interface:Databasewhether domains should be included.- Specified by:
setIncludeDomainsin interfaceDatabase
-
getIncludeSequences
public final boolean getIncludeSequences()
Description copied from interface:Databasewhether sequences should be included.- Specified by:
getIncludeSequencesin interfaceDatabase
-
setIncludeSequences
public final void setIncludeSequences(boolean includeSequences)
Description copied from interface:Databasewhether sequences should be included.- Specified by:
setIncludeSequencesin interfaceDatabase
-
setIncludeCheckConstraints
public final void setIncludeCheckConstraints(boolean includeCheckConstraints)
Description copied from interface:Databasewhether check constraints should be included.- Specified by:
setIncludeCheckConstraintsin interfaceDatabase
-
getIncludeCheckConstraints
public final boolean getIncludeCheckConstraints()
Description copied from interface:Databasewhether check constraints should be included.- Specified by:
getIncludeCheckConstraintsin interfaceDatabase
-
setIncludeSystemTables
public final void setIncludeSystemTables(boolean includeSystemTables)
Description copied from interface:Databasewhether system generated tables should be included.- Specified by:
setIncludeSystemTablesin interfaceDatabase
-
getIncludeSystemTables
public final boolean getIncludeSystemTables()
Description copied from interface:Databasewhether system generated tables should be included.- Specified by:
getIncludeSystemTablesin interfaceDatabase
-
setIncludeSystemIndexes
public final void setIncludeSystemIndexes(boolean includeSystemIndexes)
Description copied from interface:Databasewhether system generated indexes should be included.- Specified by:
setIncludeSystemIndexesin interfaceDatabase
-
getIncludeSystemIndexes
public final boolean getIncludeSystemIndexes()
Description copied from interface:Databasewhether system generated indexes should be included.- Specified by:
getIncludeSystemIndexesin interfaceDatabase
-
setIncludeSystemCheckConstraints
public final void setIncludeSystemCheckConstraints(boolean includeSystemCheckConstraints)
Description copied from interface:Databasewhether system generated check constraints should be included.- Specified by:
setIncludeSystemCheckConstraintsin interfaceDatabase
-
getIncludeSystemCheckConstraints
public final boolean getIncludeSystemCheckConstraints()
Description copied from interface:Databasewhether system generated check constraints should be included.- Specified by:
getIncludeSystemCheckConstraintsin interfaceDatabase
-
setIncludeSystemSequences
public final void setIncludeSystemSequences(boolean includeSystemSequences)
Description copied from interface:Databasewhether system generated sequences should be included.- Specified by:
setIncludeSystemSequencesin interfaceDatabase
-
getIncludeSystemSequences
public final boolean getIncludeSystemSequences()
Description copied from interface:Databasewhether system generated sequences should be included.- Specified by:
getIncludeSystemSequencesin interfaceDatabase
-
setIncludeSystemUDTs
public final void setIncludeSystemUDTs(boolean includeSystemUDTs)
Description copied from interface:Databasewhether system generated UDTs should be included.- Specified by:
setIncludeSystemUDTsin interfaceDatabase
-
getIncludeSystemUDTs
public final boolean getIncludeSystemUDTs()
Description copied from interface:Databasewhether system generated UDTs should be included.- Specified by:
getIncludeSystemUDTsin interfaceDatabase
-
setIncludeIndexes
public final void setIncludeIndexes(boolean includeIndexes)
Description copied from interface:Databasewhether indexes should be included.- Specified by:
setIncludeIndexesin interfaceDatabase
-
getIncludeIndexes
public final boolean getIncludeIndexes()
Description copied from interface:Databasewhether indexes should be included.- Specified by:
getIncludeIndexesin interfaceDatabase
-
getIncludePrimaryKeys
public final boolean getIncludePrimaryKeys()
Description copied from interface:Databasewhether primary keys should be included.- Specified by:
getIncludePrimaryKeysin interfaceDatabase
-
setIncludePrimaryKeys
public final void setIncludePrimaryKeys(boolean includePrimaryKeys)
Description copied from interface:Databasewhether primary keys should be included.- Specified by:
setIncludePrimaryKeysin interfaceDatabase
-
getIncludeUniqueKeys
public final boolean getIncludeUniqueKeys()
Description copied from interface:Databasewhether unique keys should be included.- Specified by:
getIncludeUniqueKeysin interfaceDatabase
-
setIncludeUniqueKeys
public final void setIncludeUniqueKeys(boolean includeUniqueKeys)
Description copied from interface:Databasewhether unique keys should be included.- Specified by:
setIncludeUniqueKeysin interfaceDatabase
-
getIncludeForeignKeys
public final boolean getIncludeForeignKeys()
Description copied from interface:Databasewhether foreign key relationships should be included.- Specified by:
getIncludeForeignKeysin interfaceDatabase
-
setIncludeForeignKeys
public final void setIncludeForeignKeys(boolean includeForeignKeys)
Description copied from interface:Databasewhether foreign key relationships should be included.- Specified by:
setIncludeForeignKeysin interfaceDatabase
-
setRegexFlags
public final void setRegexFlags(List<RegexFlag> regexFlags)
Description copied from interface:DatabaseThe regular expression flags that should be applied when using regular expressions.- Specified by:
setRegexFlagsin interfaceDatabase
-
getRegexFlags
public final List<RegexFlag> getRegexFlags()
Description copied from interface:DatabaseThe regular expression flags that should be applied when using regular expressions.- Specified by:
getRegexFlagsin interfaceDatabase
-
setRegexMatchesPartialQualification
public final void setRegexMatchesPartialQualification(boolean regexMatchesPartialQualification)
Description copied from interface:DatabaseWhether the regular expressions matching database objects should match partially qualified names as well as fully qualified and unqualified names.- Specified by:
setRegexMatchesPartialQualificationin interfaceDatabase
-
getRegexMatchesPartialQualification
public final boolean getRegexMatchesPartialQualification()
Description copied from interface:DatabaseWhether the regular expressions matching database objects should match partially qualified names as well as fully qualified and unqualified names.- Specified by:
getRegexMatchesPartialQualificationin interfaceDatabase
-
setSqlMatchesPartialQualification
public final void setSqlMatchesPartialQualification(boolean sqlMatchesPartialQualification)
Description copied from interface:DatabaseWhether the SQL statements matching database objects should match partially qualified names as well as fully qualified and unqualified names.- Specified by:
setSqlMatchesPartialQualificationin interfaceDatabase
-
getSqlMatchesPartialQualification
public final boolean getSqlMatchesPartialQualification()
Description copied from interface:DatabaseWhether the SQL statements matching database objects should match partially qualified names as well as fully qualified and unqualified names.- Specified by:
getSqlMatchesPartialQualificationin interfaceDatabase
-
setRecordVersionFields
public void setRecordVersionFields(String[] recordVersionFields)
Description copied from interface:DatabaseTable columns matching these regular expressions will be considered as record version fields in generated code.- Specified by:
setRecordVersionFieldsin interfaceDatabase
-
getRecordVersionFields
public String[] getRecordVersionFields()
Description copied from interface:DatabaseTable columns matching these regular expressions will be considered as record version fields in generated code.- Specified by:
getRecordVersionFieldsin interfaceDatabase
-
setRecordTimestampFields
public void setRecordTimestampFields(String[] recordTimestampFields)
Description copied from interface:DatabaseTable columns matching these regular expressions will be considered as record timestamp fields in generated code.- Specified by:
setRecordTimestampFieldsin interfaceDatabase
-
getRecordTimestampFields
public String[] getRecordTimestampFields()
Description copied from interface:DatabaseTable columns matching these regular expressions will be considered as record timestamp fields in generated code.- Specified by:
getRecordTimestampFieldsin interfaceDatabase
-
setSyntheticPrimaryKeys
@Deprecated public void setSyntheticPrimaryKeys(String[] syntheticPrimaryKeys)
Deprecated.Description copied from interface:DatabaseColumns matching these regular expressions will be considered as members of synthetic primary keys in generated code.- Specified by:
setSyntheticPrimaryKeysin interfaceDatabase
-
getSyntheticPrimaryKeys
@Deprecated public String[] getSyntheticPrimaryKeys()
Deprecated.Description copied from interface:DatabaseColumns matching these regular expressions will be considered as members of synthetic primary keys in generated code.- Specified by:
getSyntheticPrimaryKeysin interfaceDatabase
-
setOverridePrimaryKeys
@Deprecated public void setOverridePrimaryKeys(String[] overridePrimaryKeys)
Deprecated.Description copied from interface:DatabaseUnique keys matching these regular expressions will be considered as primary keys in generated code.- Specified by:
setOverridePrimaryKeysin interfaceDatabase
-
getOverridePrimaryKeys
@Deprecated public String[] getOverridePrimaryKeys()
Deprecated.Description copied from interface:DatabaseUnique keys matching these regular expressions will be considered as primary keys in generated code.- Specified by:
getOverridePrimaryKeysin interfaceDatabase
-
setSyntheticIdentities
@Deprecated public void setSyntheticIdentities(String[] syntheticIdentities)
Deprecated.Description copied from interface:DatabaseColumns matching these regular expressions will be considered as identity columns in generated code.- Specified by:
setSyntheticIdentitiesin interfaceDatabase
-
getSyntheticIdentities
@Deprecated public final String[] getSyntheticIdentities()
Deprecated.Description copied from interface:DatabaseColumns matching these regular expressions will be considered as identity columns in generated code.- Specified by:
getSyntheticIdentitiesin interfaceDatabase
-
setConfiguredEnumTypes
public final void setConfiguredEnumTypes(List<EnumType> configuredEnumTypes)
Description copied from interface:DatabaseDatabase objects matching any of these field names will be generated as enum types.- Specified by:
setConfiguredEnumTypesin interfaceDatabase
-
getConfiguredEnumTypes
public final List<EnumType> getConfiguredEnumTypes()
Description copied from interface:DatabaseDatabase objects matching any of these field names will be generated as enum types.- Specified by:
getConfiguredEnumTypesin interfaceDatabase
-
setConfiguredCustomTypes
@Deprecated public final void setConfiguredCustomTypes(List<CustomType> configuredCustomTypes)
Deprecated.Description copied from interface:DatabaseDatabase objects matching any of these field names will be generated as custom types.- Specified by:
setConfiguredCustomTypesin interfaceDatabase
-
getConfiguredCustomTypes
@Deprecated public final List<CustomType> getConfiguredCustomTypes()
Deprecated.Description copied from interface:DatabaseDatabase objects matching any of these field names will be generated as custom types.- Specified by:
getConfiguredCustomTypesin interfaceDatabase
-
getConfiguredCustomType
@Deprecated public final CustomType getConfiguredCustomType(String typeName)
Deprecated.Description copied from interface:DatabaseGet a specific configured custom type by its name.- Specified by:
getConfiguredCustomTypein interfaceDatabase
-
markUsed
public void markUsed(ForcedType forcedType)
Description copied from interface:DatabaseMark a forced type as used.
-
getUnusedForcedTypes
public List<ForcedType> getUnusedForcedTypes()
Description copied from interface:DatabaseRetrieve the not-yet used forced types.- Specified by:
getUnusedForcedTypesin interfaceDatabase
-
setConfiguredForcedTypes
public final void setConfiguredForcedTypes(List<ForcedType> configuredForcedTypes)
Description copied from interface:DatabaseDatabase objects matching any of these field names will be generated as forced types.- Specified by:
setConfiguredForcedTypesin interfaceDatabase
-
getConfiguredForcedTypes
public final List<ForcedType> getConfiguredForcedTypes()
Description copied from interface:DatabaseDatabase objects matching any of these field names will be generated as forced types.- Specified by:
getConfiguredForcedTypesin interfaceDatabase
-
getLogSlowQueriesAfterSeconds
public final int getLogSlowQueriesAfterSeconds()
Description copied from interface:DatabaseLog slow queries after this amount of seconds.- Specified by:
getLogSlowQueriesAfterSecondsin interfaceDatabase
-
setLogSlowQueriesAfterSeconds
public final void setLogSlowQueriesAfterSeconds(int logSlowQueriesAfterSeconds)
Description copied from interface:DatabaseLog slow queries after this amount of seconds.- Specified by:
setLogSlowQueriesAfterSecondsin interfaceDatabase
-
getLogSlowResultsAfterSeconds
public final int getLogSlowResultsAfterSeconds()
Description copied from interface:DatabaseLog slow results after this amount of seconds.- Specified by:
getLogSlowResultsAfterSecondsin interfaceDatabase
-
setLogSlowResultsAfterSeconds
public final void setLogSlowResultsAfterSeconds(int logSlowResultsAfterSeconds)
Description copied from interface:DatabaseLog slow results after this amount of seconds.- Specified by:
setLogSlowResultsAfterSecondsin interfaceDatabase
-
getSchemaVersionProvider
public final SchemaVersionProvider getSchemaVersionProvider()
Description copied from interface:DatabaseThe database's schema version provider.- Specified by:
getSchemaVersionProviderin interfaceDatabase
-
setSchemaVersionProvider
public final void setSchemaVersionProvider(SchemaVersionProvider schemaVersionProvider)
Description copied from interface:DatabaseThe database's schema version provider.- Specified by:
setSchemaVersionProviderin interfaceDatabase
-
getCatalogVersionProvider
public final CatalogVersionProvider getCatalogVersionProvider()
Description copied from interface:DatabaseThe database's catalog version provider.- Specified by:
getCatalogVersionProviderin interfaceDatabase
-
setCatalogVersionProvider
public final void setCatalogVersionProvider(CatalogVersionProvider catalogVersionProvider)
Description copied from interface:DatabaseThe database's catalog version provider.- Specified by:
setCatalogVersionProviderin interfaceDatabase
-
getOrderProvider
public final Comparator<Definition> getOrderProvider()
Description copied from interface:DatabaseThe database's order provider.- Specified by:
getOrderProviderin interfaceDatabase
-
setOrderProvider
public final void setOrderProvider(Comparator<Definition> provider)
Description copied from interface:DatabaseThe database's order provider.- Specified by:
setOrderProviderin interfaceDatabase
-
setSupportsUnsignedTypes
public final void setSupportsUnsignedTypes(boolean supportsUnsignedTypes)
Description copied from interface:DatabaseWhether this database supports unsigned types.- Specified by:
setSupportsUnsignedTypesin interfaceDatabase
-
supportsUnsignedTypes
public final boolean supportsUnsignedTypes()
Description copied from interface:DatabaseWhether this database supports unsigned types.- Specified by:
supportsUnsignedTypesin interfaceDatabase
-
setIntegerDisplayWidths
public final void setIntegerDisplayWidths(boolean integerDisplayWidths)
Description copied from interface:DatabaseWhether this database includes integer display widths in metadata, where applicable.- Specified by:
setIntegerDisplayWidthsin interfaceDatabase
-
integerDisplayWidths
public final boolean integerDisplayWidths()
Description copied from interface:DatabaseWhether this database includes integer display widths in metadata, where applicable.- Specified by:
integerDisplayWidthsin interfaceDatabase
-
setIgnoreProcedureReturnValues
public final void setIgnoreProcedureReturnValues(boolean ignoreProcedureReturnValues)
Description copied from interface:DatabaseWhether this database should ignore procedure return values.- Specified by:
setIgnoreProcedureReturnValuesin interfaceDatabase
-
ignoreProcedureReturnValues
public final boolean ignoreProcedureReturnValues()
Description copied from interface:DatabaseWhether this database should ignore procedure return values.- Specified by:
ignoreProcedureReturnValuesin interfaceDatabase
-
setDateAsTimestamp
public final void setDateAsTimestamp(boolean dateAsTimestamp)
Description copied from interface:DatabaseWhether DATE columns should be treated as TIMESTAMP columns.- Specified by:
setDateAsTimestampin interfaceDatabase
-
dateAsTimestamp
public final boolean dateAsTimestamp()
Description copied from interface:DatabaseWhether DATE columns should be treated as TIMESTAMP columns.- Specified by:
dateAsTimestampin interfaceDatabase
-
setJavaTimeTypes
public final void setJavaTimeTypes(boolean javaTimeTypes)
Description copied from interface:DatabaseWhetherjava.timetypes are used, as opposed tojava.sqltypes.- Specified by:
setJavaTimeTypesin interfaceDatabase
-
javaTimeTypes
public final boolean javaTimeTypes()
Description copied from interface:DatabaseWhetherjava.timetypes are used, as opposed tojava.sqltypes.- Specified by:
javaTimeTypesin interfaceDatabase
-
setIncludeRelations
public final void setIncludeRelations(boolean includeRelations)
Description copied from interface:Database[#3559] Whether relations (i.e. constraints) should be included in this database.- Specified by:
setIncludeRelationsin interfaceDatabase
-
includeRelations
public final boolean includeRelations()
Description copied from interface:Database[#3559] Whether relations (i.e. constraints) should be included in this database.- Specified by:
includeRelationsin interfaceDatabase
-
setForceIntegerTypesOnZeroScaleDecimals
public void setForceIntegerTypesOnZeroScaleDecimals(boolean forceIntegerTypesOnZeroScaleDecimals)
Description copied from interface:DatabaseWhether zero-scale decimal types should be treated as their most appropriate, corresponding integer type.- Specified by:
setForceIntegerTypesOnZeroScaleDecimalsin interfaceDatabase
-
getForceIntegerTypesOnZeroScaleDecimals
public boolean getForceIntegerTypesOnZeroScaleDecimals()
Description copied from interface:DatabaseWhether zero-scale decimal types should be treated as their most appropriate, corresponding integer type.- Specified by:
getForceIntegerTypesOnZeroScaleDecimalsin interfaceDatabase
-
setTableValuedFunctions
public final void setTableValuedFunctions(boolean tableValuedFunctions)
Description copied from interface:Database[#4838] Whether table-valued functions should be reported as tables.- Specified by:
setTableValuedFunctionsin interfaceDatabase
-
tableValuedFunctions
public final boolean tableValuedFunctions()
Description copied from interface:Database[#4838] Whether table-valued functions should be reported as tables.- Specified by:
tableValuedFunctionsin interfaceDatabase
-
getSequences
public final List<SequenceDefinition> getSequences()
Description copied from interface:DatabaseThe sequences contained in this database.- Specified by:
getSequencesin interfaceDatabase
-
getSequences
public final List<SequenceDefinition> getSequences(SchemaDefinition schema)
Description copied from interface:DatabaseThe sequences contained in this database.- Specified by:
getSequencesin interfaceDatabase
-
getIdentities
public final List<IdentityDefinition> getIdentities(SchemaDefinition schema)
Description copied from interface:DatabaseThe identities contained in this database.- Specified by:
getIdentitiesin interfaceDatabase
-
getUniqueKeys
public final List<UniqueKeyDefinition> getUniqueKeys()
Description copied from interface:DatabaseThe unique keys contained in this database.- Specified by:
getUniqueKeysin interfaceDatabase
-
getPrimaryKeys
public final List<UniqueKeyDefinition> getPrimaryKeys(SchemaDefinition schema)
Description copied from interface:DatabaseThe primary keys contained in this database.- Specified by:
getPrimaryKeysin interfaceDatabase
-
getPrimaryKeys
public final List<UniqueKeyDefinition> getPrimaryKeys()
Description copied from interface:DatabaseThe primary keys contained in this database.- Specified by:
getPrimaryKeysin interfaceDatabase
-
getUniqueKeys
public final List<UniqueKeyDefinition> getUniqueKeys(SchemaDefinition schema)
Description copied from interface:DatabaseThe unique keys contained in this database.- Specified by:
getUniqueKeysin interfaceDatabase
-
getKeys
public final List<UniqueKeyDefinition> getKeys()
Description copied from interface:DatabaseThe unique and primary keys contained in this database.
-
getKeys
public final List<UniqueKeyDefinition> getKeys(SchemaDefinition schema)
Description copied from interface:DatabaseThe unique and primary keys contained in this database.
-
getForeignKeys
public final List<ForeignKeyDefinition> getForeignKeys()
Description copied from interface:DatabaseThe foreign keys contained in this database.- Specified by:
getForeignKeysin interfaceDatabase
-
getForeignKeys
public final List<ForeignKeyDefinition> getForeignKeys(SchemaDefinition schema)
Description copied from interface:DatabaseThe foreign keys contained in this database.- Specified by:
getForeignKeysin interfaceDatabase
-
getCheckConstraints
public final List<CheckConstraintDefinition> getCheckConstraints(SchemaDefinition schema)
Description copied from interface:DatabaseThe check constraints contained in this database.- Specified by:
getCheckConstraintsin interfaceDatabase
-
getTables
public final List<TableDefinition> getTables()
Description copied from interface:DatabaseThe tables contained in this database.
-
getTables
public final List<TableDefinition> getTables(SchemaDefinition schema)
Description copied from interface:DatabaseThe tables contained in this database.
-
getTable
public final TableDefinition getTable(SchemaDefinition schema, String name)
Description copied from interface:DatabaseGet a table in this database by name.
-
getTable
public final TableDefinition getTable(SchemaDefinition schema, String name, boolean ignoreCase)
Description copied from interface:DatabaseGet a table in this database by name.
-
getTable
public final TableDefinition getTable(SchemaDefinition schema, Name name)
Description copied from interface:DatabaseGet a table in this database by name.
-
getTable
public final TableDefinition getTable(SchemaDefinition schema, Name name, boolean ignoreCase)
Description copied from interface:DatabaseGet a table in this database by name.
-
getEnums
public final List<EnumDefinition> getEnums(SchemaDefinition schema)
Description copied from interface:DatabaseThe enum UDTs defined in this database.
-
getConfiguredForcedType
public final ForcedType getConfiguredForcedType(Definition definition)
Description copied from interface:DatabaseGet the configured forced type object for any givenDefinition, ornullif noForcedTypematches the definition.- Specified by:
getConfiguredForcedTypein interfaceDatabase
-
getConfiguredForcedType
public final ForcedType getConfiguredForcedType(Definition definition, DataTypeDefinition definedType)
Description copied from interface:DatabaseGet the configured forced type object for any givenDefinition, ornullif noForcedTypematches the definition.- Specified by:
getConfiguredForcedTypein interfaceDatabase
-
markUsed
public final void markUsed(EmbeddableDefinitionType embeddable)
Description copied from interface:DatabaseMark an embeddable as used.
-
getUnusedEmbeddables
public final List<EmbeddableDefinitionType> getUnusedEmbeddables()
Description copied from interface:DatabaseRetrieve the not-yet used embeddables.- Specified by:
getUnusedEmbeddablesin interfaceDatabase
-
setConfiguredEmbeddables
public final void setConfiguredEmbeddables(List<EmbeddableDefinitionType> configuredEmbeddables)
Description copied from interface:DatabaseConfigure the embeddable types.- Specified by:
setConfiguredEmbeddablesin interfaceDatabase
-
getConfiguredEmbeddables
public final List<EmbeddableDefinitionType> getConfiguredEmbeddables()
Description copied from interface:DatabaseGet the configured embeddable type definitions for any givenDefinition.- Specified by:
getConfiguredEmbeddablesin interfaceDatabase
-
embeddablePrimaryKeys
public String embeddablePrimaryKeys()
Description copied from interface:DatabaseA regular expression matching primary keys for which embeddable types should be generated.- Specified by:
embeddablePrimaryKeysin interfaceDatabase
-
setEmbeddablePrimaryKeys
public void setEmbeddablePrimaryKeys(String embeddablePrimaryKeys)
Description copied from interface:DatabaseA regular expression matching primary keys for which embeddable types should be generated.- Specified by:
setEmbeddablePrimaryKeysin interfaceDatabase
-
embeddableUniqueKeys
public String embeddableUniqueKeys()
Description copied from interface:DatabaseA regular expression matching unique keys for which embeddable types should be generated.- Specified by:
embeddableUniqueKeysin interfaceDatabase
-
setEmbeddableUniqueKeys
public void setEmbeddableUniqueKeys(String embeddableUniqueKeys)
Description copied from interface:DatabaseA regular expression matching unique keys for which embeddable types should be generated.- Specified by:
setEmbeddableUniqueKeysin interfaceDatabase
-
embeddableDomains
public String embeddableDomains()
Description copied from interface:DatabaseA regular expression matching domain type definitions for which embeddable types should be generated.- Specified by:
embeddableDomainsin interfaceDatabase
-
setEmbeddableDomains
public void setEmbeddableDomains(String embeddableDomains)
Description copied from interface:DatabaseA regular expression matching domain type definitions for which embeddable types should be generated.- Specified by:
setEmbeddableDomainsin interfaceDatabase
-
getEmbeddables
public final List<EmbeddableDefinition> getEmbeddables()
Description copied from interface:DatabaseGet all embeddables.- Specified by:
getEmbeddablesin interfaceDatabase
-
getEmbeddables
public final List<EmbeddableDefinition> getEmbeddables(SchemaDefinition schema)
Description copied from interface:DatabaseGet all embeddables for a given defining schema.- Specified by:
getEmbeddablesin interfaceDatabase
-
getEmbeddables
public final List<EmbeddableDefinition> getEmbeddables(TableDefinition table)
Description copied from interface:DatabaseGet all embeddables for a given defining table.- Specified by:
getEmbeddablesin interfaceDatabase
-
getEmbeddablesByReferencingTable
public final List<EmbeddableDefinition> getEmbeddablesByReferencingTable(TableDefinition table)
Description copied from interface:DatabaseGet all embeddables for a given referencing table.- Specified by:
getEmbeddablesByReferencingTablein interfaceDatabase
-
getEnum
public final EnumDefinition getEnum(SchemaDefinition schema, String name)
Description copied from interface:DatabaseGet an enum UDT defined in this database by name.
-
getEnum
public final EnumDefinition getEnum(SchemaDefinition schema, String name, boolean ignoreCase)
Description copied from interface:DatabaseGet an enum UDT defined in this database by name.
-
getEnum
public final EnumDefinition getEnum(SchemaDefinition schema, Name name)
Description copied from interface:DatabaseGet an enum UDT defined in this database by name.
-
getEnum
public final EnumDefinition getEnum(SchemaDefinition schema, Name name, boolean ignoreCase)
Description copied from interface:DatabaseGet an enum UDT defined in this database by name.
-
getDomains
public final List<DomainDefinition> getDomains()
Description copied from interface:DatabaseThe domain UDTs defined in this database.- Specified by:
getDomainsin interfaceDatabase
-
getDomains
public final List<DomainDefinition> getDomains(SchemaDefinition schema)
Description copied from interface:DatabaseThe domain UDTs defined in this database.- Specified by:
getDomainsin interfaceDatabase
-
getDomain
public final DomainDefinition getDomain(SchemaDefinition schema, String name)
Description copied from interface:DatabaseGet an domain UDT defined in this database by name.
-
getDomain
public final DomainDefinition getDomain(SchemaDefinition schema, String name, boolean ignoreCase)
Description copied from interface:DatabaseGet an domain UDT defined in this database by name.
-
getDomain
public final DomainDefinition getDomain(SchemaDefinition schema, Name name)
Description copied from interface:DatabaseGet an domain UDT defined in this database by name.
-
getDomain
public final DomainDefinition getDomain(SchemaDefinition schema, Name name, boolean ignoreCase)
Description copied from interface:DatabaseGet an domain UDT defined in this database by name.
-
getArrays
public final List<ArrayDefinition> getArrays(SchemaDefinition schema)
Description copied from interface:DatabaseThe Arrays defined in this database.
-
getArray
public final ArrayDefinition getArray(SchemaDefinition schema, String name)
Description copied from interface:DatabaseGet a ARRAY defined in this database by name.
-
getArray
public final ArrayDefinition getArray(SchemaDefinition schema, String name, boolean ignoreCase)
Description copied from interface:DatabaseGet a ARRAY defined in this database by name.
-
getArray
public final ArrayDefinition getArray(SchemaDefinition schema, Name name)
Description copied from interface:DatabaseGet a ARRAY defined in this database by name.
-
getArray
public final ArrayDefinition getArray(SchemaDefinition schema, Name name, boolean ignoreCase)
Description copied from interface:DatabaseGet a ARRAY defined in this database by name.
-
getUDTs
public final List<UDTDefinition> getUDTs()
Description copied from interface:DatabaseThe UDTs defined in this database.
-
getUDTs
public final List<UDTDefinition> getUDTs(SchemaDefinition schema)
Description copied from interface:DatabaseThe UDTs defined in this database.
-
getUDT
public final UDTDefinition getUDT(SchemaDefinition schema, String name)
Description copied from interface:DatabaseGet a UDT defined in this database by name.
-
getUDT
public final UDTDefinition getUDT(SchemaDefinition schema, String name, boolean ignoreCase)
Description copied from interface:DatabaseGet a UDT defined in this database by name.
-
getUDT
public final UDTDefinition getUDT(SchemaDefinition schema, Name name)
Description copied from interface:DatabaseGet a UDT defined in this database by name.
-
getUDT
public final UDTDefinition getUDT(SchemaDefinition schema, Name name, boolean ignoreCase)
Description copied from interface:DatabaseGet a UDT defined in this database by name.
-
getUDTs
public final List<UDTDefinition> getUDTs(PackageDefinition pkg)
Description copied from interface:DatabaseThe UDTs defined in this database.
-
getRelations
public final Relations getRelations()
Description copied from interface:DatabaseRetrieve the schema's primary key / foreign key relations.- Specified by:
getRelationsin interfaceDatabase
-
getIndexes
public final List<IndexDefinition> getIndexes(SchemaDefinition schema)
Description copied from interface:DatabaseThe indexes contained in this database.- Specified by:
getIndexesin interfaceDatabase
-
getIndexes
public final List<IndexDefinition> getIndexes(TableDefinition table)
Description copied from interface:DatabaseThe indexes contained in this database.- Specified by:
getIndexesin interfaceDatabase
-
getRoutines
public final List<RoutineDefinition> getRoutines(SchemaDefinition schema)
Description copied from interface:DatabaseThe stored routines (procedures and functions) contained in this database.- Specified by:
getRoutinesin interfaceDatabase
-
getPackages
public final List<PackageDefinition> getPackages(SchemaDefinition schema)
Description copied from interface:DatabaseThe packages contained in this database.- Specified by:
getPackagesin interfaceDatabase
-
getPackage
public PackageDefinition getPackage(SchemaDefinition schema, String inputName)
Description copied from interface:DatabaseGet a package defined in this database by name.- Specified by:
getPackagein interfaceDatabase
-
getDefinition
protected static final <D extends Definition> D getDefinition(List<D> definitions, String name, boolean ignoreCase)
-
getDefinition
protected static final <D extends Definition> D getDefinition(List<D> definitions, Name name, boolean ignoreCase)
-
filterSchema
protected final <T extends Definition> List<T> filterSchema(List<T> definitions, SchemaDefinition schema, Map<SchemaDefinition,List<T>> cache)
-
filterSchema
protected final <T extends Definition> List<T> filterSchema(List<T> definitions, SchemaDefinition schema)
-
filterPackage
protected final <T extends Definition> List<T> filterPackage(List<T> definitions, PackageDefinition pkg, Map<PackageDefinition,List<T>> cache)
-
filterPackage
protected final <T extends Definition> List<T> filterPackage(List<T> definitions, PackageDefinition pkg)
-
filterTable
protected final <T extends TableElementDefinition> List<T> filterTable(List<T> definitions, TableDefinition table, Map<TableDefinition,List<T>> cache)
-
filterTable
protected final <T extends TableElementDefinition> List<T> filterTable(List<T> definitions, TableDefinition table)
-
filterExcludeInclude
public final <T extends Definition> List<T> filterExcludeInclude(List<T> definitions)
Description copied from interface:DatabaseFilter a list of definitions according to the exclude / include / and filter settings of this database.- Specified by:
filterExcludeIncludein interfaceDatabase
-
sort
public final <T extends Definition> List<T> sort(List<T> definitions)
Description copied from interface:DatabaseSort a list of definitions according to theDatabase.getOrderProvider()defined in this database.
-
getIncluded
public final List<Definition> getIncluded()
Description copied from interface:DatabaseRetrieve all included objects.- Specified by:
getIncludedin interfaceDatabase
-
getExcluded
public final List<Definition> getExcluded()
Description copied from interface:DatabaseRetrieve all excluded objects.- Specified by:
getExcludedin interfaceDatabase
-
getAll
public final List<Definition> getAll()
Description copied from interface:DatabaseRetrieve all objects.
-
filter
protected final <T extends Definition> List<T> filter(List<T> definitions, String include)
-
filter
protected final <T extends Definition> List<T> filter(List<T> definitions, List<String> include)
-
filterExcludeInclude
protected final <T extends Definition> List<T> filterExcludeInclude(List<T> definitions, String e, String i)
-
filterExcludeInclude
protected final <T extends Definition> List<T> filterExcludeInclude(List<T> definitions, String[] e, String[] i, List<Database.Filter> f)
-
getRelations0
protected final Relations getRelations0()
Retrieve ALL relations from the database.
-
isArrayType
public final boolean isArrayType(String dataType)
Description copied from interface:DatabaseCheck whether a type is an array type.- Specified by:
isArrayTypein interfaceDatabase
-
fetchedSize
protected static final String fetchedSize(Collection<?> fetched, Collection<?> included)
-
setConfiguredComments
public void setConfiguredComments(List<CommentType> configuredComments)
Description copied from interface:DatabaseConfigure the comments.- Specified by:
setConfiguredCommentsin interfaceDatabase
-
getConfiguredComments
public List<CommentType> getConfiguredComments()
Description copied from interface:DatabaseGet the configured comments.- Specified by:
getConfiguredCommentsin interfaceDatabase
-
markUsed
public void markUsed(CommentType object)
Description copied from interface:DatabaseMark a comment as used.
-
getUnusedComments
public List<CommentType> getUnusedComments()
Description copied from interface:DatabaseRetrieve the not-yet used comments.- Specified by:
getUnusedCommentsin interfaceDatabase
-
setConfiguredSyntheticObjects
public void setConfiguredSyntheticObjects(SyntheticObjectsType configuredSyntheticObjects)
Description copied from interface:DatabaseConfigure the synthetic objects.- Specified by:
setConfiguredSyntheticObjectsin interfaceDatabase
-
getConfiguredSyntheticIdentities
public List<SyntheticIdentityType> getConfiguredSyntheticIdentities()
Description copied from interface:DatabaseGet the configured synthetic identities.- Specified by:
getConfiguredSyntheticIdentitiesin interfaceDatabase
-
getConfiguredSyntheticPrimaryKeys
public List<SyntheticPrimaryKeyType> getConfiguredSyntheticPrimaryKeys()
Description copied from interface:DatabaseGet the configured synthetic primary keys.- Specified by:
getConfiguredSyntheticPrimaryKeysin interfaceDatabase
-
getConfiguredSyntheticUniqueKeys
public List<SyntheticUniqueKeyType> getConfiguredSyntheticUniqueKeys()
Description copied from interface:DatabaseGet the configured synthetic unique keys.- Specified by:
getConfiguredSyntheticUniqueKeysin interfaceDatabase
-
getConfiguredSyntheticForeignKeys
public List<SyntheticForeignKeyType> getConfiguredSyntheticForeignKeys()
Description copied from interface:DatabaseGet the configured synthetic foreign keys.- Specified by:
getConfiguredSyntheticForeignKeysin interfaceDatabase
-
getConfiguredSyntheticViews
public List<SyntheticViewType> getConfiguredSyntheticViews()
Description copied from interface:DatabaseGet the configured synthetic views.- Specified by:
getConfiguredSyntheticViewsin interfaceDatabase
-
markUsed
public void markUsed(SyntheticIdentityType identity)
Description copied from interface:DatabaseMark a synthetic identity as used.
-
markUsed
public void markUsed(SyntheticPrimaryKeyType primaryKey)
Description copied from interface:DatabaseMark a synthetic primary key as used.
-
markUsed
public void markUsed(SyntheticUniqueKeyType uniqueKey)
Description copied from interface:DatabaseMark a synthetic unique key as used.
-
markUsed
public void markUsed(SyntheticForeignKeyType foreignKey)
Description copied from interface:DatabaseMark a synthetic foreign key as used.
-
markUsed
public void markUsed(SyntheticViewType view)
Description copied from interface:DatabaseMark a synthetic view as used.
-
getUnusedSyntheticIdentities
public List<SyntheticIdentityType> getUnusedSyntheticIdentities()
Description copied from interface:DatabaseRetrieve the not-yet used synthetic identities.- Specified by:
getUnusedSyntheticIdentitiesin interfaceDatabase
-
getUnusedSyntheticPrimaryKeys
public List<SyntheticPrimaryKeyType> getUnusedSyntheticPrimaryKeys()
Description copied from interface:DatabaseRetrieve the not-yet used synthetic primary keys.- Specified by:
getUnusedSyntheticPrimaryKeysin interfaceDatabase
-
getUnusedSyntheticUniqueKeys
public List<SyntheticUniqueKeyType> getUnusedSyntheticUniqueKeys()
Description copied from interface:DatabaseRetrieve the not-yet used synthetic unique keys.- Specified by:
getUnusedSyntheticUniqueKeysin interfaceDatabase
-
getUnusedSyntheticForeignKeys
public List<SyntheticForeignKeyType> getUnusedSyntheticForeignKeys()
Description copied from interface:DatabaseRetrieve the not-yet used synthetic foreign keys.- Specified by:
getUnusedSyntheticForeignKeysin interfaceDatabase
-
getUnusedSyntheticViews
public List<SyntheticViewType> getUnusedSyntheticViews()
Description copied from interface:DatabaseRetrieve the not-yet used synthetic views.- Specified by:
getUnusedSyntheticViewsin interfaceDatabase
-
close
public void close()
Description copied from interface:DatabaseRelease any resources that this Database may have allocated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceDatabase
-
create0
protected abstract DSLContext create0()
Create a new Factory
-
getSources0
protected Map<Definition,String> getSources0() throws SQLException
Retrieve ALL source code from the database.- Throws:
SQLException
-
getIndexes0
protected List<IndexDefinition> getIndexes0() throws SQLException
Retrieve ALL indexes from the database- Throws:
SQLException
-
loadPrimaryKeys
protected abstract void loadPrimaryKeys(DefaultRelations r) throws SQLException
Retrieve primary keys and store them to relations- Throws:
SQLException
-
loadUniqueKeys
protected abstract void loadUniqueKeys(DefaultRelations r) throws SQLException
Retrieve non-primary unique keys and store them to relations- Throws:
SQLException
-
loadForeignKeys
protected abstract void loadForeignKeys(DefaultRelations r) throws SQLException
Retrieve foreign keys and store them to relations. Unique keys are already loaded.- Throws:
SQLException
-
loadCheckConstraints
protected abstract void loadCheckConstraints(DefaultRelations r) throws SQLException
RetrieveCHECKconstraints and store them to relations.- Throws:
SQLException
-
getCatalogs0
protected abstract List<CatalogDefinition> getCatalogs0() throws SQLException
Retrieve ALL catalogs from the database. This will be filtered ingetCatalogs()- Throws:
SQLException
-
getSchemata0
protected abstract List<SchemaDefinition> getSchemata0() throws SQLException
Retrieve ALL schemata from the database. This will be filtered ingetSchemata()- Throws:
SQLException
-
getSequences0
protected abstract List<SequenceDefinition> getSequences0() throws SQLException
Retrieve ALL sequences from the database. This will be filtered ingetTables(SchemaDefinition)- Throws:
SQLException
-
getTables0
protected abstract List<TableDefinition> getTables0() throws SQLException
Retrieve ALL tables from the database. This will be filtered ingetTables(SchemaDefinition)- Throws:
SQLException
-
getRoutines0
protected abstract List<RoutineDefinition> getRoutines0() throws SQLException
Retrieve ALL stored routines (functions and procedures) from the database. This will be filtered ingetRoutines(SchemaDefinition)- Throws:
SQLException
-
getPackages0
protected abstract List<PackageDefinition> getPackages0() throws SQLException
Retrieve ALL packages from the database. This will be filtered ingetPackages(SchemaDefinition)- Throws:
SQLException
-
getEnums0
protected abstract List<EnumDefinition> getEnums0() throws SQLException
Retrieve ALL enum UDTs from the database. This will be filtered ingetEnums(SchemaDefinition)- Throws:
SQLException
-
getDomains0
protected abstract List<DomainDefinition> getDomains0() throws SQLException
Retrieve ALL domain UDTs from the database. This will be filtered ingetDomains(SchemaDefinition)- Throws:
SQLException
-
getUDTs0
protected abstract List<UDTDefinition> getUDTs0() throws SQLException
Retrieve ALL UDTs from the database. This will be filtered ingetEnums(SchemaDefinition)- Throws:
SQLException
-
getArrays0
protected abstract List<ArrayDefinition> getArrays0() throws SQLException
Retrieve ALL ARRAYs from the database. This will be filtered ingetArrays(SchemaDefinition)- Throws:
SQLException
-
getDataTypeForMAX_VAL
protected final DataTypeDefinition getDataTypeForMAX_VAL(SchemaDefinition schema, BigInteger value)
Get the data type considering a known max value
-
-