public abstract class AbstractDatabase extends Object implements Database
Database.Filter| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDatabase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(Database.Filter filter)
[#3488] Add an additional filter to the database that is applied in
addition to include / exclude.
|
void |
close()
Release any resources that this Database may have allocated.
|
DSLContext |
create()
Create the factory for this database.
|
protected DSLContext |
create(boolean muteExceptions) |
protected abstract DSLContext |
create0()
Create a new Factory
|
boolean |
dateAsTimestamp()
Whether DATE columns should be treated as TIMESTAMP columns.
|
boolean |
existAll(Table<?>... t)
Check for the existence of several tables in the dictionary views.
|
boolean |
exists(Table<?> table)
Check for the existence of a table in the dictionary views.
|
protected static String |
fetchedSize(List<?> fetched,
List<?> included) |
<T extends Definition> |
filterExcludeInclude(List<T> definitions)
Filter a list of definitions according to the exclude / include / and filter settings of this database.
|
protected <T extends Definition> |
filterExcludeInclude(List<T> definitions,
String[] e,
String[] i,
List<Database.Filter> f) |
protected <T extends Definition> |
filterSchema(List<T> definitions,
SchemaDefinition schema) |
protected <T extends Definition> |
filterSchema(List<T> definitions,
SchemaDefinition schema,
Map<SchemaDefinition,List<T>> cache) |
List<Definition> |
getAll()
Retrieve all objects.
|
ArrayDefinition |
getArray(SchemaDefinition schema,
Name name)
Get a ARRAY defined in this database by name.
|
ArrayDefinition |
getArray(SchemaDefinition schema,
Name name,
boolean ignoreCase)
Get a ARRAY defined in this database by name.
|
ArrayDefinition |
getArray(SchemaDefinition schema,
String name)
Get a ARRAY defined in this database by name.
|
ArrayDefinition |
getArray(SchemaDefinition schema,
String 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.
|
CatalogDefinition |
getCatalog(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.
|
CatalogVersionProvider |
getCatalogVersionProvider()
The database's catalog version provider.
|
List<CheckConstraintDefinition> |
getCheckConstraints(SchemaDefinition schema)
The check constraints contained in this database.
|
CustomType |
getConfiguredCustomType(String typeName)
Deprecated.
|
List<CustomType> |
getConfiguredCustomTypes()
Deprecated.
|
List<EnumType> |
getConfiguredEnumTypes()
Database objects matching any of these field names will be generated as
enum types.
|
ForcedType |
getConfiguredForcedType(Definition definition)
Get the configured forced type object for any given
Definition,
or null if no ForcedType matches the definition. |
ForcedType |
getConfiguredForcedType(Definition definition,
DataTypeDefinition definedType)
Get the configured forced type object for any given
Definition,
or null if no ForcedType matches the definition. |
List<ForcedType> |
getConfiguredForcedTypes()
Database objects matching any of these field names will be generated as
forced types.
|
Connection |
getConnection()
The database connection.
|
protected DataTypeDefinition |
getDataTypeForMAX_VAL(SchemaDefinition schema,
BigInteger value)
Get the data type considering a known max value
|
protected static <D extends Definition> |
getDefinition(List<D> definitions,
Name name,
boolean ignoreCase) |
protected static <D extends Definition> |
getDefinition(List<D> definitions,
String name,
boolean ignoreCase) |
SQLDialect |
getDialect()
Get the dialect for this database.
|
DomainDefinition |
getDomain(SchemaDefinition schema,
Name name)
Get an domain UDT defined in this database by name.
|
DomainDefinition |
getDomain(SchemaDefinition schema,
Name name,
boolean ignoreCase)
Get an domain UDT defined in this database by name.
|
DomainDefinition |
getDomain(SchemaDefinition schema,
String name)
Get an domain UDT defined in this database by name.
|
DomainDefinition |
getDomain(SchemaDefinition schema,
String name,
boolean ignoreCase)
Get an domain UDT defined in this database by name.
|
List<DomainDefinition> |
getDomains(SchemaDefinition schema)
The domain UDTs defined in this database.
|
protected abstract List<DomainDefinition> |
getDomains0()
Retrieve ALL domain UDTs from the database.
|
EnumDefinition |
getEnum(SchemaDefinition schema,
Name name)
Get an enum UDT defined in this database by name.
|
EnumDefinition |
getEnum(SchemaDefinition schema,
Name name,
boolean ignoreCase)
Get an enum UDT defined in this database by name.
|
EnumDefinition |
getEnum(SchemaDefinition schema,
String name)
Get an enum UDT defined in this database by name.
|
EnumDefinition |
getEnum(SchemaDefinition schema,
String 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.
|
boolean |
getForceIntegerTypesOnZeroScaleDecimals()
Whether zero-scale decimal types should be treated as their most
appropriate, corresponding integer type.
|
List<ForeignKeyDefinition> |
getForeignKeys(SchemaDefinition schema)
The foreign keys contained in this database.
|
List<IdentityDefinition> |
getIdentities(SchemaDefinition schema)
The identities contained in this database.
|
List<Definition> |
getIncluded()
Retrieve all included objects.
|
boolean |
getIncludeExcludeColumns()
Indicate whether include / exclude regular expression shall also match
database columns.
|
boolean |
getIncludeForeignKeys()
whether foreign key relationships should be included.
|
boolean |
getIncludeIndexes()
whether indexes should be included.
|
boolean |
getIncludePackageConstants()
whether package constants should be included.
|
boolean |
getIncludePackageRoutines()
whether package routines should be included.
|
boolean |
getIncludePackages()
whether packages should be included.
|
boolean |
getIncludePackageUDTs()
whether package UDTs should be included.
|
boolean |
getIncludePrimaryKeys()
whether primary keys should be included.
|
boolean |
getIncludeRoutines()
whether routines should be included.
|
String[] |
getIncludes()
Only database objects matching any of these regular expressions will be
generated.
|
boolean |
getIncludeSequences()
whether sequences should be included.
|
boolean |
getIncludeTables()
Whether tables (and views) should be included.
|
boolean |
getIncludeTriggerRoutines()
whether trigger routines should be included.
|
boolean |
getIncludeUDTs()
whether user defined types should be included.
|
boolean |
getIncludeUniqueKeys()
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 database
|
List<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(CatalogDefinition catalog)
The input schemata are the schemata from a given catalog 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.
|
int |
getLogSlowQueriesAfterSeconds()
Log slow queries after this amount of seconds.
|
Comparator<Definition> |
getOrderProvider()
The database's order provider.
|
String |
getOutputCatalog(String inputCatalog)
Deprecated.
|
String |
getOutputSchema(String inputSchema)
Deprecated.
|
String |
getOutputSchema(String inputCatalog,
String inputSchema)
The output schema is the schema used by jooq-codegen in class names.
|
String[] |
getOverridePrimaryKeys()
Unique keys matching these regular expressions will be considered as
primary keys in generated code.
|
PackageDefinition |
getPackage(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.
|
Properties |
getProperties()
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.
|
Relations |
getRelations()
Retrieve the schema's primary key / foreign key relations.
|
protected Relations |
getRelations0()
Retrieve ALL relations from the database.
|
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.
|
SchemaDefinition |
getSchema(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.
|
SchemaVersionProvider |
getSchemaVersionProvider()
The database's schema version provider.
|
List<SequenceDefinition> |
getSequences(SchemaDefinition schema)
The sequences contained in this database.
|
protected abstract List<SequenceDefinition> |
getSequences0()
Retrieve ALL sequences from the database.
|
String[] |
getSyntheticIdentities()
Columns matching these regular expressions will be considered as identity
columns in generated code.
|
String[] |
getSyntheticPrimaryKeys()
Columns matching these regular expressions will be considered as members
of synthetic primary keys in generated code.
|
TableDefinition |
getTable(SchemaDefinition schema,
Name name)
Get a table in this database by name.
|
TableDefinition |
getTable(SchemaDefinition schema,
Name name,
boolean ignoreCase)
Get a table in this database by name.
|
TableDefinition |
getTable(SchemaDefinition schema,
String name)
Get a table in this database by name.
|
TableDefinition |
getTable(SchemaDefinition schema,
String name,
boolean ignoreCase)
Get a table in this database by name.
|
List<TableDefinition> |
getTables(SchemaDefinition schema)
The tables contained in this database.
|
protected abstract List<TableDefinition> |
getTables0()
Retrieve ALL tables from the database.
|
UDTDefinition |
getUDT(SchemaDefinition schema,
Name name)
Get a UDT defined in this database by name.
|
UDTDefinition |
getUDT(SchemaDefinition schema,
Name name,
boolean ignoreCase)
Get a UDT defined in this database by name.
|
UDTDefinition |
getUDT(SchemaDefinition schema,
String name)
Get a UDT defined in this database by name.
|
UDTDefinition |
getUDT(SchemaDefinition schema,
String name,
boolean ignoreCase)
Get a UDT defined in this database by name.
|
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(SchemaDefinition schema)
The unique keys contained in this database.
|
boolean |
ignoreProcedureReturnValues()
Whether this database should ignore procedure return values.
|
boolean |
includeRelations()
[#3559] Whether relations (i.e. constraints) should be included in this database.
|
boolean |
isArrayType(String dataType)
Check whether a type is an array type.
|
protected abstract void |
loadCheckConstraints(DefaultRelations r)
Retrieve
CHECK constraints and store them to relations. |
protected abstract void |
loadForeignKeys(DefaultRelations r)
Retrieve foreign keys and store them to relations.
|
protected abstract void |
loadPrimaryKeys(DefaultRelations r)
Retrieve primary keys and store them to relations
|
protected abstract void |
loadUniqueKeys(DefaultRelations r)
Retrieve non-primary unique keys and store them to relations
|
void |
setCatalogVersionProvider(CatalogVersionProvider catalogVersionProvider)
The database's catalog version provider.
|
void |
setConfiguredCatalogs(List<Catalog> catalogs)
The input and output catalogs.
|
void |
setConfiguredCustomTypes(List<CustomType> configuredCustomTypes)
Deprecated.
|
void |
setConfiguredEnumTypes(List<EnumType> configuredEnumTypes)
Database objects matching any of these field names will be generated as
enum types.
|
void |
setConfiguredForcedTypes(List<ForcedType> configuredForcedTypes)
Database objects matching any of these field names will be generated as
forced types.
|
void |
setConfiguredSchemata(List<Schema> schemata)
The input and output schemata.
|
void |
setConnection(Connection connection)
Initialise a connection to this database.
|
void |
setDateAsTimestamp(boolean dateAsTimestamp)
Whether DATE columns should be treated as TIMESTAMP columns.
|
void |
setExcludes(String[] excludes)
Database objects matching any of these regular expressions will not be
generated.
|
void |
setForceIntegerTypesOnZeroScaleDecimals(boolean forceIntegerTypesOnZeroScaleDecimals)
Whether zero-scale decimal types should be treated as their most
appropriate, corresponding integer type.
|
void |
setIgnoreProcedureReturnValues(boolean ignoreProcedureReturnValues)
Whether this database should ignore procedure return values.
|
void |
setIncludeExcludeColumns(boolean includeExcludeColumns)
Indicate whether include / exclude regular expression shall also match
database columns.
|
void |
setIncludeForeignKeys(boolean includeForeignKeys)
whether foreign key relationships should be included.
|
void |
setIncludeIndexes(boolean includeIndexes)
whether indexes should be included.
|
void |
setIncludePackageConstants(boolean includePackageConstants)
whether package constants should be included.
|
void |
setIncludePackageRoutines(boolean includePackageRoutines)
whether package routines should be included.
|
void |
setIncludePackages(boolean includePackages)
whether packages should be included.
|
void |
setIncludePackageUDTs(boolean includePackageUDTs)
whether package UDTs should be included.
|
void |
setIncludePrimaryKeys(boolean includePrimaryKeys)
whether primary keys should be included.
|
void |
setIncludeRelations(boolean includeRelations)
[#3559] Whether relations (i.e. constraints) should be included in this database.
|
void |
setIncludeRoutines(boolean includeRoutines)
whether routines should be included.
|
void |
setIncludes(String[] includes)
Only database objects matching any of these regular expressions will be
generated.
|
void |
setIncludeSequences(boolean includeSequences)
whether sequences should be included.
|
void |
setIncludeTables(boolean includeTables)
Whether tables (and views) should be included.
|
void |
setIncludeTriggerRoutines(boolean includeTriggerRoutines)
whether trigger routines should be included.
|
void |
setIncludeUDTs(boolean includeUDTs)
whether user defined types should be included.
|
void |
setIncludeUniqueKeys(boolean includeUniqueKeys)
whether unique keys should be included.
|
void |
setLogSlowQueriesAfterSeconds(int logSlowQueriesAfterSeconds)
Log slow queries after this amount of seconds.
|
void |
setOrderProvider(Comparator<Definition> provider)
The database's order provider.
|
void |
setOverridePrimaryKeys(String[] overridePrimaryKeys)
Unique keys matching these regular expressions will be considered as
primary keys in generated code.
|
void |
setProperties(Properties properties)
Database properties.
|
void |
setRecordTimestampFields(String[] recordTimestampFields)
Table columns matching these regular expressions will be considered as
record timestamp fields in generated code.
|
void |
setRecordVersionFields(String[] recordVersionFields)
Table columns matching these regular expressions will be considered as
record version fields in generated code.
|
void |
setRegexFlags(List<RegexFlag> regexFlags)
The regular expression flags that should be applied when using regular expressions.
|
void |
setSchemaVersionProvider(SchemaVersionProvider schemaVersionProvider)
The database's schema version provider.
|
void |
setSupportsUnsignedTypes(boolean supportsUnsignedTypes)
Whether this database supports unsigned types.
|
void |
setSyntheticIdentities(String[] syntheticIdentities)
Columns matching these regular expressions will be considered as identity
columns in generated code.
|
void |
setSyntheticPrimaryKeys(String[] syntheticPrimaryKeys)
Columns matching these regular expressions will be considered as members
of synthetic primary keys in generated code.
|
void |
setTableValuedFunctions(boolean tableValuedFunctions)
[#4838] Whether table-valued functions should be reported as tables.
|
<T extends Definition> |
sort(List<T> definitions)
Sort a list of definitions according to the
Database.getOrderProvider() defined in this database. |
boolean |
supportsUnsignedTypes()
Whether this database supports unsigned types.
|
boolean |
tableValuedFunctions()
[#4838] Whether table-valued functions should be reported as tables.
|
public final SQLDialect getDialect()
DatabasegetDialect in interface Databasepublic final void setConnection(Connection connection)
DatabasesetConnection in interface Databasepublic final Connection getConnection()
DatabasegetConnection in interface Databasepublic final DSLContext create()
Databaseprotected final DSLContext create(boolean muteExceptions)
public final boolean exists(Table<?> table)
Databasepublic final boolean existAll(Table<?>... t)
Databasepublic final List<CatalogDefinition> getCatalogs()
DatabasegetCatalogs in interface Databasepublic final CatalogDefinition getCatalog(String inputName)
DatabasegetCatalog in interface Databasepublic final List<SchemaDefinition> getSchemata()
DatabasegetSchemata in interface Databasepublic final List<SchemaDefinition> getSchemata(CatalogDefinition catalog)
DatabasegetSchemata in interface Databasepublic final SchemaDefinition getSchema(String inputName)
Databasepublic final List<String> getInputCatalogs()
DatabasegetInputCatalogs in interface Databasepublic final List<String> getInputSchemata()
Database
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).
getInputSchemata in interface Databasepublic final List<String> getInputSchemata(CatalogDefinition catalog)
DatabasegetInputSchemata in interface Databasepublic final List<String> getInputSchemata(String catalog)
DatabasegetInputSchemata in interface Database@Deprecated public String getOutputCatalog(String inputCatalog)
DatabasegetOutputCatalog in interface Database@Deprecated public String getOutputSchema(String inputSchema)
DatabasegetOutputSchema in interface Databasepublic String getOutputSchema(String inputCatalog, String inputSchema)
DatabasegetOutputSchema in interface Databasepublic final void setConfiguredCatalogs(List<Catalog> catalogs)
DatabasesetConfiguredCatalogs in interface Databasepublic final void setConfiguredSchemata(List<Schema> schemata)
DatabasesetConfiguredSchemata in interface Databasepublic final void setProperties(Properties properties)
Database
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 the XMLDatabase (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.
setProperties in interface Databasepublic final Properties getProperties()
Database
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 the XMLDatabase (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 in interface Databasepublic final List<Database.Filter> getFilters()
DatabasegetFilters in interface Databasepublic final void addFilter(Database.Filter filter)
Databasepublic final void setExcludes(String[] excludes)
DatabasesetExcludes in interface Databasepublic final String[] getExcludes()
DatabasegetExcludes in interface Databasepublic final void setIncludes(String[] includes)
DatabasesetIncludes in interface Databasepublic final String[] getIncludes()
DatabasegetIncludes in interface Databasepublic final void setIncludeExcludeColumns(boolean includeExcludeColumns)
DatabasesetIncludeExcludeColumns in interface Databasepublic final boolean getIncludeExcludeColumns()
DatabasegetIncludeExcludeColumns in interface Databasepublic final boolean getIncludeTables()
DatabasegetIncludeTables in interface Databasepublic final void setIncludeTables(boolean includeTables)
DatabasesetIncludeTables in interface Databasepublic final boolean getIncludeRoutines()
DatabasegetIncludeRoutines in interface Databasepublic final void setIncludeRoutines(boolean includeRoutines)
DatabasesetIncludeRoutines in interface Databasepublic void setIncludeTriggerRoutines(boolean includeTriggerRoutines)
DatabasesetIncludeTriggerRoutines in interface Databasepublic boolean getIncludeTriggerRoutines()
DatabasegetIncludeTriggerRoutines in interface Databasepublic final boolean getIncludePackages()
DatabasegetIncludePackages in interface Databasepublic final void setIncludePackages(boolean includePackages)
DatabasesetIncludePackages in interface Databasepublic final boolean getIncludePackageRoutines()
DatabasegetIncludePackageRoutines in interface Databasepublic final void setIncludePackageRoutines(boolean includePackageRoutines)
DatabasesetIncludePackageRoutines in interface Databasepublic final boolean getIncludePackageUDTs()
DatabasegetIncludePackageUDTs in interface Databasepublic final void setIncludePackageUDTs(boolean includePackageUDTs)
DatabasesetIncludePackageUDTs in interface Databasepublic final boolean getIncludePackageConstants()
DatabasegetIncludePackageConstants in interface Databasepublic final void setIncludePackageConstants(boolean includePackageConstants)
DatabasesetIncludePackageConstants in interface Databasepublic final boolean getIncludeUDTs()
DatabasegetIncludeUDTs in interface Databasepublic final void setIncludeUDTs(boolean includeUDTs)
DatabasesetIncludeUDTs in interface Databasepublic final boolean getIncludeSequences()
DatabasegetIncludeSequences in interface Databasepublic final void setIncludeSequences(boolean includeSequences)
DatabasesetIncludeSequences in interface Databasepublic final void setIncludeIndexes(boolean includeIndexes)
DatabasesetIncludeIndexes in interface Databasepublic final boolean getIncludeIndexes()
DatabasegetIncludeIndexes in interface Databasepublic final boolean getIncludePrimaryKeys()
DatabasegetIncludePrimaryKeys in interface Databasepublic final void setIncludePrimaryKeys(boolean includePrimaryKeys)
DatabasesetIncludePrimaryKeys in interface Databasepublic final boolean getIncludeUniqueKeys()
DatabasegetIncludeUniqueKeys in interface Databasepublic final void setIncludeUniqueKeys(boolean includeUniqueKeys)
DatabasesetIncludeUniqueKeys in interface Databasepublic final boolean getIncludeForeignKeys()
DatabasegetIncludeForeignKeys in interface Databasepublic final void setIncludeForeignKeys(boolean includeForeignKeys)
DatabasesetIncludeForeignKeys in interface Databasepublic final void setRegexFlags(List<RegexFlag> regexFlags)
DatabasesetRegexFlags in interface Databasepublic final List<RegexFlag> getRegexFlags()
DatabasegetRegexFlags in interface Databasepublic void setRecordVersionFields(String[] recordVersionFields)
DatabasesetRecordVersionFields in interface Databasepublic String[] getRecordVersionFields()
DatabasegetRecordVersionFields in interface Databasepublic void setRecordTimestampFields(String[] recordTimestampFields)
DatabasesetRecordTimestampFields in interface Databasepublic String[] getRecordTimestampFields()
DatabasegetRecordTimestampFields in interface Databasepublic void setSyntheticPrimaryKeys(String[] syntheticPrimaryKeys)
DatabasesetSyntheticPrimaryKeys in interface Databasepublic String[] getSyntheticPrimaryKeys()
DatabasegetSyntheticPrimaryKeys in interface Databasepublic void setOverridePrimaryKeys(String[] overridePrimaryKeys)
DatabasesetOverridePrimaryKeys in interface Databasepublic String[] getOverridePrimaryKeys()
DatabasegetOverridePrimaryKeys in interface Databasepublic void setSyntheticIdentities(String[] syntheticIdentities)
DatabasesetSyntheticIdentities in interface Databasepublic final String[] getSyntheticIdentities()
DatabasegetSyntheticIdentities in interface Databasepublic final void setConfiguredEnumTypes(List<EnumType> configuredEnumTypes)
DatabasesetConfiguredEnumTypes in interface Databasepublic final List<EnumType> getConfiguredEnumTypes()
DatabasegetConfiguredEnumTypes in interface Database@Deprecated public final void setConfiguredCustomTypes(List<CustomType> configuredCustomTypes)
DatabasesetConfiguredCustomTypes in interface Database@Deprecated public final List<CustomType> getConfiguredCustomTypes()
DatabasegetConfiguredCustomTypes in interface Database@Deprecated public final CustomType getConfiguredCustomType(String typeName)
DatabasegetConfiguredCustomType in interface Databasepublic final void setConfiguredForcedTypes(List<ForcedType> configuredForcedTypes)
DatabasesetConfiguredForcedTypes in interface Databasepublic final List<ForcedType> getConfiguredForcedTypes()
DatabasegetConfiguredForcedTypes in interface Databasepublic final int getLogSlowQueriesAfterSeconds()
DatabasegetLogSlowQueriesAfterSeconds in interface Databasepublic final void setLogSlowQueriesAfterSeconds(int logSlowQueriesAfterSeconds)
DatabasesetLogSlowQueriesAfterSeconds in interface Databasepublic final SchemaVersionProvider getSchemaVersionProvider()
DatabasegetSchemaVersionProvider in interface Databasepublic final void setSchemaVersionProvider(SchemaVersionProvider schemaVersionProvider)
DatabasesetSchemaVersionProvider in interface Databasepublic final CatalogVersionProvider getCatalogVersionProvider()
DatabasegetCatalogVersionProvider in interface Databasepublic final void setCatalogVersionProvider(CatalogVersionProvider catalogVersionProvider)
DatabasesetCatalogVersionProvider in interface Databasepublic final Comparator<Definition> getOrderProvider()
DatabasegetOrderProvider in interface Databasepublic final void setOrderProvider(Comparator<Definition> provider)
DatabasesetOrderProvider in interface Databasepublic final void setSupportsUnsignedTypes(boolean supportsUnsignedTypes)
DatabasesetSupportsUnsignedTypes in interface Databasepublic final boolean supportsUnsignedTypes()
DatabasesupportsUnsignedTypes in interface Databasepublic final void setIgnoreProcedureReturnValues(boolean ignoreProcedureReturnValues)
DatabasesetIgnoreProcedureReturnValues in interface Databasepublic final boolean ignoreProcedureReturnValues()
DatabaseignoreProcedureReturnValues in interface Databasepublic final void setDateAsTimestamp(boolean dateAsTimestamp)
DatabasesetDateAsTimestamp in interface Databasepublic final boolean dateAsTimestamp()
DatabasedateAsTimestamp in interface Databasepublic final void setIncludeRelations(boolean includeRelations)
DatabasesetIncludeRelations in interface Databasepublic final boolean includeRelations()
DatabaseincludeRelations in interface Databasepublic void setForceIntegerTypesOnZeroScaleDecimals(boolean forceIntegerTypesOnZeroScaleDecimals)
DatabasesetForceIntegerTypesOnZeroScaleDecimals in interface Databasepublic boolean getForceIntegerTypesOnZeroScaleDecimals()
DatabasegetForceIntegerTypesOnZeroScaleDecimals in interface Databasepublic final void setTableValuedFunctions(boolean tableValuedFunctions)
DatabasesetTableValuedFunctions in interface Databasepublic final boolean tableValuedFunctions()
DatabasetableValuedFunctions in interface Databasepublic final List<SequenceDefinition> getSequences(SchemaDefinition schema)
DatabasegetSequences in interface Databasepublic final List<IdentityDefinition> getIdentities(SchemaDefinition schema)
DatabasegetIdentities in interface Databasepublic final List<UniqueKeyDefinition> getUniqueKeys(SchemaDefinition schema)
DatabasegetUniqueKeys in interface Databasepublic final List<ForeignKeyDefinition> getForeignKeys(SchemaDefinition schema)
DatabasegetForeignKeys in interface Databasepublic final List<CheckConstraintDefinition> getCheckConstraints(SchemaDefinition schema)
DatabasegetCheckConstraints in interface Databasepublic final List<TableDefinition> getTables(SchemaDefinition schema)
Databasepublic final TableDefinition getTable(SchemaDefinition schema, String name)
Databasepublic final TableDefinition getTable(SchemaDefinition schema, String name, boolean ignoreCase)
Databasepublic final TableDefinition getTable(SchemaDefinition schema, Name name)
Databasepublic final TableDefinition getTable(SchemaDefinition schema, Name name, boolean ignoreCase)
Databasepublic final List<EnumDefinition> getEnums(SchemaDefinition schema)
Databasepublic final ForcedType getConfiguredForcedType(Definition definition)
DatabaseDefinition,
or null if no ForcedType matches the definition.getConfiguredForcedType in interface Databasepublic final ForcedType getConfiguredForcedType(Definition definition, DataTypeDefinition definedType)
DatabaseDefinition,
or null if no ForcedType matches the definition.getConfiguredForcedType in interface Databasepublic final EnumDefinition getEnum(SchemaDefinition schema, String name)
Databasepublic final EnumDefinition getEnum(SchemaDefinition schema, String name, boolean ignoreCase)
Databasepublic final EnumDefinition getEnum(SchemaDefinition schema, Name name)
Databasepublic final EnumDefinition getEnum(SchemaDefinition schema, Name name, boolean ignoreCase)
Databasepublic final List<DomainDefinition> getDomains(SchemaDefinition schema)
DatabasegetDomains in interface Databasepublic final DomainDefinition getDomain(SchemaDefinition schema, String name)
Databasepublic final DomainDefinition getDomain(SchemaDefinition schema, String name, boolean ignoreCase)
Databasepublic final DomainDefinition getDomain(SchemaDefinition schema, Name name)
Databasepublic final DomainDefinition getDomain(SchemaDefinition schema, Name name, boolean ignoreCase)
Databasepublic final List<ArrayDefinition> getArrays(SchemaDefinition schema)
Databasepublic final ArrayDefinition getArray(SchemaDefinition schema, String name)
Databasepublic final ArrayDefinition getArray(SchemaDefinition schema, String name, boolean ignoreCase)
Databasepublic final ArrayDefinition getArray(SchemaDefinition schema, Name name)
Databasepublic final ArrayDefinition getArray(SchemaDefinition schema, Name name, boolean ignoreCase)
Databasepublic final List<UDTDefinition> getUDTs(SchemaDefinition schema)
Databasepublic final UDTDefinition getUDT(SchemaDefinition schema, String name)
Databasepublic final UDTDefinition getUDT(SchemaDefinition schema, String name, boolean ignoreCase)
Databasepublic final UDTDefinition getUDT(SchemaDefinition schema, Name name)
Databasepublic final UDTDefinition getUDT(SchemaDefinition schema, Name name, boolean ignoreCase)
Databasepublic final List<UDTDefinition> getUDTs(PackageDefinition pkg)
Databasepublic final Relations getRelations()
DatabasegetRelations in interface Databasepublic final List<IndexDefinition> getIndexes(SchemaDefinition schema)
DatabasegetIndexes in interface Databasepublic final List<IndexDefinition> getIndexes(TableDefinition table)
DatabasegetIndexes in interface Databasepublic final List<RoutineDefinition> getRoutines(SchemaDefinition schema)
DatabasegetRoutines in interface Databasepublic final List<PackageDefinition> getPackages(SchemaDefinition schema)
DatabasegetPackages in interface Databasepublic PackageDefinition getPackage(SchemaDefinition schema, String inputName)
DatabasegetPackage in interface Databaseprotected static final <D extends Definition> D getDefinition(List<D> definitions, String name, boolean ignoreCase)
protected static final <D extends Definition> D getDefinition(List<D> definitions, Name name, boolean ignoreCase)
protected final <T extends Definition> List<T> filterSchema(List<T> definitions, SchemaDefinition schema, Map<SchemaDefinition,List<T>> cache)
protected final <T extends Definition> List<T> filterSchema(List<T> definitions, SchemaDefinition schema)
public final <T extends Definition> List<T> filterExcludeInclude(List<T> definitions)
DatabasefilterExcludeInclude in interface Databasepublic final <T extends Definition> List<T> sort(List<T> definitions)
DatabaseDatabase.getOrderProvider() defined in this database.public final List<Definition> getIncluded()
DatabasegetIncluded in interface Databasepublic final List<Definition> getExcluded()
DatabasegetExcluded in interface Databasepublic final List<Definition> getAll()
Databaseprotected final <T extends Definition> List<T> filterExcludeInclude(List<T> definitions, String[] e, String[] i, List<Database.Filter> f)
protected final Relations getRelations0()
public final boolean isArrayType(String dataType)
DatabaseisArrayType in interface Databasepublic void close()
Databaseclose in interface AutoCloseableclose in interface Databaseprotected abstract DSLContext create0()
protected List<IndexDefinition> getIndexes0() throws SQLException
SQLExceptionprotected abstract void loadPrimaryKeys(DefaultRelations r) throws SQLException
SQLExceptionprotected abstract void loadUniqueKeys(DefaultRelations r) throws SQLException
SQLExceptionprotected abstract void loadForeignKeys(DefaultRelations r) throws SQLException
SQLExceptionprotected abstract void loadCheckConstraints(DefaultRelations r) throws SQLException
CHECK constraints and store them to relations.SQLExceptionprotected abstract List<CatalogDefinition> getCatalogs0() throws SQLException
getCatalogs()SQLExceptionprotected abstract List<SchemaDefinition> getSchemata0() throws SQLException
getSchemata()SQLExceptionprotected abstract List<SequenceDefinition> getSequences0() throws SQLException
getTables(SchemaDefinition)SQLExceptionprotected abstract List<TableDefinition> getTables0() throws SQLException
getTables(SchemaDefinition)SQLExceptionprotected abstract List<RoutineDefinition> getRoutines0() throws SQLException
getRoutines(SchemaDefinition)SQLExceptionprotected abstract List<PackageDefinition> getPackages0() throws SQLException
getPackages(SchemaDefinition)SQLExceptionprotected abstract List<EnumDefinition> getEnums0() throws SQLException
getEnums(SchemaDefinition)SQLExceptionprotected abstract List<DomainDefinition> getDomains0() throws SQLException
getDomains(SchemaDefinition)SQLExceptionprotected abstract List<UDTDefinition> getUDTs0() throws SQLException
getEnums(SchemaDefinition)SQLExceptionprotected abstract List<ArrayDefinition> getArrays0() throws SQLException
getArrays(SchemaDefinition)SQLExceptionprotected final DataTypeDefinition getDataTypeForMAX_VAL(SchemaDefinition schema, BigInteger value)
Copyright © 2019. All rights reserved.