public class Database extends Object implements Serializable, XMLAppendable
| Constructor and Description |
|---|
Database() |
| Modifier and Type | Method and Description |
|---|---|
void |
appendTo(XMLBuilder builder) |
boolean |
equals(Object that) |
List<CatalogMappingType> |
getCatalogs() |
String |
getCatalogVersionProvider()
A custom version number that, if available, will be used to assess whether the
getInputCatalog() from a given catalog will need to be regenerated. |
List<CustomType> |
getCustomTypes()
Deprecated.
|
String |
getEmbeddableDomains()
A regular expression matching all domain type declarations for which wrapper types should be generated.
|
String |
getEmbeddablePrimaryKeys()
A regular expression matching all primary key declarations for which wrapper types should be generated, and for their referencing foreign keys.
|
List<EmbeddableDefinitionType> |
getEmbeddables() |
String |
getEmbeddableUniqueKeys()
A regular expression matching all unique key declarations for which wrapper types should be generated, and for their referencing foreign keys.
|
List<EnumType> |
getEnumTypes()
Deprecated.
|
String |
getExcludes()
All elements that are excluded from your schema.
|
List<ForcedType> |
getForcedTypes() |
String |
getIncludes()
All elements that are generated from your schema.
|
String |
getInputCatalog()
The catalog that is used locally as a source for meta information.
|
String |
getInputSchema()
The schema that is used locally as a source for meta information.
|
Integer |
getLogSlowQueriesAfterSeconds()
The number of seconds that are considered "slow" before a query is logged to indicate a bug, 0 for not logging.
|
Integer |
getLogSlowResultsAfterSeconds()
The number of seconds that are considered "slow" before a result set is logged to indicate a bug, 0 for not logging.
|
String |
getName()
The database dialect from jooq-meta.
|
String |
getOrderProvider()
A custom
Comparator that can compare two Definition objects to determine their order. |
String |
getOutputCatalog()
The catalog that is used in generated source code.
|
String |
getOutputSchema()
The schema that is used in generated source code.
|
String |
getOverridePrimaryKeys()
All (UNIQUE) key names that should be used instead of primary keys on
generated
UpdatableRecord. |
List<Property> |
getProperties() |
String |
getRecordTimestampFields()
All table and view columns that are used as "timestamp" fields for optimistic locking.
|
String |
getRecordVersionFields()
All table and view columns that are used as "version" fields for optimistic locking.
|
List<RegexFlag> |
getRegexFlags()
The flags that will be applied to all regular expressions from this configuration by default.
|
List<SchemaMappingType> |
getSchemata() |
String |
getSchemaVersionProvider()
A custom version number that, if available, will be used to assess whether the
getInputSchema() will need to be regenerated. |
String |
getSyntheticIdentities()
A regular expression matching all columns that represent identities.
|
SyntheticObjectsType |
getSyntheticObjects()
The synthetic objects configuration.
|
String |
getSyntheticPrimaryKeys()
A regular expression matching all columns that participate in "synthetic" primary keys,
which should be placed on generated
UpdatableRecord
To be used with:
UpdatableRecord.store()
UpdatableRecord.update()
UpdatableRecord.delete()
UpdatableRecord.refresh()
Synthetic primary keys will override existing primary keys. |
int |
hashCode() |
Boolean |
isDateAsTimestamp()
Generate
Timestamp fields for DATE columns. |
Boolean |
isForceIntegerTypesOnZeroScaleDecimals()
Historically, zero-scale decimal types are generated as their most appropriate, corresponding integer type (e.g.
|
Boolean |
isIgnoreProcedureReturnValues()
Deprecated.
This feature is deprecated as of jOOQ 3.6.0 and will be removed again in
jOOQ 4.0.
|
Boolean |
isIncludeCheckConstraints()
This flag indicates whether check constraints should be included in output produced by this database
|
Boolean |
isIncludeDomains()
This flag indicates whether domains should be included in output produced by this database
|
Boolean |
isIncludeEmbeddables()
This flag indicates whether embeddable types should be included in output produced by this database
|
Boolean |
isIncludeExcludeColumns()
This flag indicates whether include / exclude patterns should also match columns within tables.
|
Boolean |
isIncludeForeignKeys()
This flag indicates whether foreign keys should be included in output produced by this database
|
Boolean |
isIncludeIndexes()
This flag indicates whether indexes should be included in output produced by this database
|
Boolean |
isIncludeInvisibleColumns()
This flag indicates whether invisible columns should be included in output produced by this database
|
Boolean |
isIncludePackageConstants()
This flag indicates whether constants contained in packages should be included in output produced by this database
|
Boolean |
isIncludePackageRoutines()
This flag indicates whether routines contained in packages should be included in output produced by this database
|
Boolean |
isIncludePackages()
This flag indicates whether packages should be included in output produced by this database
|
Boolean |
isIncludePackageUDTs()
This flag indicates whether UDTs contained in packages should be included in output produced by this database
|
Boolean |
isIncludePrimaryKeys()
This flag indicates whether primary keys should be included in output produced by this database
|
Boolean |
isIncludeRoutines()
This flag indicates whether routines should be included in output produced by this database
|
Boolean |
isIncludeSequences()
This flag indicates whether sequences should be included in output produced by this database
|
Boolean |
isIncludeSystemCheckConstraints()
This flag indicates whether system generated check constraints should be included in output produced by this database
|
Boolean |
isIncludeSystemIndexes()
This flag indicates whether system generated indexes should be included in output produced by this database
|
Boolean |
isIncludeTables()
This flag indicates whether tables should be included in output produced by this database
|
Boolean |
isIncludeTriggerRoutines()
This flag indicates whether trigger implementation routines should be included in output produced by this database (e.g. in PostgreSQL)
|
Boolean |
isIncludeUDTs()
This flag indicates whether udts should be included in output produced by this database
|
Boolean |
isIncludeUniqueKeys()
This flag indicates whether unique keys should be included in output produced by this database
|
Boolean |
isIntegerDisplayWidths()
Include display width in type declaration.
|
Boolean |
isOutputCatalogToDefault()
A flag to indicate that the outputCatalog should be the "default" catalog,
which generates catalog-less, unqualified tables, procedures, etc.
|
Boolean |
isOutputSchemaToDefault()
A flag to indicate that the outputSchema should be the "default" schema,
which generates schema-less, unqualified tables, procedures, etc.
|
Boolean |
isRegexMatchesPartialQualification()
Whether regular expressions that match qualified object names also match partial qualifications (e.g.
|
Boolean |
isSqlMatchesPartialQualification()
Whether SQL queries that match qualified object names also match partial qualifications (e.g.
|
Boolean |
isTableValuedFunctions()
Whether table valued functions should be reported as tables.
|
Boolean |
isUnsignedTypes()
Generate jOOU data types for your unsigned data types, which are not natively supported in Java
|
void |
setCatalogs(List<CatalogMappingType> catalogs) |
void |
setCatalogVersionProvider(String value)
A custom version number that, if available, will be used to assess whether the
getInputCatalog() from a given catalog will need to be regenerated. |
void |
setCustomTypes(List<CustomType> customTypes)
Deprecated.
|
void |
setDateAsTimestamp(Boolean value)
Sets the value of the dateAsTimestamp property.
|
void |
setEmbeddableDomains(String value)
A regular expression matching all domain type declarations for which wrapper types should be generated.
|
void |
setEmbeddablePrimaryKeys(String value)
A regular expression matching all primary key declarations for which wrapper types should be generated, and for their referencing foreign keys.
|
void |
setEmbeddables(List<EmbeddableDefinitionType> embeddables) |
void |
setEmbeddableUniqueKeys(String value)
A regular expression matching all unique key declarations for which wrapper types should be generated, and for their referencing foreign keys.
|
void |
setEnumTypes(List<EnumType> enumTypes)
Deprecated.
|
void |
setExcludes(String value)
All elements that are excluded from your schema.
|
void |
setForcedTypes(List<ForcedType> forcedTypes) |
void |
setForceIntegerTypesOnZeroScaleDecimals(Boolean value)
Sets the value of the forceIntegerTypesOnZeroScaleDecimals property.
|
void |
setIgnoreProcedureReturnValues(Boolean value)
Deprecated.
|
void |
setIncludeCheckConstraints(Boolean value)
Sets the value of the includeCheckConstraints property.
|
void |
setIncludeDomains(Boolean value)
Sets the value of the includeDomains property.
|
void |
setIncludeEmbeddables(Boolean value)
Sets the value of the includeEmbeddables property.
|
void |
setIncludeExcludeColumns(Boolean value)
Sets the value of the includeExcludeColumns property.
|
void |
setIncludeForeignKeys(Boolean value)
Sets the value of the includeForeignKeys property.
|
void |
setIncludeIndexes(Boolean value)
Sets the value of the includeIndexes property.
|
void |
setIncludeInvisibleColumns(Boolean value)
Sets the value of the includeInvisibleColumns property.
|
void |
setIncludePackageConstants(Boolean value)
Sets the value of the includePackageConstants property.
|
void |
setIncludePackageRoutines(Boolean value)
Sets the value of the includePackageRoutines property.
|
void |
setIncludePackages(Boolean value)
Sets the value of the includePackages property.
|
void |
setIncludePackageUDTs(Boolean value)
Sets the value of the includePackageUDTs property.
|
void |
setIncludePrimaryKeys(Boolean value)
Sets the value of the includePrimaryKeys property.
|
void |
setIncludeRoutines(Boolean value)
Sets the value of the includeRoutines property.
|
void |
setIncludes(String value)
All elements that are generated from your schema.
|
void |
setIncludeSequences(Boolean value)
Sets the value of the includeSequences property.
|
void |
setIncludeSystemCheckConstraints(Boolean value)
Sets the value of the includeSystemCheckConstraints property.
|
void |
setIncludeSystemIndexes(Boolean value)
Sets the value of the includeSystemIndexes property.
|
void |
setIncludeTables(Boolean value)
Sets the value of the includeTables property.
|
void |
setIncludeTriggerRoutines(Boolean value)
Sets the value of the includeTriggerRoutines property.
|
void |
setIncludeUDTs(Boolean value)
Sets the value of the includeUDTs property.
|
void |
setIncludeUniqueKeys(Boolean value)
Sets the value of the includeUniqueKeys property.
|
void |
setInputCatalog(String value)
The catalog that is used locally as a source for meta information.
|
void |
setInputSchema(String value)
The schema that is used locally as a source for meta information.
|
void |
setIntegerDisplayWidths(Boolean value)
Sets the value of the integerDisplayWidths property.
|
void |
setLogSlowQueriesAfterSeconds(Integer value)
The number of seconds that are considered "slow" before a query is logged to indicate a bug, 0 for not logging.
|
void |
setLogSlowResultsAfterSeconds(Integer value)
The number of seconds that are considered "slow" before a result set is logged to indicate a bug, 0 for not logging.
|
void |
setName(String value)
The database dialect from jooq-meta.
|
void |
setOrderProvider(String value)
A custom
Comparator that can compare two Definition objects to determine their order. |
void |
setOutputCatalog(String value)
The catalog that is used in generated source code.
|
void |
setOutputCatalogToDefault(Boolean value)
Sets the value of the outputCatalogToDefault property.
|
void |
setOutputSchema(String value)
The schema that is used in generated source code.
|
void |
setOutputSchemaToDefault(Boolean value)
Sets the value of the outputSchemaToDefault property.
|
void |
setOverridePrimaryKeys(String value)
All (UNIQUE) key names that should be used instead of primary keys on
generated
UpdatableRecord. |
void |
setProperties(List<Property> properties) |
void |
setRecordTimestampFields(String value)
All table and view columns that are used as "timestamp" fields for optimistic locking.
|
void |
setRecordVersionFields(String value)
All table and view columns that are used as "version" fields for optimistic locking.
|
void |
setRegexMatchesPartialQualification(Boolean value)
Sets the value of the regexMatchesPartialQualification property.
|
void |
setSchemata(List<SchemaMappingType> schemata) |
void |
setSchemaVersionProvider(String value)
A custom version number that, if available, will be used to assess whether the
getInputSchema() will need to be regenerated. |
void |
setSqlMatchesPartialQualification(Boolean value)
Sets the value of the sqlMatchesPartialQualification property.
|
void |
setSyntheticIdentities(String value)
A regular expression matching all columns that represent identities.
|
void |
setSyntheticObjects(SyntheticObjectsType value)
The synthetic objects configuration.
|
void |
setSyntheticPrimaryKeys(String value)
A regular expression matching all columns that participate in "synthetic" primary keys,
which should be placed on generated
UpdatableRecord
To be used with:
UpdatableRecord.store()
UpdatableRecord.update()
UpdatableRecord.delete()
UpdatableRecord.refresh()
Synthetic primary keys will override existing primary keys. |
void |
setTableValuedFunctions(Boolean value)
Sets the value of the tableValuedFunctions property.
|
void |
setUnsignedTypes(Boolean value)
Sets the value of the unsignedTypes property.
|
String |
toString() |
Database |
withCatalogs(CatalogMappingType... values) |
Database |
withCatalogs(Collection<CatalogMappingType> values) |
Database |
withCatalogs(List<CatalogMappingType> catalogs) |
Database |
withCatalogVersionProvider(String value)
A custom version number that, if available, will be used to assess whether the
getInputCatalog() from a given catalog will need to be regenerated. |
Database |
withCustomTypes(Collection<CustomType> values)
Deprecated.
|
Database |
withCustomTypes(CustomType... values)
Deprecated.
|
Database |
withCustomTypes(List<CustomType> customTypes)
Deprecated.
|
Database |
withDateAsTimestamp(Boolean value) |
Database |
withEmbeddableDomains(String value)
A regular expression matching all domain type declarations for which wrapper types should be generated.
|
Database |
withEmbeddablePrimaryKeys(String value)
A regular expression matching all primary key declarations for which wrapper types should be generated, and for their referencing foreign keys.
|
Database |
withEmbeddables(Collection<EmbeddableDefinitionType> values) |
Database |
withEmbeddables(EmbeddableDefinitionType... values) |
Database |
withEmbeddables(List<EmbeddableDefinitionType> embeddables) |
Database |
withEmbeddableUniqueKeys(String value)
A regular expression matching all unique key declarations for which wrapper types should be generated, and for their referencing foreign keys.
|
Database |
withEnumTypes(Collection<EnumType> values)
Deprecated.
|
Database |
withEnumTypes(EnumType... values)
Deprecated.
|
Database |
withEnumTypes(List<EnumType> enumTypes)
Deprecated.
|
Database |
withExcludes(String value)
All elements that are excluded from your schema.
|
Database |
withForcedTypes(Collection<ForcedType> values) |
Database |
withForcedTypes(ForcedType... values) |
Database |
withForcedTypes(List<ForcedType> forcedTypes) |
Database |
withForceIntegerTypesOnZeroScaleDecimals(Boolean value) |
Database |
withIgnoreProcedureReturnValues(Boolean value) |
Database |
withIncludeCheckConstraints(Boolean value) |
Database |
withIncludeDomains(Boolean value) |
Database |
withIncludeEmbeddables(Boolean value) |
Database |
withIncludeExcludeColumns(Boolean value) |
Database |
withIncludeForeignKeys(Boolean value) |
Database |
withIncludeIndexes(Boolean value) |
Database |
withIncludeInvisibleColumns(Boolean value) |
Database |
withIncludePackageConstants(Boolean value) |
Database |
withIncludePackageRoutines(Boolean value) |
Database |
withIncludePackages(Boolean value) |
Database |
withIncludePackageUDTs(Boolean value) |
Database |
withIncludePrimaryKeys(Boolean value) |
Database |
withIncludeRoutines(Boolean value) |
Database |
withIncludes(String value)
All elements that are generated from your schema.
|
Database |
withIncludeSequences(Boolean value) |
Database |
withIncludeSystemCheckConstraints(Boolean value) |
Database |
withIncludeSystemIndexes(Boolean value) |
Database |
withIncludeTables(Boolean value) |
Database |
withIncludeTriggerRoutines(Boolean value) |
Database |
withIncludeUDTs(Boolean value) |
Database |
withIncludeUniqueKeys(Boolean value) |
Database |
withInputCatalog(String value)
The catalog that is used locally as a source for meta information.
|
Database |
withInputSchema(String value)
The schema that is used locally as a source for meta information.
|
Database |
withIntegerDisplayWidths(Boolean value) |
Database |
withLogSlowQueriesAfterSeconds(Integer value)
The number of seconds that are considered "slow" before a query is logged to indicate a bug, 0 for not logging.
|
Database |
withLogSlowResultsAfterSeconds(Integer value)
The number of seconds that are considered "slow" before a result set is logged to indicate a bug, 0 for not logging.
|
Database |
withName(String value)
The database dialect from jooq-meta.
|
Database |
withOrderProvider(String value)
A custom
Comparator that can compare two Definition objects to determine their order. |
Database |
withOutputCatalog(String value)
The catalog that is used in generated source code.
|
Database |
withOutputCatalogToDefault(Boolean value) |
Database |
withOutputSchema(String value)
The schema that is used in generated source code.
|
Database |
withOutputSchemaToDefault(Boolean value) |
Database |
withOverridePrimaryKeys(String value)
All (UNIQUE) key names that should be used instead of primary keys on
generated
UpdatableRecord. |
Database |
withProperties(Collection<Property> values) |
Database |
withProperties(List<Property> properties) |
Database |
withProperties(Property... values) |
Database |
withRecordTimestampFields(String value)
All table and view columns that are used as "timestamp" fields for optimistic locking.
|
Database |
withRecordVersionFields(String value)
All table and view columns that are used as "version" fields for optimistic locking.
|
Database |
withRegexFlags(Collection<RegexFlag> values)
The flags that will be applied to all regular expressions from this configuration by default.
|
Database |
withRegexFlags(RegexFlag... values)
The flags that will be applied to all regular expressions from this configuration by default.
|
Database |
withRegexMatchesPartialQualification(Boolean value) |
Database |
withSchemata(Collection<SchemaMappingType> values) |
Database |
withSchemata(List<SchemaMappingType> schemata) |
Database |
withSchemata(SchemaMappingType... values) |
Database |
withSchemaVersionProvider(String value)
A custom version number that, if available, will be used to assess whether the
getInputSchema() will need to be regenerated. |
Database |
withSqlMatchesPartialQualification(Boolean value) |
Database |
withSyntheticIdentities(String value)
A regular expression matching all columns that represent identities.
|
Database |
withSyntheticObjects(SyntheticObjectsType value)
The synthetic objects configuration.
|
Database |
withSyntheticPrimaryKeys(String value)
A regular expression matching all columns that participate in "synthetic" primary keys,
which should be placed on generated
UpdatableRecord
To be used with:
UpdatableRecord.store()
UpdatableRecord.update()
UpdatableRecord.delete()
UpdatableRecord.refresh()
Synthetic primary keys will override existing primary keys. |
Database |
withTableValuedFunctions(Boolean value) |
Database |
withUnsignedTypes(Boolean value) |
protected String name
protected Boolean regexMatchesPartialQualification
protected Boolean sqlMatchesPartialQualification
protected String includes
protected String excludes
protected Boolean includeExcludeColumns
protected Boolean includeTables
protected Boolean includeEmbeddables
protected Boolean includeRoutines
protected Boolean includeTriggerRoutines
protected Boolean includePackages
protected Boolean includePackageRoutines
protected Boolean includePackageUDTs
protected Boolean includePackageConstants
protected Boolean includeUDTs
protected Boolean includeDomains
protected Boolean includeSequences
protected Boolean includeIndexes
protected Boolean includePrimaryKeys
protected Boolean includeUniqueKeys
protected Boolean includeForeignKeys
protected Boolean includeCheckConstraints
protected Boolean includeSystemIndexes
protected Boolean includeSystemCheckConstraints
protected Boolean includeInvisibleColumns
protected String recordVersionFields
protected String recordTimestampFields
protected SyntheticObjectsType syntheticObjects
protected String syntheticIdentities
protected String syntheticPrimaryKeys
protected String overridePrimaryKeys
protected Boolean dateAsTimestamp
protected Boolean ignoreProcedureReturnValues
protected Boolean unsignedTypes
protected Boolean integerDisplayWidths
protected String inputCatalog
protected String outputCatalog
protected Boolean outputCatalogToDefault
protected String inputSchema
protected String outputSchema
protected Boolean outputSchemaToDefault
protected String schemaVersionProvider
protected String catalogVersionProvider
protected String orderProvider
protected String embeddablePrimaryKeys
protected String embeddableUniqueKeys
protected String embeddableDomains
protected Boolean forceIntegerTypesOnZeroScaleDecimals
protected Boolean tableValuedFunctions
protected Integer logSlowQueriesAfterSeconds
protected Integer logSlowResultsAfterSeconds
protected List<CatalogMappingType> catalogs
protected List<SchemaMappingType> schemata
protected List<EmbeddableDefinitionType> embeddables
protected List<CustomType> customTypes
protected List<ForcedType> forcedTypes
public String getName()
org.util.[database].[database]Database.
Natively supported values are:
meta.ase.ASEDatabasemeta.cockroachdb.CockroachDBDatabasemeta.db2.DB2DatabaseDerbyDatabaseFirebirdDatabaseH2Databasemeta.hana.HanaDatabaseHSQLDBDatabasemeta.informix.InformixDatabasemeta.ingres.IngresDatabaseMariaDBDatabaseMySQLDatabasemeta.oracle.OracleDatabasePostgresDatabasemeta.redshift.RedshiftDatabaseSQLiteDatabasemeta.sqlserver.SQLServerDatabasemeta.sybase.SybaseDatabasemeta.vertica.VerticaDatabaseThis value can be used to reverse-engineer generic JDBC DatabaseMetaData (e.g. for MS Access).
This value can be used to reverse-engineer standard jOOQ-meta XML formats.
This value can be used to reverse-engineer JPA annotated entities
You can also provide your own org.jooq.meta.Database implementation here, if your database is currently not supported
public void setName(String value)
org.util.[database].[database]Database.
Natively supported values are:
meta.ase.ASEDatabasemeta.cockroachdb.CockroachDBDatabasemeta.db2.DB2DatabaseDerbyDatabaseFirebirdDatabaseH2Databasemeta.hana.HanaDatabaseHSQLDBDatabasemeta.informix.InformixDatabasemeta.ingres.IngresDatabaseMariaDBDatabaseMySQLDatabasemeta.oracle.OracleDatabasePostgresDatabasemeta.redshift.RedshiftDatabaseSQLiteDatabasemeta.sqlserver.SQLServerDatabasemeta.sybase.SybaseDatabasemeta.vertica.VerticaDatabaseThis value can be used to reverse-engineer generic JDBC DatabaseMetaData (e.g. for MS Access).
This value can be used to reverse-engineer standard jOOQ-meta XML formats.
This value can be used to reverse-engineer JPA annotated entities
You can also provide your own org.jooq.meta.Database implementation here, if your database is currently not supported
public List<RegexFlag> getRegexFlags()
The default value is "COMMENTS CASE_INSENSITIVE"Gets the value of the regexFlags property.
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the regexFlags property.
For example, to add a new item, do as follows:
getRegexFlags().add(newItem);
Objects of the following type(s) are allowed in the list
RegexFlag
public Boolean isRegexMatchesPartialQualification()
Booleanpublic void setRegexMatchesPartialQualification(Boolean value)
value - allowed object is
Booleanpublic Boolean isSqlMatchesPartialQualification()
Booleanpublic void setSqlMatchesPartialQualification(Boolean value)
value - allowed object is
Booleanpublic String getIncludes()
This is a Java regular expression. Use the pipe to separate several expressions. Watch out for case-sensitivity. Depending on your database, this might be important!
You can create case-insensitive regular expressions
using this syntax: (?i:expr)
Whitespace is ignored and comments are possible unless overridden in getRegexFlags().
public void setIncludes(String value)
This is a Java regular expression. Use the pipe to separate several expressions. Watch out for case-sensitivity. Depending on your database, this might be important!
You can create case-insensitive regular expressions
using this syntax: (?i:expr)
Whitespace is ignored and comments are possible unless overridden in getRegexFlags().
public String getExcludes()
This is a Java regular expression. Use the pipe to separate several expressions. Excludes match before includes, i.e. excludes have a higher priority.
public void setExcludes(String value)
This is a Java regular expression. Use the pipe to separate several expressions. Excludes match before includes, i.e. excludes have a higher priority.
public Boolean isIncludeExcludeColumns()
Booleanpublic void setIncludeExcludeColumns(Boolean value)
value - allowed object is
Booleanpublic Boolean isIncludeTables()
Booleanpublic void setIncludeTables(Boolean value)
value - allowed object is
Booleanpublic Boolean isIncludeEmbeddables()
Booleanpublic void setIncludeEmbeddables(Boolean value)
value - allowed object is
Booleanpublic Boolean isIncludeRoutines()
Booleanpublic void setIncludeRoutines(Boolean value)
value - allowed object is
Booleanpublic Boolean isIncludeTriggerRoutines()
Booleanpublic void setIncludeTriggerRoutines(Boolean value)
value - allowed object is
Booleanpublic Boolean isIncludePackages()
Booleanpublic void setIncludePackages(Boolean value)
value - allowed object is
Booleanpublic Boolean isIncludePackageRoutines()
Booleanpublic void setIncludePackageRoutines(Boolean value)
value - allowed object is
Booleanpublic Boolean isIncludePackageUDTs()
Booleanpublic void setIncludePackageUDTs(Boolean value)
value - allowed object is
Booleanpublic Boolean isIncludePackageConstants()
Booleanpublic void setIncludePackageConstants(Boolean value)
value - allowed object is
Booleanpublic Boolean isIncludeUDTs()
Booleanpublic void setIncludeUDTs(Boolean value)
value - allowed object is
Booleanpublic Boolean isIncludeDomains()
Booleanpublic void setIncludeDomains(Boolean value)
value - allowed object is
Booleanpublic Boolean isIncludeSequences()
Booleanpublic void setIncludeSequences(Boolean value)
value - allowed object is
Booleanpublic Boolean isIncludeIndexes()
Booleanpublic void setIncludeIndexes(Boolean value)
value - allowed object is
Booleanpublic Boolean isIncludePrimaryKeys()
Booleanpublic void setIncludePrimaryKeys(Boolean value)
value - allowed object is
Booleanpublic Boolean isIncludeUniqueKeys()
Booleanpublic void setIncludeUniqueKeys(Boolean value)
value - allowed object is
Booleanpublic Boolean isIncludeForeignKeys()
Booleanpublic void setIncludeForeignKeys(Boolean value)
value - allowed object is
Booleanpublic Boolean isIncludeCheckConstraints()
Booleanpublic void setIncludeCheckConstraints(Boolean value)
value - allowed object is
Booleanpublic Boolean isIncludeSystemIndexes()
Booleanpublic void setIncludeSystemIndexes(Boolean value)
value - allowed object is
Booleanpublic Boolean isIncludeSystemCheckConstraints()
Booleanpublic void setIncludeSystemCheckConstraints(Boolean value)
value - allowed object is
Booleanpublic Boolean isIncludeInvisibleColumns()
Booleanpublic void setIncludeInvisibleColumns(Boolean value)
value - allowed object is
Booleanpublic String getRecordVersionFields()
This is a Java regular expression. Use the pipe to separate several expressions.
See UpdatableRecord.store() and UpdatableRecord.delete() for details about optimistic locking.
public void setRecordVersionFields(String value)
This is a Java regular expression. Use the pipe to separate several expressions.
See UpdatableRecord.store() and UpdatableRecord.delete() for details about optimistic locking.
public String getRecordTimestampFields()
This is a Java regular expression. Use the pipe to separate several expressions.
See UpdatableRecord.store() and UpdatableRecord.delete() for details about optimistic locking.
public void setRecordTimestampFields(String value)
This is a Java regular expression. Use the pipe to separate several expressions.
See UpdatableRecord.store() and UpdatableRecord.delete() for details about optimistic locking.
public SyntheticObjectsType getSyntheticObjects()
public void setSyntheticObjects(SyntheticObjectsType value)
public String getSyntheticIdentities()
To be used if columns are not detected as automatically as identities.
public void setSyntheticIdentities(String value)
To be used if columns are not detected as automatically as identities.
public String getSyntheticPrimaryKeys()
UpdatableRecord
To be used with:
Synthetic primary keys will override existing primary keys.
public void setSyntheticPrimaryKeys(String value)
UpdatableRecord
To be used with:
Synthetic primary keys will override existing primary keys.
public String getOverridePrimaryKeys()
UpdatableRecord.
To be used with:
If several keys match, a warning is emitted and the first one encountered will be used.
This flag will also replace synthetic primary keys, if it matches.
public void setOverridePrimaryKeys(String value)
UpdatableRecord.
To be used with:
If several keys match, a warning is emitted and the first one encountered will be used.
This flag will also replace synthetic primary keys, if it matches.
public Boolean isDateAsTimestamp()
Timestamp fields for DATE columns. This is particularly useful for Oracle databasesBooleanpublic void setDateAsTimestamp(Boolean value)
value - allowed object is
Boolean@Deprecated public Boolean isIgnoreProcedureReturnValues()
In jOOQ 3.6.0, #4106 was implemented to support Transact-SQL's
optional return values from stored procedures. This turns all procedures
into Routine
Boolean@Deprecated public void setIgnoreProcedureReturnValues(Boolean value)
value - allowed object is
Booleanpublic Boolean isUnsignedTypes()
Booleanpublic void setUnsignedTypes(Boolean value)
value - allowed object is
Booleanpublic Boolean isIntegerDisplayWidths()
Booleanpublic void setIntegerDisplayWidths(Boolean value)
value - allowed object is
Booleanpublic String getInputCatalog()
This cannot be combined with the getCatalogs() configuration element.
If left empty (and without any getCatalogs() configuration element), jOOQ will generate all available catalogs.
public void setInputCatalog(String value)
This cannot be combined with the getCatalogs() configuration element.
If left empty (and without any getCatalogs() configuration element), jOOQ will generate all available catalogs.
public String getOutputCatalog()
Use this to override your local development
catalog name for source code generation. If not specified, this
will be the same as getInputCatalog()
This will be ignored if isOutputCatalogToDefault() is set to true
public void setOutputCatalog(String value)
Use this to override your local development
catalog name for source code generation. If not specified, this
will be the same as getInputCatalog()
This will be ignored if isOutputCatalogToDefault() is set to true
public Boolean isOutputCatalogToDefault()
Booleanpublic void setOutputCatalogToDefault(Boolean value)
value - allowed object is
Booleanpublic String getInputSchema()
This cannot be combined with the getSchemata() configuration element.
If left empty (and without any getSchemata() configuration element), jOOQ will generate all available schemata.
public void setInputSchema(String value)
This cannot be combined with the getSchemata() configuration element.
If left empty (and without any getSchemata() configuration element), jOOQ will generate all available schemata.
public String getOutputSchema()
Use this to override your local development
schema name for source code generation. If not specified, this
will be the same as getInputSchema().
This will be ignored if isOutputSchemaToDefault() is set to true
public void setOutputSchema(String value)
Use this to override your local development
schema name for source code generation. If not specified, this
will be the same as getInputSchema().
This will be ignored if isOutputSchemaToDefault() is set to true
public Boolean isOutputSchemaToDefault()
Booleanpublic void setOutputSchemaToDefault(Boolean value)
value - allowed object is
Booleanpublic String getSchemaVersionProvider()
getInputSchema() will need to be regenerated.
There are three operation modes for this element:
SchemaVersionProvider. Such classes must provide a default constructor
Schema versions will be generated into the Generated annotation on
generated artefacts.
public void setSchemaVersionProvider(String value)
getInputSchema() will need to be regenerated.
There are three operation modes for this element:
SchemaVersionProvider. Such classes must provide a default constructor
Schema versions will be generated into the Generated annotation on
generated artefacts.
public String getCatalogVersionProvider()
getInputCatalog() from a given catalog will need to be regenerated.
There are three operation modes for this element:
CatalogVersionProvider. Such classes must provide a default constructor
Catalog versions will be generated into the Generated annotation on
generated artefacts.
public void setCatalogVersionProvider(String value)
getInputCatalog() from a given catalog will need to be regenerated.
There are three operation modes for this element:
CatalogVersionProvider. Such classes must provide a default constructor
Catalog versions will be generated into the Generated annotation on
generated artefacts.
public String getOrderProvider()
Comparator that can compare two Definition objects to determine their order.
This comparator can be used to influence the order of any object that is produced by jOOQ meta, and thus, indirectly, the order of declared objects in generated code.
public void setOrderProvider(String value)
Comparator that can compare two Definition objects to determine their order.
This comparator can be used to influence the order of any object that is produced by jOOQ meta, and thus, indirectly, the order of declared objects in generated code.
public String getEmbeddablePrimaryKeys()
public void setEmbeddablePrimaryKeys(String value)
public String getEmbeddableUniqueKeys()
public void setEmbeddableUniqueKeys(String value)
public String getEmbeddableDomains()
public void setEmbeddableDomains(String value)
public Boolean isForceIntegerTypesOnZeroScaleDecimals()
getForcedTypes(), the latter will win.Booleanpublic void setForceIntegerTypesOnZeroScaleDecimals(Boolean value)
value - allowed object is
Booleanpublic Boolean isTableValuedFunctions()
If this is deactivated, such functions are not generated as tables, but as ordinary routines. This is particularly useful for backwards- compatibility between jOOQ 3.8 and previous versions, when using TABLE and VARRAY types in Oracle.
While this flag defaults to true for most databases, it defaults to false for Oracle.
Booleanpublic void setTableValuedFunctions(Boolean value)
value - allowed object is
Booleanpublic Integer getLogSlowQueriesAfterSeconds()
public void setLogSlowQueriesAfterSeconds(Integer value)
public Integer getLogSlowResultsAfterSeconds()
public void setLogSlowResultsAfterSeconds(Integer value)
public List<CatalogMappingType> getCatalogs()
public void setCatalogs(List<CatalogMappingType> catalogs)
public List<SchemaMappingType> getSchemata()
public void setSchemata(List<SchemaMappingType> schemata)
public List<EmbeddableDefinitionType> getEmbeddables()
public void setEmbeddables(List<EmbeddableDefinitionType> embeddables)
@Deprecated public List<CustomType> getCustomTypes()
@Deprecated public void setCustomTypes(List<CustomType> customTypes)
@Deprecated public List<EnumType> getEnumTypes()
@Deprecated public void setEnumTypes(List<EnumType> enumTypes)
public List<ForcedType> getForcedTypes()
public void setForcedTypes(List<ForcedType> forcedTypes)
public Database withName(String value)
org.util.[database].[database]Database.
Natively supported values are:
meta.ase.ASEDatabasemeta.cockroachdb.CockroachDBDatabasemeta.db2.DB2DatabaseDerbyDatabaseFirebirdDatabaseH2Databasemeta.hana.HanaDatabaseHSQLDBDatabasemeta.informix.InformixDatabasemeta.ingres.IngresDatabaseMariaDBDatabaseMySQLDatabasemeta.oracle.OracleDatabasePostgresDatabasemeta.redshift.RedshiftDatabaseSQLiteDatabasemeta.sqlserver.SQLServerDatabasemeta.sybase.SybaseDatabasemeta.vertica.VerticaDatabaseThis value can be used to reverse-engineer generic JDBC DatabaseMetaData (e.g. for MS Access).
This value can be used to reverse-engineer standard jOOQ-meta XML formats.
This value can be used to reverse-engineer JPA annotated entities
You can also provide your own org.jooq.meta.Database implementation here, if your database is currently not supported
public Database withRegexFlags(RegexFlag... values)
The default value is "COMMENTS CASE_INSENSITIVE"Gets the value of the regexFlags property.
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the regexFlags property.
For example, to add a new item, do as follows:
getRegexFlags().add(newItem);
Objects of the following type(s) are allowed in the list
RegexFlag
public Database withRegexFlags(Collection<RegexFlag> values)
The default value is "COMMENTS CASE_INSENSITIVE"Gets the value of the regexFlags property.
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the regexFlags property.
For example, to add a new item, do as follows:
getRegexFlags().add(newItem);
Objects of the following type(s) are allowed in the list
RegexFlag
public Database withRegexMatchesPartialQualification(Boolean value)
public Database withSqlMatchesPartialQualification(Boolean value)
public Database withIncludes(String value)
This is a Java regular expression. Use the pipe to separate several expressions. Watch out for case-sensitivity. Depending on your database, this might be important!
You can create case-insensitive regular expressions
using this syntax: (?i:expr)
Whitespace is ignored and comments are possible unless overridden in getRegexFlags().
public Database withExcludes(String value)
This is a Java regular expression. Use the pipe to separate several expressions. Excludes match before includes, i.e. excludes have a higher priority.
public Database withRecordVersionFields(String value)
This is a Java regular expression. Use the pipe to separate several expressions.
See UpdatableRecord.store() and UpdatableRecord.delete() for details about optimistic locking.
public Database withRecordTimestampFields(String value)
This is a Java regular expression. Use the pipe to separate several expressions.
See UpdatableRecord.store() and UpdatableRecord.delete() for details about optimistic locking.
public Database withSyntheticObjects(SyntheticObjectsType value)
public Database withSyntheticIdentities(String value)
To be used if columns are not detected as automatically as identities.
public Database withSyntheticPrimaryKeys(String value)
UpdatableRecord
To be used with:
Synthetic primary keys will override existing primary keys.
public Database withOverridePrimaryKeys(String value)
UpdatableRecord.
To be used with:
If several keys match, a warning is emitted and the first one encountered will be used.
This flag will also replace synthetic primary keys, if it matches.
public Database withInputCatalog(String value)
This cannot be combined with the getCatalogs() configuration element.
If left empty (and without any getCatalogs() configuration element), jOOQ will generate all available catalogs.
public Database withOutputCatalog(String value)
Use this to override your local development
catalog name for source code generation. If not specified, this
will be the same as getInputCatalog()
This will be ignored if isOutputCatalogToDefault() is set to true
public Database withInputSchema(String value)
This cannot be combined with the getSchemata() configuration element.
If left empty (and without any getSchemata() configuration element), jOOQ will generate all available schemata.
public Database withOutputSchema(String value)
Use this to override your local development
schema name for source code generation. If not specified, this
will be the same as getInputSchema().
This will be ignored if isOutputSchemaToDefault() is set to true
public Database withSchemaVersionProvider(String value)
getInputSchema() will need to be regenerated.
There are three operation modes for this element:
SchemaVersionProvider. Such classes must provide a default constructor
Schema versions will be generated into the Generated annotation on
generated artefacts.
public Database withCatalogVersionProvider(String value)
getInputCatalog() from a given catalog will need to be regenerated.
There are three operation modes for this element:
CatalogVersionProvider. Such classes must provide a default constructor
Catalog versions will be generated into the Generated annotation on
generated artefacts.
public Database withOrderProvider(String value)
Comparator that can compare two Definition objects to determine their order.
This comparator can be used to influence the order of any object that is produced by jOOQ meta, and thus, indirectly, the order of declared objects in generated code.
public Database withEmbeddablePrimaryKeys(String value)
public Database withEmbeddableUniqueKeys(String value)
public Database withEmbeddableDomains(String value)
public Database withForceIntegerTypesOnZeroScaleDecimals(Boolean value)
public Database withLogSlowQueriesAfterSeconds(Integer value)
public Database withLogSlowResultsAfterSeconds(Integer value)
public Database withProperties(Collection<Property> values)
public Database withCatalogs(CatalogMappingType... values)
public Database withCatalogs(Collection<CatalogMappingType> values)
public Database withCatalogs(List<CatalogMappingType> catalogs)
public Database withSchemata(SchemaMappingType... values)
public Database withSchemata(Collection<SchemaMappingType> values)
public Database withSchemata(List<SchemaMappingType> schemata)
public Database withEmbeddables(EmbeddableDefinitionType... values)
public Database withEmbeddables(Collection<EmbeddableDefinitionType> values)
public Database withEmbeddables(List<EmbeddableDefinitionType> embeddables)
@Deprecated public Database withCustomTypes(CustomType... values)
@Deprecated public Database withCustomTypes(Collection<CustomType> values)
@Deprecated public Database withCustomTypes(List<CustomType> customTypes)
@Deprecated public Database withEnumTypes(EnumType... values)
@Deprecated public Database withEnumTypes(Collection<EnumType> values)
@Deprecated public Database withEnumTypes(List<EnumType> enumTypes)
public Database withForcedTypes(ForcedType... values)
public Database withForcedTypes(Collection<ForcedType> values)
public Database withForcedTypes(List<ForcedType> forcedTypes)
public final void appendTo(XMLBuilder builder)
appendTo in interface XMLAppendableCopyright © 2021. All rights reserved.