- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
ResultQueryDatabase
- All Known Implementing Classes:
AbstractDatabase,AbstractMetaDatabase,CUBRIDDatabase,DerbyDatabase,FirebirdDatabase,H2Database,HSQLDBDatabase,IgniteDatabase,JDBCDatabase,MariaDBDatabase,MySQLDatabase,PostgresDatabase,SQLiteDatabase,XMLDatabase,YugabyteDBDatabase
- Author:
- Lukas Eder
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA filter type that can be used withaddFilter(Filter) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFilter(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.create()Create the factory for this database.booleanWhether DATE columns should be treated as TIMESTAMP columns.A regular expression matching domain type definitions for which embeddable types should be generated.A regular expression matching primary keys for which embeddable types should be generated.A regular expression matching unique keys for which embeddable types should be generated.booleanCheck for the existence of several tables in the dictionary views.booleanexistAll(TableField<?, ?>... fields) Check for the existence of several table fields in the dictionary views.booleanCheck 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.<D extends Definition>
List<D>filterExcludeInclude(List<D> definitions) Filter a list of definitions according to the exclude / include / and filter settings of this database.getAll()Retrieve all objects.getArray(SchemaDefinition schema, String name) Get a ARRAY defined in this database by name.getArray(SchemaDefinition schema, String name, boolean ignoreCase) Get a ARRAY defined in this database by name.getArray(SchemaDefinition schema, Name name) Get a ARRAY defined in this database by name.getArray(SchemaDefinition schema, Name name, boolean ignoreCase) Get a ARRAY defined in this database by name.getArrays(SchemaDefinition schema) The Arrays defined in this database.The basedir that can be used by file based implementations to resolve relative paths.getCatalog(String name) Get a catalog defined in this database by name.The catalogs generated from this database.The database's catalog version provider.getCheckConstraints(SchemaDefinition schema) The check constraints contained in this database.Get the configured comments.Deprecated.Deprecated.- 3.10.0 - [#5750] - UsegetConfiguredForcedTypes()only.Get the configured embeddable type definitions for any givenDefinition.Database objects matching any of these field names will be generated as enum types.getConfiguredForcedType(Definition definition) Get the configured forced type object for any givenDefinition, ornullif noForcedTypematches the definition.getConfiguredForcedType(Definition definition, DataTypeDefinition definedType) Get the configured forced type object for any givenDefinition, ornullif noForcedTypematches the definition.Database objects matching any of these field names will be generated as forced types.Get the configured synthetic columns.Get the configured synthetic DAOs.Get the configured synthetic foreign keys.Get the configured synthetic identities.Get the configured synthetic primary keys.Get the configured synthetic readonly columns.Get the configured synthetic readonly rowids.Get the configured synthetic unique keys.Get the configured synthetic views.The database connection.Get the dialect for this database.getDomain(SchemaDefinition schema, String name) Get an domain UDT defined in this database by name.getDomain(SchemaDefinition schema, String name, boolean ignoreCase) Get an domain UDT defined in this database by name.getDomain(SchemaDefinition schema, Name name) Get an domain UDT defined in this database by name.getDomain(SchemaDefinition schema, Name name, boolean ignoreCase) Get an domain UDT defined in this database by name.The domain UDTs defined in this database.getDomains(SchemaDefinition schema) The domain UDTs defined in this database.Get all embeddables.getEmbeddables(SchemaDefinition schema) Get all embeddables for a given defining schema.getEmbeddables(TableDefinition table) Get all embeddables for a given defining table.Get all embeddables for a given referencing table.getEnum(SchemaDefinition schema, String name) Get an enum UDT defined in this database by name.getEnum(SchemaDefinition schema, String name, boolean ignoreCase) Get an enum UDT defined in this database by name.getEnum(SchemaDefinition schema, Name name) Get an enum UDT defined in this database by name.getEnum(SchemaDefinition schema, Name name, boolean ignoreCase) Get an enum UDT defined in this database by name.getEnums(SchemaDefinition schema) The enum UDTs defined in this database.Retrieve all excluded objects.String[]Database objects matching any of these regular expressions will not be generated.Database objects matching any of the regular expressions produced by this SQL query will not be generated, in addition to the ones specified bygetExcludes().[#3488] The filters that are applied in addition to include / exclude.booleanWhether some additional forced types for built in data type extensions, such as the ones fromjooq-codegen-postgresshould be added.booleanWhether some additional forced types forXMLSchemaCollectionDefinitiontypes should be created automatically for columns that have non-ambiguous references to anXMLTypeDefinition.booleanWhether zero-scale decimal types should be treated as their most appropriate, corresponding integer type.The foreign keys contained in this database.getForeignKeys(SchemaDefinition schema) The foreign keys contained in this database.getIdentities(SchemaDefinition schema) The identities contained in this database.booleanwhether check constraints should be included.Retrieve all included objects.booleanwhether domains should be included.booleanWhether embeddable types should be included.booleanIndicate whether include / exclude regular expression shall also match database columns.booleanIndicate whether include / exclude regular expression shall also match package routines.booleanwhether foreign key relationships should be included.booleanwhether indexes should be included.booleanWhether invisible columns should be included.booleanwhether package constants should be included.booleanwhether package routines should be included.booleanwhether packages should be included.booleanwhether package UDTs should be included.booleanwhether primary keys should be included.booleanwhether routines should be included.String[]Only database objects matching any of these regular expressions will be generated.booleanwhether sequences should be included.Only database objects matching any of the regular expressions produced by this SQL query will be generated, in addition to the ones specified bygetIncludes().booleanwhether system generated check constraints should be included.booleanwhether system generated indexes should be included.booleanwhether system generated sequences should be included.booleanwhether system generated tables should be included.booleanwhether system generated UDTs should be included.booleanWhether tables (and views) should be included.booleanwhether trigger routines should be included.booleanwhether user defined types should be included.booleanwhether unique keys should be included.booleanwhether XML schema collections should be included.getIndexes(SchemaDefinition schema) The indexes contained in this database.getIndexes(TableDefinition schema) The indexes contained in this database.The input catalogs are the catalogs that jooq-meta is reading data from.The input schemata are the schemata from all catalogs that jooq-meta is reading data from.getInputSchemata(String catalog) The input schemata are the schemata from a given catalog that jooq-meta is reading data from.getInputSchemata(CatalogDefinition catalog) The input schemata are the schemata from a given catalog that jooq-meta is reading data from.getKeys()The unique and primary keys contained in this database.getKeys(SchemaDefinition schema) The unique and primary keys contained in this database.intLog slow queries after this amount of seconds.intLog slow results after this amount of seconds.The database's order provider.getOutputCatalog(String inputCatalog) Deprecated.- 2.0.5 - This will be implemented in eachDefinition.getOutputName()getOutputSchema(String inputSchema) Deprecated.- 2.0.5 - This will be implemented in eachDefinition.getOutputName()getOutputSchema(String inputCatalog, String inputSchema) Deprecated.- 2.0.5 - This will be implemented in eachDefinition.getOutputName()String[]Deprecated.- 3.14.0 - [#10588] - UsegetConfiguredSyntheticPrimaryKeys()instead.getPackage(SchemaDefinition schema, String inputName) Get a package defined in this database by name.getPackages(SchemaDefinition schema) The packages contained in this database.The primary keys contained in this database.getPrimaryKeys(SchemaDefinition schema) The primary keys contained in this database.Database properties.String[]Table columns matching these regular expressions will be considered as record timestamp fields in generated code.String[]Table columns matching these regular expressions will be considered as record version fields in generated code.The regular expression flags that should be applied when using regular expressions.booleanWhether the regular expressions matching database objects should match partially qualified names as well as fully qualified and unqualified names.Retrieve the schema's primary key / foreign key relations.getRoutines(SchemaDefinition schema) The stored routines (procedures and functions) contained in this database.Get a schema defined in this database by name.The schemata generated from this database.getSchemata(CatalogDefinition catalog) The schemata generated from this database and a given catalog.The database's schema version provider.The sequences contained in this database.getSequences(SchemaDefinition schema) The sequences contained in this database.Get the sources for all objects that offer sources.booleanWhether the SQL statements matching database objects should match partially qualified names as well as fully qualified and unqualified names.String[]Deprecated.- 3.14.0 - [#10588] - UsegetConfiguredSyntheticIdentities()instead.String[]Deprecated.- 3.14.0 - [#10588] - UsegetConfiguredSyntheticPrimaryKeys()instead.getTable(SchemaDefinition schema, String name) Get a table in this database by name.getTable(SchemaDefinition schema, String name, boolean ignoreCase) Get a table in this database by name.getTable(SchemaDefinition schema, Name name) Get a table in this database by name.getTable(SchemaDefinition schema, Name name, boolean ignoreCase) Get a table in this database by name.The tables contained in this database.getTables(SchemaDefinition schema) The tables contained in this database.getUDT(SchemaDefinition schema, String name) Get a UDT defined in this database by name.getUDT(SchemaDefinition schema, String name, boolean ignoreCase) Get a UDT defined in this database by name.getUDT(SchemaDefinition schema, Name name) Get a UDT defined in this database by name.getUDT(SchemaDefinition schema, Name name, boolean ignoreCase) Get a UDT defined in this database by name.getUDTs()The UDTs defined in this database.getUDTs(PackageDefinition pkg) The UDTs defined in this database.getUDTs(SchemaDefinition schema) The UDTs defined in this database.The unique keys contained in this database.getUniqueKeys(SchemaDefinition schema) The unique keys contained in this database.Retrieve the not-yet used comments.Retrieve the not-yet used embeddables.Retrieve the not-yet used forced types.Retrieve the not-yet used synthetic columns.Retrieve the not-yet used synthetic foreign keys.Retrieve the not-yet used synthetic identities.Retrieve the not-yet used synthetic primary keys.Retrieve the not-yet used synthetic readonly columns.Retrieve the not-yet used synthetic readonly rowids.Retrieve the not-yet used synthetic unique keys.Retrieve the not-yet used synthetic views.getXMLSchemaCollection(SchemaDefinition schema, String name) The XML schema collection generated from this database by nameThe XML schema collections generated from this database.The XML schema collections generated from this database.booleanWhether this database should ignore procedure return values.boolean[#3559] Whether relations (i.e.booleanWhether this database includes integer display widths in metadata, where applicable.booleanisArrayType(String dataType) Check whether a type is an array type.booleanWhetherjava.timetypes are used, as opposed tojava.sqltypes.voidmarkUsed(CommentType comment) Mark a comment as used.voidmarkUsed(EmbeddableDefinitionType embeddable) Mark an embeddable as used.voidmarkUsed(ForcedType forcedType) Mark a forced type as used.voidmarkUsed(SyntheticColumnType readonlyColumn) Mark a synthetic column 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(SyntheticReadonlyColumnType readonlyColumn) Mark a synthetic readonly column as used.voidmarkUsed(SyntheticReadonlyRowidType readonlyRowid) Mark a synthetic readonly rowids as used.voidmarkUsed(SyntheticUniqueKeyType uniqueKey) Mark a synthetic unique key as used.voidmarkUsed(SyntheticViewType view) Mark a synthetic view as used.onError()The behaviour when errors are encountered.booleanWhether computed columns columns should exposeDataType.readonly()behaviour.booleanWhether identity columns should exposeDataType.readonly()behaviour.booleanWhether columns that are known not to be updatable (e.g.voidsetBasedir(String basedir) The basedir that can be used by file based implementations to resolve relative paths.voidThe database's catalog version provider.voidsetConfiguredCatalogs(List<CatalogMappingType> catalogs) The input and output catalogs.voidsetConfiguredComments(List<CommentType> configuredComments) Configure the comments.voidsetConfiguredCustomTypes(List<CustomType> types) Deprecated.- 3.10.0 - [#5750] - UsegetConfiguredForcedTypes()only.voidsetConfiguredEmbeddables(List<EmbeddableDefinitionType> configuredEmbeddables) Configure the embeddable types.voidsetConfiguredEnumTypes(List<EnumType> types) Database objects matching any of these field names will be generated as enum types.voidsetConfiguredForcedTypes(List<ForcedType> types) 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.voidsetExcludeSql(String sql) Database objects matching any of the regular expressions produced by this SQL query will not be generated, in addition to the ones specified bygetExcludes().voidsetForcedTypesForBuiltinDataTypeExtensions(boolean forcedTypesForBuiltinDataTypeExtensions) Whether some additional forced types for built in data type extensions, such as the ones fromjooq-codegen-postgresshould be added.voidsetForcedTypesForXMLSchemaCollections(boolean forcedTypesForXMLSchemaCollections) Whether some additional forced types forXMLSchemaCollectionDefinitiontypes should be created automatically for columns that have non-ambiguous references to anXMLTypeDefinition.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 checkConstraints) 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.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.voidsetIncludeSql(String sql) Only database objects matching any of the regular expressions produced by this SQL query will be generated, in addition to the ones specified bygetIncludes().voidsetIncludeSystemCheckConstraints(boolean systemCheckConstraints) whether system generated check constraints should be included.voidsetIncludeSystemIndexes(boolean systemIndexes) whether system generated indexes should be included.voidsetIncludeSystemSequences(boolean systemSequences) whether system generated sequences should be included.voidsetIncludeSystemTables(boolean systemTables) whether system generated tables should be included.voidsetIncludeSystemUDTs(boolean systemUDTs) 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.voidsetIncludeXMLSchemaCollections(boolean includeXMLSchemaCollections) whether XML schema collections 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[] primaryKeys) Deprecated.- 3.14.0 - [#10588] - Useinstead.invalid @link
#setConfiguredSyntheticKeys(SyntheticKeysType)voidsetProperties(Properties properties) Database properties.voidsetReadonlyComputedColumns(boolean readonlyComputedColumns) Whether computed columns columns should exposeDataType.readonly()behaviour.voidsetReadonlyIdentities(boolean readonlyIdentities) Whether identity columns should exposeDataType.readonly()behaviour.voidsetReadonlyNonUpdatableColumns(boolean readonlyNonUpdatableColumns) Whether columns that are known not to be updatable (e.g.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.voidThe 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.- 3.14.0 - [#10588] - Useinstead.invalid @link
#setConfiguredSyntheticKeys(SyntheticKeysType)voidsetSyntheticPrimaryKeys(String[] primaryKeys) Deprecated.- 3.14.0 - [#10588] - Useinstead.invalid @link
#setConfiguredSyntheticKeys(SyntheticKeysType)voidsetTableValuedFunctions(boolean tableValuedFunctions) [#4838] Whether table-valued functions should be reported as tables.<D extends Definition>
List<D>Sort a list of definitions according to thegetOrderProvider()defined in this database.booleanWhether this database supports unsigned types.boolean[#4838] Whether table-valued functions should be reported as tables.
-
Method Details
-
getSources
Map<Definition,String> getSources()Get the sources for all objects that offer sources. -
getCatalogs
List<CatalogDefinition> getCatalogs()The catalogs generated from this database. -
getCatalog
Get a catalog defined in this database by name. -
getSchemata
List<SchemaDefinition> getSchemata()The schemata generated from this database. -
getSchemata
The schemata generated from this database and a given catalog. -
getSchema
Get a schema defined in this database by name. -
getXMLSchemaCollections
List<XMLSchemaCollectionDefinition> getXMLSchemaCollections()The XML schema collections generated from this database. -
getXMLSchemaCollections
The XML schema collections generated from this database. -
getXMLSchemaCollection
The XML schema collection generated from this database by name -
getRelations
Relations getRelations()Retrieve the schema's primary key / foreign key relations. -
getSequences
List<SequenceDefinition> getSequences()The sequences contained in this database. -
getSequences
The sequences contained in this database. -
getIdentities
The identities contained in this database. -
getIndexes
The indexes contained in this database. -
getIndexes
The indexes contained in this database. -
getUniqueKeys
List<UniqueKeyDefinition> getUniqueKeys()The unique keys contained in this database. -
getUniqueKeys
The unique keys contained in this database. -
getPrimaryKeys
List<UniqueKeyDefinition> getPrimaryKeys()The primary keys contained in this database. -
getPrimaryKeys
The primary keys contained in this database. -
getKeys
List<UniqueKeyDefinition> getKeys()The unique and primary keys contained in this database. -
getKeys
The unique and primary keys contained in this database. -
getForeignKeys
List<ForeignKeyDefinition> getForeignKeys()The foreign keys contained in this database. -
getForeignKeys
The foreign keys contained in this database. -
getCheckConstraints
The check constraints contained in this database. -
getTables
List<TableDefinition> getTables()The tables contained in this database. -
getTables
The tables contained in this database. -
getTable
Get a table in this database by name. -
getTable
Get a table in this database by name. -
getTable
Get a table in this database by name. -
getTable
Get a table in this database by name. -
getEmbeddables
List<EmbeddableDefinition> getEmbeddables()Get all embeddables. -
getEmbeddables
Get all embeddables for a given defining schema. -
getEmbeddables
Get all embeddables for a given defining table. -
getEmbeddablesByReferencingTable
Get all embeddables for a given referencing table. -
getEnums
The enum UDTs defined in this database. -
getEnum
Get an enum UDT defined in this database by name. -
getEnum
Get an enum UDT defined in this database by name. -
getEnum
Get an enum UDT defined in this database by name. -
getEnum
Get an enum UDT defined in this database by name. -
getDomains
List<DomainDefinition> getDomains()The domain UDTs defined in this database. -
getDomains
The domain UDTs defined in this database. -
getDomain
Get an domain UDT defined in this database by name. -
getDomain
Get an domain UDT defined in this database by name. -
getDomain
Get an domain UDT defined in this database by name. -
getDomain
Get an domain UDT defined in this database by name. -
getUDTs
List<UDTDefinition> getUDTs()The UDTs defined in this database. -
getUDTs
The UDTs defined in this database. -
getUDT
Get a UDT defined in this database by name. -
getUDT
Get a UDT defined in this database by name. -
getUDT
Get a UDT defined in this database by name. -
getUDT
Get a UDT defined in this database by name. -
getUDTs
The UDTs defined in this database. -
getArrays
The Arrays defined in this database. -
getArray
Get a ARRAY defined in this database by name. -
getArray
Get a ARRAY defined in this database by name. -
getArray
Get a ARRAY defined in this database by name. -
getArray
Get a ARRAY defined in this database by name. -
getRoutines
The stored routines (procedures and functions) contained in this database. -
getPackages
The packages contained in this database. -
getPackage
Get a package defined in this database by name. -
setConnection
Initialise a connection to this database. -
getConnection
Connection getConnection()The database connection. -
getInputCatalogs
The input catalogs are the catalogs that jooq-meta is reading data from. -
getInputSchemata
The 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
getInputSchemata(String)instead to disambiguate schema names (e.g. in SQL Server, there are multiple "dbo" schemas). -
getInputSchemata
The input schemata are the schemata from a given catalog that jooq-meta is reading data from. -
getInputSchemata
The input schemata are the schemata from a given catalog that jooq-meta is reading data from. -
getOutputCatalog
Deprecated.- 2.0.5 - This will be implemented in eachDefinition.getOutputName()The output catalog is the catalog used by jooq-codegen in class names. -
getOutputSchema
Deprecated.- 2.0.5 - This will be implemented in eachDefinition.getOutputName()The output schema is the schema used by jooq-codegen in class names. -
getOutputSchema
Deprecated.- 2.0.5 - This will be implemented in eachDefinition.getOutputName()The output schema is the schema used by jooq-codegen in class names. -
setConfiguredCatalogs
The input and output catalogs. -
setConfiguredSchemata
The input and output schemata. -
setExcludes
Database objects matching any of these regular expressions will not be generated. -
setExcludeSql
Database objects matching any of the regular expressions produced by this SQL query will not be generated, in addition to the ones specified bygetExcludes(). -
getExcludes
String[] getExcludes()Database objects matching any of these regular expressions will not be generated. -
getExcludeSql
String getExcludeSql()Database objects matching any of the regular expressions produced by this SQL query will not be generated, in addition to the ones specified bygetExcludes(). -
setIncludes
Only database objects matching any of these regular expressions will be generated. -
setIncludeSql
Only database objects matching any of the regular expressions produced by this SQL query will be generated, in addition to the ones specified bygetIncludes(). -
getIncludes
String[] getIncludes()Only database objects matching any of these regular expressions will be generated. -
getIncludeSql
String getIncludeSql()Only database objects matching any of the regular expressions produced by this SQL query will be generated, in addition to the ones specified bygetIncludes(). -
setIncludeExcludeColumns
void setIncludeExcludeColumns(boolean includeExcludeColumns) Indicate whether include / exclude regular expression shall also match database columns. -
getIncludeExcludeColumns
boolean getIncludeExcludeColumns()Indicate whether include / exclude regular expression shall also match database columns. -
setIncludeExcludePackageRoutines
void setIncludeExcludePackageRoutines(boolean includeExcludePackageRoutines) Indicate whether include / exclude regular expression shall also match package routines. -
getIncludeExcludePackageRoutines
boolean getIncludeExcludePackageRoutines()Indicate whether include / exclude regular expression shall also match package routines. -
setIncludeForeignKeys
void setIncludeForeignKeys(boolean includeForeignKeys) whether foreign key relationships should be included. -
getIncludeForeignKeys
boolean getIncludeForeignKeys()whether foreign key relationships should be included. -
setIncludeUniqueKeys
void setIncludeUniqueKeys(boolean includeUniqueKeys) whether unique keys should be included. -
getIncludeUniqueKeys
boolean getIncludeUniqueKeys()whether unique keys should be included. -
setIncludePrimaryKeys
void setIncludePrimaryKeys(boolean includePrimaryKeys) whether primary keys should be included. -
getIncludePrimaryKeys
boolean getIncludePrimaryKeys()whether primary keys should be included. -
setIncludeCheckConstraints
void setIncludeCheckConstraints(boolean checkConstraints) whether check constraints should be included. -
getIncludeCheckConstraints
boolean getIncludeCheckConstraints()whether check constraints should be included. -
setIncludeSystemTables
void setIncludeSystemTables(boolean systemTables) whether system generated tables should be included. -
getIncludeSystemTables
boolean getIncludeSystemTables()whether system generated tables should be included. -
setIncludeSystemIndexes
void setIncludeSystemIndexes(boolean systemIndexes) whether system generated indexes should be included. -
getIncludeSystemIndexes
boolean getIncludeSystemIndexes()whether system generated indexes should be included. -
setIncludeSystemCheckConstraints
void setIncludeSystemCheckConstraints(boolean systemCheckConstraints) whether system generated check constraints should be included. -
getIncludeSystemCheckConstraints
boolean getIncludeSystemCheckConstraints()whether system generated check constraints should be included. -
setIncludeSystemSequences
void setIncludeSystemSequences(boolean systemSequences) whether system generated sequences should be included. -
getIncludeSystemSequences
boolean getIncludeSystemSequences()whether system generated sequences should be included. -
setIncludeSystemUDTs
void setIncludeSystemUDTs(boolean systemUDTs) whether system generated UDTs should be included. -
getIncludeSystemUDTs
boolean getIncludeSystemUDTs()whether system generated UDTs should be included. -
setIncludeIndexes
void setIncludeIndexes(boolean includeIndexes) whether indexes should be included. -
getIncludeIndexes
boolean getIncludeIndexes()whether indexes should be included. -
setIncludeDomains
void setIncludeDomains(boolean includeDomains) whether domains should be included. -
getIncludeDomains
boolean getIncludeDomains()whether domains should be included. -
setIncludeSequences
void setIncludeSequences(boolean includeSequences) whether sequences should be included. -
getIncludeSequences
boolean getIncludeSequences()whether sequences should be included. -
getIncludeXMLSchemaCollections
boolean getIncludeXMLSchemaCollections()whether XML schema collections should be included. -
setIncludeXMLSchemaCollections
void setIncludeXMLSchemaCollections(boolean includeXMLSchemaCollections) whether XML schema collections should be included. -
setIncludeUDTs
void setIncludeUDTs(boolean includeUDTs) whether user defined types should be included. -
getIncludeUDTs
boolean getIncludeUDTs()whether user defined types should be included. -
setIncludePackages
void setIncludePackages(boolean includePackages) whether packages should be included. -
getIncludePackages
boolean getIncludePackages()whether packages should be included. -
setIncludePackageRoutines
void setIncludePackageRoutines(boolean includePackageRoutines) whether package routines should be included. -
getIncludePackageRoutines
boolean getIncludePackageRoutines()whether package routines should be included. -
setIncludePackageUDTs
void setIncludePackageUDTs(boolean includePackageUDTs) whether package UDTs should be included. -
getIncludePackageUDTs
boolean getIncludePackageUDTs()whether package UDTs should be included. -
setIncludePackageConstants
void setIncludePackageConstants(boolean includePackageConstants) whether package constants should be included. -
getIncludePackageConstants
boolean getIncludePackageConstants()whether package constants should be included. -
setIncludeRoutines
void setIncludeRoutines(boolean includeRoutines) whether routines should be included. -
getIncludeRoutines
boolean getIncludeRoutines()whether routines should be included. -
setIncludeTriggerRoutines
void setIncludeTriggerRoutines(boolean includeTriggerRoutines) whether trigger routines should be included. -
getIncludeTriggerRoutines
boolean getIncludeTriggerRoutines()whether trigger routines should be included. -
setIncludeTables
void setIncludeTables(boolean includeTables) Whether tables (and views) should be included. -
getIncludeTables
boolean getIncludeTables()Whether tables (and views) should be included. -
setIncludeEmbeddables
void setIncludeEmbeddables(boolean includeEmbeddables) Whether embeddable types should be included. -
getIncludeEmbeddables
boolean getIncludeEmbeddables()Whether embeddable types should be included. -
setIncludeInvisibleColumns
void setIncludeInvisibleColumns(boolean includeInvisibleColumns) Whether invisible columns should be included. -
getIncludeInvisibleColumns
boolean getIncludeInvisibleColumns()Whether invisible columns should be included. -
setForceIntegerTypesOnZeroScaleDecimals
void setForceIntegerTypesOnZeroScaleDecimals(boolean forceIntegerTypesOnZeroScaleDecimals) Whether zero-scale decimal types should be treated as their most appropriate, corresponding integer type. -
getForceIntegerTypesOnZeroScaleDecimals
boolean getForceIntegerTypesOnZeroScaleDecimals()Whether zero-scale decimal types should be treated as their most appropriate, corresponding integer type. -
setOnError
The behaviour when errors are encountered. -
onError
OnError onError()The behaviour when errors are encountered. -
addFilter
[#3488] Add an additional filter to the database that is applied in addition to include / exclude. -
getFilters
List<Database.Filter> getFilters()[#3488] The filters that are applied in addition to include / exclude. -
filterExcludeInclude
Filter a list of definitions according to the exclude / include / and filter settings of this database. -
sort
Sort a list of definitions according to thegetOrderProvider()defined in this database. -
getIncluded
List<Definition> getIncluded()Retrieve all included objects. -
getExcluded
List<Definition> getExcluded()Retrieve all excluded objects. -
getAll
List<Definition> getAll()Retrieve all objects. -
setRegexFlags
The regular expression flags that should be applied when using regular expressions. -
getRegexFlags
The regular expression flags that should be applied when using regular expressions. -
setRegexMatchesPartialQualification
void setRegexMatchesPartialQualification(boolean regexMatchesPartialQualification) Whether the regular expressions matching database objects should match partially qualified names as well as fully qualified and unqualified names. -
getRegexMatchesPartialQualification
boolean getRegexMatchesPartialQualification()Whether the regular expressions matching database objects should match partially qualified names as well as fully qualified and unqualified names. -
setSqlMatchesPartialQualification
void setSqlMatchesPartialQualification(boolean sqlMatchesPartialQualification) Whether the SQL statements matching database objects should match partially qualified names as well as fully qualified and unqualified names. -
getSqlMatchesPartialQualification
boolean getSqlMatchesPartialQualification()Whether the SQL statements matching database objects should match partially qualified names as well as fully qualified and unqualified names. -
setRecordVersionFields
Table columns matching these regular expressions will be considered as record version fields in generated code. -
getRecordVersionFields
String[] getRecordVersionFields()Table columns matching these regular expressions will be considered as record version fields in generated code. -
setRecordTimestampFields
Table columns matching these regular expressions will be considered as record timestamp fields in generated code. -
getRecordTimestampFields
String[] getRecordTimestampFields()Table columns matching these regular expressions will be considered as record timestamp fields in generated code. -
setSyntheticPrimaryKeys
Deprecated.- 3.14.0 - [#10588] - Useinstead.invalid @link
#setConfiguredSyntheticKeys(SyntheticKeysType)Columns matching these regular expressions will be considered as members of synthetic primary keys in generated code. -
getSyntheticPrimaryKeys
Deprecated.- 3.14.0 - [#10588] - UsegetConfiguredSyntheticPrimaryKeys()instead.Columns matching these regular expressions will be considered as members of synthetic primary keys in generated code. -
setOverridePrimaryKeys
Deprecated.- 3.14.0 - [#10588] - Useinstead.invalid @link
#setConfiguredSyntheticKeys(SyntheticKeysType)Unique keys matching these regular expressions will be considered as primary keys in generated code. -
getOverridePrimaryKeys
Deprecated.- 3.14.0 - [#10588] - UsegetConfiguredSyntheticPrimaryKeys()instead.Unique keys matching these regular expressions will be considered as primary keys in generated code. -
setSyntheticIdentities
Deprecated.- 3.14.0 - [#10588] - Useinstead.invalid @link
#setConfiguredSyntheticKeys(SyntheticKeysType)Columns matching these regular expressions will be considered as identity columns in generated code. -
getSyntheticIdentities
Deprecated.- 3.14.0 - [#10588] - UsegetConfiguredSyntheticIdentities()instead.Columns matching these regular expressions will be considered as identity columns in generated code. -
setConfiguredCustomTypes
Deprecated.- 3.10.0 - [#5750] - UsegetConfiguredForcedTypes()only.Database objects matching any of these field names will be generated as custom types. -
getConfiguredCustomTypes
Deprecated.- 3.10.0 - [#5750] - UsegetConfiguredForcedTypes()only.Database objects matching any of these field names will be generated as custom types. -
getConfiguredCustomType
Deprecated.- 3.10.0 - [#5750] - UsegetConfiguredForcedTypes()only.Get a specific configured custom type by its name. -
setConfiguredEnumTypes
Database objects matching any of these field names will be generated as enum types. -
getConfiguredEnumTypes
Database objects matching any of these field names will be generated as enum types. -
setConfiguredForcedTypes
Database objects matching any of these field names will be generated as forced types. -
getForcedTypesForBuiltinDataTypeExtensions
boolean getForcedTypesForBuiltinDataTypeExtensions()Whether some additional forced types for built in data type extensions, such as the ones fromjooq-codegen-postgresshould be added. -
setForcedTypesForBuiltinDataTypeExtensions
void setForcedTypesForBuiltinDataTypeExtensions(boolean forcedTypesForBuiltinDataTypeExtensions) Whether some additional forced types for built in data type extensions, such as the ones fromjooq-codegen-postgresshould be added. -
getForcedTypesForXMLSchemaCollections
boolean getForcedTypesForXMLSchemaCollections()Whether some additional forced types forXMLSchemaCollectionDefinitiontypes should be created automatically for columns that have non-ambiguous references to anXMLTypeDefinition.This feature is available in the commercial distribution only.
-
setForcedTypesForXMLSchemaCollections
void setForcedTypesForXMLSchemaCollections(boolean forcedTypesForXMLSchemaCollections) Whether some additional forced types forXMLSchemaCollectionDefinitiontypes should be created automatically for columns that have non-ambiguous references to anXMLTypeDefinition.This feature is available in the commercial distribution only.
-
getLogSlowQueriesAfterSeconds
int getLogSlowQueriesAfterSeconds()Log slow queries after this amount of seconds. -
setLogSlowQueriesAfterSeconds
void setLogSlowQueriesAfterSeconds(int logSlowQueriesAfterSeconds) Log slow queries after this amount of seconds. -
getLogSlowResultsAfterSeconds
int getLogSlowResultsAfterSeconds()Log slow results after this amount of seconds. -
setLogSlowResultsAfterSeconds
void setLogSlowResultsAfterSeconds(int logSlowResultsAfterSeconds) Log slow results after this amount of seconds. -
getSchemaVersionProvider
SchemaVersionProvider getSchemaVersionProvider()The database's schema version provider. -
setSchemaVersionProvider
The database's schema version provider. -
getCatalogVersionProvider
CatalogVersionProvider getCatalogVersionProvider()The database's catalog version provider. -
setCatalogVersionProvider
The database's catalog version provider. -
getOrderProvider
Comparator<Definition> getOrderProvider()The database's order provider. -
setOrderProvider
The database's order provider. -
markUsed
Mark a forced type as used. -
getUnusedForcedTypes
List<ForcedType> getUnusedForcedTypes()Retrieve the not-yet used forced types. -
getConfiguredForcedTypes
List<ForcedType> getConfiguredForcedTypes()Database objects matching any of these field names will be generated as forced types. -
getConfiguredForcedType
Get the configured forced type object for any givenDefinition, ornullif noForcedTypematches the definition. -
getConfiguredForcedType
Get the configured forced type object for any givenDefinition, ornullif noForcedTypematches the definition. -
setConfiguredEmbeddables
Configure the embeddable types. -
getConfiguredEmbeddables
List<EmbeddableDefinitionType> getConfiguredEmbeddables()Get the configured embeddable type definitions for any givenDefinition. -
markUsed
Mark an embeddable as used. -
getUnusedEmbeddables
List<EmbeddableDefinitionType> getUnusedEmbeddables()Retrieve the not-yet used embeddables. -
embeddablePrimaryKeys
String embeddablePrimaryKeys()A regular expression matching primary keys for which embeddable types should be generated.This feature is available in the commercial distribution only.
-
setEmbeddablePrimaryKeys
A regular expression matching primary keys for which embeddable types should be generated.This feature is available in the commercial distribution only.
-
embeddableUniqueKeys
String embeddableUniqueKeys()A regular expression matching unique keys for which embeddable types should be generated.This feature is available in the commercial distribution only.
-
setEmbeddableUniqueKeys
A regular expression matching unique keys for which embeddable types should be generated.This feature is available in the commercial distribution only.
-
embeddableDomains
String embeddableDomains()A regular expression matching domain type definitions for which embeddable types should be generated.This feature is available in the commercial distribution only.
-
setEmbeddableDomains
A regular expression matching domain type definitions for which embeddable types should be generated.This feature is available in the commercial distribution only.
-
readonlyIdentities
boolean readonlyIdentities()Whether identity columns should exposeDataType.readonly()behaviour.This feature is available in the commercial distribution only.
-
setReadonlyIdentities
void setReadonlyIdentities(boolean readonlyIdentities) Whether identity columns should exposeDataType.readonly()behaviour.This feature is available in the commercial distribution only.
-
readonlyComputedColumns
boolean readonlyComputedColumns()Whether computed columns columns should exposeDataType.readonly()behaviour.This feature is available in the commercial distribution only.
-
setReadonlyComputedColumns
void setReadonlyComputedColumns(boolean readonlyComputedColumns) Whether computed columns columns should exposeDataType.readonly()behaviour.This feature is available in the commercial distribution only.
-
readonlyNonUpdatableColumns
boolean readonlyNonUpdatableColumns()Whether columns that are known not to be updatable (e.g. in views) should exposeDataType.readonly()behaviour.This feature is available in the commercial distribution only.
-
setReadonlyNonUpdatableColumns
void setReadonlyNonUpdatableColumns(boolean readonlyNonUpdatableColumns) Whether columns that are known not to be updatable (e.g. in views) should exposeDataType.readonly()behaviour.This feature is available in the commercial distribution only.
-
setConfiguredComments
Configure the comments. -
getConfiguredComments
List<CommentType> getConfiguredComments()Get the configured comments. -
markUsed
Mark a comment as used. -
getUnusedComments
List<CommentType> getUnusedComments()Retrieve the not-yet used comments. -
setConfiguredSyntheticObjects
Configure the synthetic objects. -
getConfiguredSyntheticColumns
List<SyntheticColumnType> getConfiguredSyntheticColumns()Get the configured synthetic columns. -
getConfiguredSyntheticReadonlyColumns
List<SyntheticReadonlyColumnType> getConfiguredSyntheticReadonlyColumns()Get the configured synthetic readonly columns. -
getConfiguredSyntheticReadonlyRowids
List<SyntheticReadonlyRowidType> getConfiguredSyntheticReadonlyRowids()Get the configured synthetic readonly rowids. -
getConfiguredSyntheticIdentities
List<SyntheticIdentityType> getConfiguredSyntheticIdentities()Get the configured synthetic identities. -
getConfiguredSyntheticPrimaryKeys
List<SyntheticPrimaryKeyType> getConfiguredSyntheticPrimaryKeys()Get the configured synthetic primary keys. -
getConfiguredSyntheticUniqueKeys
List<SyntheticUniqueKeyType> getConfiguredSyntheticUniqueKeys()Get the configured synthetic unique keys. -
getConfiguredSyntheticForeignKeys
List<SyntheticForeignKeyType> getConfiguredSyntheticForeignKeys()Get the configured synthetic foreign keys. -
getConfiguredSyntheticViews
List<SyntheticViewType> getConfiguredSyntheticViews()Get the configured synthetic views. -
getConfiguredSyntheticDaos
List<SyntheticDaoType> getConfiguredSyntheticDaos()Get the configured synthetic DAOs. -
markUsed
Mark a synthetic column as used. -
getUnusedSyntheticColumns
List<SyntheticColumnType> getUnusedSyntheticColumns()Retrieve the not-yet used synthetic columns. -
markUsed
Mark a synthetic readonly column as used. -
getUnusedSyntheticReadonlyColumns
List<SyntheticReadonlyColumnType> getUnusedSyntheticReadonlyColumns()Retrieve the not-yet used synthetic readonly columns. -
markUsed
Mark a synthetic readonly rowids as used. -
getUnusedSyntheticReadonlyRowids
List<SyntheticReadonlyRowidType> getUnusedSyntheticReadonlyRowids()Retrieve the not-yet used synthetic readonly rowids. -
markUsed
Mark a synthetic identity as used. -
getUnusedSyntheticIdentities
List<SyntheticIdentityType> getUnusedSyntheticIdentities()Retrieve the not-yet used synthetic identities. -
markUsed
Mark a synthetic primary key as used. -
getUnusedSyntheticPrimaryKeys
List<SyntheticPrimaryKeyType> getUnusedSyntheticPrimaryKeys()Retrieve the not-yet used synthetic primary keys. -
markUsed
Mark a synthetic unique key as used. -
getUnusedSyntheticUniqueKeys
List<SyntheticUniqueKeyType> getUnusedSyntheticUniqueKeys()Retrieve the not-yet used synthetic unique keys. -
markUsed
Mark a synthetic foreign key as used. -
getUnusedSyntheticForeignKeys
List<SyntheticForeignKeyType> getUnusedSyntheticForeignKeys()Retrieve the not-yet used synthetic foreign keys. -
markUsed
Mark a synthetic view as used. -
getUnusedSyntheticViews
List<SyntheticViewType> getUnusedSyntheticViews()Retrieve the not-yet used synthetic views. -
getDialect
SQLDialect getDialect()Get the dialect for this database. -
setDialect
Set the dialect for this database. -
create
DSLContext create()Create the factory for this database. -
isArrayType
Check whether a type is an array type. -
setSupportsUnsignedTypes
void setSupportsUnsignedTypes(boolean supportsUnsignedTypes) Whether this database supports unsigned types. -
supportsUnsignedTypes
boolean supportsUnsignedTypes()Whether this database supports unsigned types. -
setIntegerDisplayWidths
void setIntegerDisplayWidths(boolean integerDisplayWidths) Whether this database includes integer display widths in metadata, where applicable. -
integerDisplayWidths
boolean integerDisplayWidths()Whether this database includes integer display widths in metadata, where applicable. -
setIgnoreProcedureReturnValues
void setIgnoreProcedureReturnValues(boolean ignoreProcedureReturnValues) Whether this database should ignore procedure return values. -
ignoreProcedureReturnValues
boolean ignoreProcedureReturnValues()Whether this database should ignore procedure return values. -
setDateAsTimestamp
void setDateAsTimestamp(boolean dateAsTimestamp) Whether DATE columns should be treated as TIMESTAMP columns. -
dateAsTimestamp
boolean dateAsTimestamp()Whether DATE columns should be treated as TIMESTAMP columns. -
setJavaTimeTypes
void setJavaTimeTypes(boolean javaTimeTypes) Whetherjava.timetypes are used, as opposed tojava.sqltypes. -
javaTimeTypes
boolean javaTimeTypes()Whetherjava.timetypes are used, as opposed tojava.sqltypes. -
setIncludeRelations
void setIncludeRelations(boolean includeRelations) [#3559] Whether relations (i.e. constraints) should be included in this database. -
includeRelations
boolean includeRelations()[#3559] Whether relations (i.e. constraints) should be included in this database. -
setTableValuedFunctions
void setTableValuedFunctions(boolean tableValuedFunctions) [#4838] Whether table-valued functions should be reported as tables. -
tableValuedFunctions
boolean tableValuedFunctions()[#4838] Whether table-valued functions should be reported as tables. -
exists
Check for the existence of a table field in the dictionary views. -
existAll
Check for the existence of several table fields in the dictionary views. -
exists
Check for the existence of a table in the dictionary views. -
existAll
Check for the existence of several tables in the dictionary views. -
setProperties
Database 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.
-
getProperties
Properties getProperties()Database 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.
-
setBasedir
The basedir that can be used by file based implementations to resolve relative paths. -
getBasedir
String getBasedir()The basedir that can be used by file based implementations to resolve relative paths. -
close
void close()Release any resources that this Database may have allocated.- Specified by:
closein interfaceAutoCloseable
-
getConfiguredForcedTypes()only.