- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractConfiguration,DefaultConfiguration,MockConfiguration
Configuration configures a DSLContext, providing it
with information for query rendering and execution.
A Configuration wraps all information elements that are
needed...
- by a
RenderContextto renderQueryobjects andQueryParts - by a
BindContextto bind values toQueryobjects andQueryParts - by a
QueryorRoutineobject to execute themselves
A Configuration is composed of types composing its state and of
SPIs:
Types composing its state:
dialect(): TheSQLDialectthat defines the underlying database's behaviour when generating SQL syntax, or bind variables, or when executing the querysettings(): TheSettingsthat define general jOOQ behaviourdata(): AMapcontaining user-defined data for theScopeof this configuration.
SPIs:
connectionProvider(): TheConnectionProviderthat defines the semantics ofConnectionProvider.acquire()andConnectionProvider.release(Connection)for all queries executed in the context of thisConfiguration.
jOOQ-provided default implementations include:DefaultConnectionProvider: a non-thread-safe implementation that wraps a single JDBCConnection. Ideal for batch processing.DataSourceConnectionProvider: a possibly thread-safe implementation that wraps a JDBCDataSource. Ideal for use with connection pools, Java EE, or Spring.
executeListenerProviders(): A set ofExecuteListenerProviderthat implementQueryexecution lifecycle management.
jOOQ-provided example implementations include:LoggerListener: generating default query execution log output (active by default)StopWatchListener: generating default query execution speed log output (inactive by default)
executorProvider(): A provider for anExecutor, which is used by default, in the absence of an explicit executor, to execute asynchronous logic throughout the jOOQ API, such as for exampleResultQuery.fetchAsync().metaProvider(): A provider for theDSLContext.meta()object which is used to look up database meta data from various jOOQ APIs, such as for example theDSLContext.parser().migrationListenerProviders(): A set ofMigrationListenerProviderthat allow for listening to the database migration lifecycle.recordListenerProviders(): A set ofRecordListenerProviderthat implementRecordfetching and storing lifecycle management, specifically for use withUpdatableRecord.
jOOQ does not provide any implementations.recordMapperProvider(): TheRecordMapperProviderthat defines and implements the behaviour ofRecord.into(Class),ResultQuery.fetchInto(Class),Cursor.fetchInto(Class), and various related methods.
jOOQ-provided default implementations include:DefaultRecordMapperProvider: an implementation delegating to theDefaultRecordMapper, which implements the most common mapping use-cases.
recordUnmapperProvider(): The inverse of therecordMapperProvider()that allows to implement the behaviour ofRecord.from(Object), and various related methods.transactionProvider(): TheTransactionProviderthat defines and implements the behaviour of theDSLContext.transaction(TransactionalRunnable)andDSLContext.transactionResult(TransactionalCallable)methods.
jOOQ-provided default implementations include:DefaultTransactionProvider: an implementation backed by JDBC directly, viaConnection.commit(),Connection.rollback(), andConnection.rollback(Savepoint)for nested transactions.
unwrapperProvider(): AnUnwrapperProviderthat allows for injecting custom JDBCWrapper.unwrap(Class)behaviour.visitListenerProviders(): A set ofVisitListenerProviderthat implementQueryrendering and variable binding lifecycle management, and that are allowed to implement query transformation - e.g. to implement row-level security, or multi-tenancy.
jOOQ does not provide any implementations.
Thread safety
The simplest usage of a Configuration instance is to use it
exactly for a single Query execution, disposing it immediately.
This will make it very simple to implement thread-safe behaviour, but
reflection caches will not be used optimally, e.g. when using
DefaultRecordMapper.
At the same time, jOOQ does not require Configuration instances
to be that short-lived. Thread-safety will then be delegated to component
objects, such as the ConnectionProvider, the ExecuteListener
list, etc.
For a Configuration to be used in a thread safe way, all
set() methods must be avoided post initialisation, and
settings() must not be modified either. If you wish to create a
derived configuration for local usage, with some configuration parts changed,
use the various derive() methods, instead.
- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescription@NotNull AuditProviderGet the configuredAuditProviderfrom this configuration.@NotNull CacheProviderGet this configuration's underlying cache provider.@NotNull CharsetProviderGet the configuredCharsetProviderfrom this configuration.@NotNull Clockclock()Get this configuration'sClock, which is used for optimistic locking, transaction time, and other time-depending features.default booleanWhether this is a commercial edition of jOOQ.booleancommercial(Supplier<String> logMessage) Whether this is a commercial edition of jOOQ, logging a warning message, if not.@NotNull CommitProviderGet this configuration's underlying commit provider.@NotNull io.r2dbc.spi.ConnectionFactoryGet this configuration's underlying R2DBC connection factory.@NotNull ConnectionProviderGet this configuration's underlying connection provider.@NotNull ConverterProviderGet the configuredConverterProviderfrom this configuration.data()Get all custom data from thisConfiguration.@Nullable ObjectGet some custom data from thisConfiguration.@Nullable ObjectSet some custom data to thisConfiguration.@NotNull Configurationderive()Create a derived configuration from this one, without changing any properties.@NotNull Configurationderive(io.r2dbc.spi.ConnectionFactory newConnectionFactory) Create a derived configuration from this one, with a new R2DBC connection factory.@NotNull Configurationderive(Connection newConnection) Create a derived configuration from this one, with a new connection wrapped in aDefaultConnectionProvider.@NotNull ConfigurationCreate a derived configuration from this one, with a newClock.@NotNull ConfigurationCreate a derived configuration from this one, with a new executor.@NotNull Configurationderive(DataSource newDataSource) Create a derived configuration from this one, with a new data source wrapped in aDataSourceConnectionProvider.@NotNull Configurationderive(AuditProvider newAuditProvider) Create a derived configuration from this one, with a new audit provider.@NotNull Configurationderive(CacheProvider newCacheProvider) Create a derived configuration from this one, with a new cache provider.@NotNull Configurationderive(CharsetProvider newCharsetProvider) Create a derived configuration from this one, with a new charset provider.@NotNull Configurationderive(CommitProvider newCommitProvider) Create a derived configuration from this one, with a new commit provider.@NotNull ConfigurationCreate a derived configuration from this one, with new settings.@NotNull Configurationderive(ConnectionProvider newConnectionProvider) Create a derived configuration from this one, with a new connection provider.@NotNull Configurationderive(ConverterProvider newConverterProvider) Create a derived configuration from this one, with new converter provider.@NotNull Configurationderive(DiagnosticsListener... newDiagnosticsListeners) Create a derived configuration from this one, with new diagnostics listeners.@NotNull Configurationderive(DiagnosticsListenerProvider... newDiagnosticsListenerProviders) Create a derived configuration from this one, with new diagnostics listener providers.@NotNull Configurationderive(ExecuteListener... newExecuteListeners) Create a derived configuration from this one, with new execute listeners.@NotNull Configurationderive(ExecuteListenerProvider... newExecuteListenerProviders) Create a derived configuration from this one, with new execute listener providers.@NotNull Configurationderive(ExecutorProvider newExecutorProvider) Create a derived configuration from this one, with a new executor provider.@NotNull Configurationderive(FormattingProvider newFormattingProvider) Create a derived configuration from this one, with new formatting provider.@NotNull Configurationderive(MetaProvider newMetaProvider) Create a derived configuration from this one, with a new meta provider.@NotNull Configurationderive(MigrationListener... newMigrationListeners) Create a derived configuration from this one, with new migration listeners.@NotNull Configurationderive(MigrationListenerProvider... newMigrationListenerProviders) Create a derived configuration from this one, with new migration listener providers.@NotNull Configurationderive(ParseListener... newParseListeners) Create a derived configuration from this one, with new parse listeners.@NotNull Configurationderive(ParseListenerProvider... newParseListenerProviders) Create a derived configuration from this one, with new parse listener providers.@NotNull Configurationderive(PolicyProvider... newPolicyProviders) Create a derived configuration from this one, with a new policy provider.@NotNull Configurationderive(RecordListener... newRecordListeners) Create a derived configuration from this one, with new record listeners.@NotNull Configurationderive(RecordListenerProvider... newRecordListenerProviders) Create a derived configuration from this one, with new record listener providers.@NotNull Configurationderive(RecordMapper<?, ?> newRecordMapper) Create a derived configuration from this one, with a new record mapper.@NotNull Configurationderive(RecordMapperProvider newRecordMapperProvider) Create a derived configuration from this one, with a new record mapper provider.@NotNull Configurationderive(RecordUnmapper<?, ?> newRecordUnmapper) Create a derived configuration from this one, with a new record unmapper.@NotNull Configurationderive(RecordUnmapperProvider newRecordUnmapperProvider) Create a derived configuration from this one, with a new record unmapper provider.@NotNull Configurationderive(SQLDialect newDialect) Create a derived configuration from this one, with a new dialect.@NotNull Configurationderive(TransactionListener... newTransactionListeners) Create a derived configuration from this one, with new transaction listeners.@NotNull Configurationderive(TransactionListenerProvider... newTransactionListenerProviders) Create a derived configuration from this one, with new transaction listener providers.@NotNull Configurationderive(TransactionProvider newTransactionProvider) Create a derived configuration from this one, with a new transaction provider.@NotNull Configurationderive(TransformProvider newTransformProvider) Create a derived configuration from this one, with a new transform provider.@NotNull ConfigurationCreate a derived configuration from this one, with a new unwrapper.@NotNull Configurationderive(UnwrapperProvider newUnwrapperProvider) Create a derived configuration from this one, with a new unwrapper provider.@NotNull Configurationderive(VisitListener... newVisitListeners) Create a derived configuration from this one, with new visit listeners.@NotNull Configurationderive(VisitListenerProvider... newVisitListenerProviders) Create a derived configuration from this one, with new visit listener providers.@NotNull ConfigurationderiveAppending(DiagnosticsListener... newDiagnosticsListeners) Create a derived configuration from this one, with appended diagnostics listeners.@NotNull ConfigurationderiveAppending(DiagnosticsListenerProvider... newDiagnosticsListenerProviders) Create a derived configuration from this one, with appended diagnostics listener providers.@NotNull ConfigurationderiveAppending(ExecuteListener... newExecuteListeners) Create a derived configuration from this one, with appended execute listeners.@NotNull ConfigurationderiveAppending(ExecuteListenerProvider... newExecuteListenerProviders) Create a derived configuration from this one, with appended execute listener providers.@NotNull ConfigurationderiveAppending(MigrationListener... newMigrationListeners) Create a derived configuration from this one, with appended migration listeners.@NotNull ConfigurationderiveAppending(MigrationListenerProvider... newMigrationListenerProviders) Create a derived configuration from this one, with appended migration listener providers.@NotNull ConfigurationderiveAppending(ParseListener... newParseListeners) Create a derived configuration from this one, with appended parse listeners.@NotNull ConfigurationderiveAppending(ParseListenerProvider... newParseListenerProviders) Create a derived configuration from this one, with appended parse listener providers.@NotNull ConfigurationderiveAppending(PolicyProvider... newPolicyProvider) Create a derived configuration from this one, with appended policy providers.@NotNull ConfigurationderiveAppending(RecordListener... newRecordListeners) Create a derived configuration from this one, with appended record listeners.@NotNull ConfigurationderiveAppending(RecordListenerProvider... newRecordListenerProviders) Create a derived configuration from this one, with appended record listener providers.@NotNull ConfigurationderiveAppending(TransactionListener... newTransactionListeners) Create a derived configuration from this one, with appended transaction listeners.@NotNull ConfigurationderiveAppending(TransactionListenerProvider... newTransactionListenerProviders) Create a derived configuration from this one, with appended transaction listener providers.@NotNull ConfigurationderiveAppending(VisitListener... newVisitListeners) Create a derived configuration from this one, with appended visit listeners.@NotNull ConfigurationderiveAppending(VisitListenerProvider... newVisitListenerProviders) Create a derived configuration from this one, with appended visit listener providers.@NotNull ConfigurationderiveSettings(Function<? super Settings, ? extends Settings> newSettings) Create a derived configuration from this one, with new settings constructed from a clone of the current settings.@NotNull DiagnosticsListenerProvider @NotNull []Get the configuredDiagnosticsListenerProviders from this configuration.@NotNull SQLDialectdialect()Retrieve the configured dialect.@NotNull DSLContextdsl()Wrap thisConfigurationin aDSLContext, providing access to the configuration-contextual DSL to construct executable queries.@NotNull ExecuteListenerProvider @NotNull []Get the configuredExecuteListenerProviders from this configuration.@NotNull ExecutorProviderGet this configuration's underlying executor provider.@NotNull SQLDialectfamily()Retrieve the family of the configured dialect.@NotNull FormattingProviderGet the configuredFormattingProviderfrom this configuration.@NotNull ConnectionProviderGet this configuration's underlying interpreter connection provider, which provides connections for DDL interpretation.@NotNull MetaProviderGet this configuration's underlying meta provider.@NotNull MigrationListenerProvider @NotNull []Get the configuredMigrationListenerProviders from this configuration.@NotNull ParseListenerProvider @NotNull []Get the configuredParseListenerProviderinstances from this configuration.@NotNull PolicyProvider @NotNull []Get the configuredPolicyProviderinstances from this configuration.@NotNull RecordListenerProvider @NotNull []Get the configuredRecordListenerProviders from this configuration.@NotNull RecordMapperProviderGet this configuration's underlying record mapper provider.@NotNull RecordUnmapperProviderGet this configuration's underlying record unmapper provider.booleanrequireCommercial(Supplier<String> logMessage) Whether this is a commercial edition of jOOQ, throwing an exception with a message, if not.@NotNull SchemaMappingDeprecated, for removal: This API element is subject to removal in a future version.@NotNull Configurationset(io.r2dbc.spi.ConnectionFactory newConnectionFactory) Change this configuration to hold a new R2DBC connection factory.@NotNull Configurationset(Connection newConnection) Change this configuration to hold a new connection wrapped in aDefaultConnectionProvider.@NotNull ConfigurationChange this configuration to hold a newClock.@NotNull ConfigurationChange this configuration to hold a new executor.@NotNull Configurationset(DataSource newDataSource) Change this configuration to hold a new data source wrapped in aDataSourceConnectionProvider.@NotNull Configurationset(AuditProvider newAuditProvider) Change this configuration to hold new audit provider.@NotNull Configurationset(CacheProvider newCacheProvider) Change this configuration to hold a new cache provider.@NotNull Configurationset(CharsetProvider newCharsetProvider) Change this configuration to hold a new charset provider.@NotNull Configurationset(CommitProvider newCommitProvider) Change this configuration to hold a new commit provider.@NotNull ConfigurationChange this configuration to hold a new settings.@NotNull Configurationset(ConnectionProvider newConnectionProvider) Change this configuration to hold a new connection provider.@NotNull Configurationset(ConverterProvider newConverterProvider) Change this configuration to hold a new converter provider.@NotNull Configurationset(DiagnosticsListener... newDiagnosticsListeners) Change this configuration to hold new diagnostics listeners.@NotNull Configurationset(DiagnosticsListenerProvider... newDiagnosticsListenerProviders) Change this configuration to hold new diagnostics listener providers.@NotNull Configurationset(ExecuteListener... newExecuteListeners) Change this configuration to hold new execute listeners.@NotNull Configurationset(ExecuteListenerProvider... newExecuteListenerProviders) Change this configuration to hold new execute listener providers.@NotNull Configurationset(ExecutorProvider newExecutorProvider) Change this configuration to hold a new executor provider.@NotNull Configurationset(FormattingProvider newFormattingProvider) Change this configuration to hold a new formatting provider.@NotNull Configurationset(MetaProvider newMetaProvider) Change this configuration to hold a new meta provider.@NotNull Configurationset(MigrationListener... newMigrationListeners) Change this configuration to hold new migration listeners.@NotNull Configurationset(MigrationListenerProvider... newMigrationListenerProviders) Change this configuration to hold new migration listener providers.@NotNull Configurationset(ParseListener... newParseListeners) Change this configuration to hold new parse listeners.@NotNull Configurationset(ParseListenerProvider... newParseListenerProviders) Change this configuration to hold new parse listener providers.@NotNull Configurationset(PolicyProvider... newPolicyProviders) Change this configuration to hold new policy provider.@NotNull Configurationset(RecordListener... newRecordListeners) Change this configuration to hold new record listeners.@NotNull Configurationset(RecordListenerProvider... newRecordListenerProviders) Change this configuration to hold new record listener providers.@NotNull Configurationset(RecordMapper<?, ?> newRecordMapper) Change this configuration to hold a new record mapper.@NotNull Configurationset(RecordMapperProvider newRecordMapperProvider) Change this configuration to hold a new record mapper provider.@NotNull Configurationset(RecordUnmapper<?, ?> newRecordUnmapper) Change this configuration to hold a new record unmapper.@NotNull Configurationset(RecordUnmapperProvider newRecordUnmapperProvider) Change this configuration to hold a new record unmapper provider.@NotNull Configurationset(SQLDialect newDialect) Change this configuration to hold a new dialect.@NotNull Configurationset(TransactionListener... newTransactionListeners) Change this configuration to hold new transaction listeners.@NotNull Configurationset(TransactionListenerProvider... newTransactionListenerProviders) Change this configuration to hold new transaction listener providers.@NotNull Configurationset(TransactionProvider newTransactionProvider) Change this configuration to hold a new transaction provider.@NotNull Configurationset(TransformProvider newTransformProvider) Change this configuration to hold new transform provider.@NotNull ConfigurationChange this configuration to hold a new unwrapper.@NotNull Configurationset(UnwrapperProvider newUnwrapperProvider) Change this configuration to hold a new unwrapper provider.@NotNull Configurationset(VisitListener... newVisitListeners) Change this configuration to hold a new visit listeners.@NotNull Configurationset(VisitListenerProvider... newVisitListenerProviders) Change this configuration to hold new visit listener providers.@NotNull ConfigurationsetAppending(DiagnosticsListener... newDiagnosticsListeners) Change this configuration by appending new diagnostics listeners.@NotNull ConfigurationsetAppending(DiagnosticsListenerProvider... newDiagnosticsListenerProviders) Change this configuration by appending new diagnostics listener providers.@NotNull ConfigurationsetAppending(ExecuteListener... newExecuteListeners) Change this configuration by appending new execute listeners.@NotNull ConfigurationsetAppending(ExecuteListenerProvider... newExecuteListenerProviders) Change this configuration by appending new execute listener providers.@NotNull ConfigurationsetAppending(MigrationListener... newMigrationListeners) Change this configuration by appending new migration listeners.@NotNull ConfigurationsetAppending(MigrationListenerProvider... newMigrationListenerProviders) Change this configuration to hold by appending new migration listener providers.@NotNull ConfigurationsetAppending(ParseListener... newParseListeners) Change this configuration by appending new parse listeners.@NotNull ConfigurationsetAppending(ParseListenerProvider... newParseListenerProviders) Change this configuration by appending new parse listener providers.@NotNull ConfigurationsetAppending(RecordListener... newRecordListeners) Change this configuration by appending new record listeners.@NotNull ConfigurationsetAppending(RecordListenerProvider... newRecordListenerProviders) Change this configuration by appending new record listener providers.@NotNull ConfigurationsetAppending(TransactionListener... newTransactionListeners) Change this configuration by appending new transaction listeners.@NotNull ConfigurationsetAppending(TransactionListenerProvider... newTransactionListenerProviders) Change this configuration by appending new transaction listener providers.@NotNull ConfigurationsetAppending(VisitListener... newVisitListeners) Change this configuration to hold new visit listeners.@NotNull ConfigurationsetAppending(VisitListenerProvider... newVisitListenerProviders) Change this configuration by appending new visit listener providers.@NotNull Settingssettings()Retrieve the runtime configuration settings.@NotNull ConnectionProviderGet this configuration's underlying system connection provider, which provides connections for system tasks.@NotNull TransactionListenerProvider @NotNull []Get the configuredTransactionListenerProviders from this configuration.@NotNull TransactionProviderGet this configuration's underlying transaction provider.@NotNull TransformProviderGet the configuredTransformProviderfrom this configuration.@NotNull UnwrapperProviderGet the configuredUnwrapperProviderfrom this configuration.@NotNull VisitListenerProvider @NotNull []Get the configuredVisitListenerProviderinstances from this configuration.
-
Method Details
-
dsl
Wrap thisConfigurationin aDSLContext, providing access to the configuration-contextual DSL to construct executable queries.In the
DefaultConfigurationimplementation, this is just convenience forDSL.using(Configuration). There's no functional difference between the two methods. -
data
Get all custom data from thisConfiguration.This is custom data that was previously set to the configuration using
data(Object, Object). Use custom data if you want to pass data to your customQueryPartorExecuteListenerobjects to be made available at render, bind, execution, fetch time.See
ExecuteListenerfor more details.- Returns:
- The custom data. This is never
null - See Also:
-
data
Get some custom data from thisConfiguration.This is custom data that was previously set to the configuration using
data(Object, Object). Use custom data if you want to pass data to your customQueryPartorExecuteListenerobjects to be made available at render, bind, execution, fetch time.See
ExecuteListenerfor more details.- Parameters:
key- A key to identify the custom data- Returns:
- The custom data or
nullif no such data is contained in thisConfiguration - See Also:
-
data
Set some custom data to thisConfiguration.Use custom data if you want to pass data to your custom
QueryPartorExecuteListenerobjects to be made available at render, bind, execution, fetch time.Be sure that your custom data implements
Serializableif you want to serialise thisConfigurationor objects referencing thisConfiguration, e.g. yourRecordtypes.See
ExecuteListenerfor more details.- Parameters:
key- A key to identify the custom datavalue- The custom data- Returns:
- The previously set custom data or
nullif no data was previously set for the given key - See Also:
-
clock
Get this configuration'sClock, which is used for optimistic locking, transaction time, and other time-depending features. -
connectionProvider
Get this configuration's underlying connection provider. -
connectionFactory
@NotNull @NotNull io.r2dbc.spi.ConnectionFactory connectionFactory()Get this configuration's underlying R2DBC connection factory. -
interpreterConnectionProvider
Get this configuration's underlying interpreter connection provider, which provides connections for DDL interpretation.- See Also:
-
systemConnectionProvider
Get this configuration's underlying system connection provider, which provides connections for system tasks.System tasks may include the generation of auxiliary data types or stored procedures, which users may want to generate using a different data source or transaction. By default, this connection provider is the same as
connectionProvider(). -
metaProvider
Get this configuration's underlying meta provider. -
commitProvider
Get this configuration's underlying commit provider. -
executorProvider
Get this configuration's underlying executor provider.Asynchronous operations will call back to this SPI to obtain an executor. This applies, for example, to
ResultQuery.fetchAsync().The following logic is applied when resolving the appropriate
executor:- If
executorProvider()does not returnnull, thenExecutorProvider.provide()is called to obtain anExecutorfor the asynchronous task. - In the jOOQ Java 8 distribution,
ForkJoinPool.commonPool()is used ifForkJoinPool.getCommonPoolParallelism()> 1 - A new "one thread per call"
Executoris used in any other case.
The SPI will not be called if an asynchronous operation explicitly overrides the
Executor, e.g. as is the case forResultQuery.fetchAsync(Executor). - If
-
cacheProvider
Get this configuration's underlying cache provider.Cached operations will call this SPI to obtain a thread safe cache implementation to cache various things internally. This SPI allows for replacing the default cache implementation, which is mostly a
ConcurrentHashMap, by a more specialised one, e.g. a LRU cache, e.g. from Guava. -
transactionProvider
Get this configuration's underlying transaction provider.If no explicit transaction provider was specified, and if
connectionProvider()is aDefaultConnectionProvider, then this will return aDefaultTransactionProvider. -
transactionListenerProviders
Get the configuredTransactionListenerProviders from this configuration. -
diagnosticsListenerProviders
Get the configuredDiagnosticsListenerProviders from this configuration. -
unwrapperProvider
Get the configuredUnwrapperProviderfrom this configuration. -
charsetProvider
Get the configuredCharsetProviderfrom this configuration. -
recordMapperProvider
Get this configuration's underlying record mapper provider. -
recordUnmapperProvider
Get this configuration's underlying record unmapper provider. -
recordListenerProviders
Get the configuredRecordListenerProviders from this configuration.This method allows for retrieving the configured
RecordListenerProviderfrom this configuration. The providers will provide jOOQ withRecordListenerinstances. These instances receive record manipulation notification events every time jOOQ executes queries. jOOQ makes no assumptions about the internal state of these listeners, i.e. listener instances may- share this
Configuration's lifecycle (i.e. that of a JDBCConnection, or that of a transaction) - share the lifecycle of an
RecordContext(i.e. that of a single record manipulation) - follow an entirely different lifecycle.
- Returns:
- The configured set of record listeners.
- See Also:
- share this
-
executeListenerProviders
Get the configuredExecuteListenerProviders from this configuration.This method allows for retrieving the configured
ExecuteListenerProviderfrom this configuration. The providers will provide jOOQ withExecuteListenerinstances. These instances receive execution lifecycle notification events every time jOOQ executes queries. jOOQ makes no assumptions about the internal state of these listeners, i.e. listener instances may- share this
Configuration's lifecycle (i.e. that of a JDBCConnection, or that of a transaction) - share the lifecycle of an
ExecuteContext(i.e. that of a single query execution) - follow an entirely different lifecycle.
Note, depending on your
Settings.isExecuteLogging(), some additional listeners may be prepended to this list, internally. Those listeners will never be exposed through this method, though.- Returns:
- The configured set of execute listeners.
- See Also:
- share this
-
migrationListenerProviders
Get the configuredMigrationListenerProviders from this configuration.This method allows for retrieving the configured
MigrationListenerProviderfrom this configuration. The providers will provide jOOQ withMigrationListenerinstances. These instances receive migration lifecycle notification events every time jOOQ executes migrations. jOOQ makes no assumptions about the internal state of these listeners, i.e. listener instances may- share this
Configuration's lifecycle (i.e. that of a JDBCConnection, or that of a transaction) - share the lifecycle of an
MigrationContext(i.e. that of a single query execution) - follow an entirely different lifecycle.
- Returns:
- The configured set of migration listeners.
- See Also:
- share this
-
visitListenerProviders
Get the configuredVisitListenerProviderinstances from this configuration.This method allows for retrieving the configured
VisitListenerProviderinstances from this configuration. The providers will provide jOOQ withVisitListenerinstances. These instances receive query rendering lifecycle notification events every time jOOQ renders queries. jOOQ makes no assumptions about the internal state of these listeners, i.e. listener instances may- share this
Configuration's lifecycle (i.e. that of a JDBCConnection, or that of a transaction) - share the lifecycle of an
ExecuteContext(i.e. that of a single query execution) - follow an entirely different lifecycle.
- Returns:
- The configured set of visit listeners.
- See Also:
- share this
-
converterProvider
Get the configuredConverterProviderfrom this configuration. -
formattingProvider
Get the configuredFormattingProviderfrom this configuration. -
parseListenerProviders
Get the configuredParseListenerProviderinstances from this configuration. -
auditProvider
Get the configuredAuditProviderfrom this configuration. -
policyProviders
Get the configuredPolicyProviderinstances from this configuration. -
transformProvider
Get the configuredTransformProviderfrom this configuration. -
schemaMapping
Deprecated, for removal: This API element is subject to removal in a future version.- 2.0.5 - Usesettings()insteadRetrieve the configured schema mapping. -
dialect
Retrieve the configured dialect. -
family
Retrieve the family of the configured dialect. -
settings
Retrieve the runtime configuration settings. -
set
Change this configuration to hold a newClock.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newClock- The new clock to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold a new connection provider.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newConnectionProvider- The new connection provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold a new meta provider.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newMetaProvider- The new meta provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold a new commit provider.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newCommitProvider- The new commit provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold a new executor provider.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newExecutorProvider- The new executor provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold a new cache provider.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newCacheProvider- The new cache provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold a new executor.This will wrap the argument
Executorin aDefaultExecutorProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newExecutor- The new executor to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold a new connection wrapped in aDefaultConnectionProvider.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newConnection- The new connection to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold a new data source wrapped in aDataSourceConnectionProvider.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newDataSource- The new data source to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold a new R2DBC connection factory.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newConnection- The new connection to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold a new transaction provider.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newTransactionProvider- The new transaction provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold a new record mapper.This will wrap the argument
RecordMapperin aDefaultRecordMapperProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newRecordMapper- The new record mapper to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold a new record mapper provider.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newRecordMapperProvider- The new record mapper provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold a new record unmapper.This will wrap the argument
RecordUnmapperin aDefaultRecordUnmapperProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newRecordUnmapper- The new record unmapper to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold a new record unmapper provider.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newRecordUnmapperProvider- The new record unmapper provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold new record listeners.This will wrap the argument
RecordListenerin aDefaultRecordListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newRecordListeners- The new record listener to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Change this configuration by appending new record listeners.This will wrap the argument
RecordListenerin aDefaultRecordListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newRecordListeners- The appended record listener to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold new record listener providers.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newRecordListenerProviders- The new record listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Change this configuration by appending new record listener providers.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newRecordListenerProviders- The appended record listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold new execute listeners.This will wrap the argument
ExecuteListenerin aDefaultExecuteListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newExecuteListeners- The new execute listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Change this configuration by appending new execute listeners.This will wrap the argument
ExecuteListenerin aDefaultExecuteListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newExecuteListeners- The appended execute listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold new execute listener providers.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newExecuteListenerProviders- The new execute listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
@NotNull @NotNull Configuration setAppending(ExecuteListenerProvider... newExecuteListenerProviders) Change this configuration by appending new execute listener providers.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newExecuteListenerProviders- The appended execute listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold new migration listeners.This will wrap the argument
MigrationListenerin aDefaultMigrationListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newMigrationListeners- The new migration listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Change this configuration by appending new migration listeners.This will wrap the argument
MigrationListenerin aDefaultMigrationListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newMigrationListeners- The appended migration listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold new migration listener providers.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newMigrationListenerProviders- The new migration listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
@NotNull @NotNull Configuration setAppending(MigrationListenerProvider... newMigrationListenerProviders) Change this configuration to hold by appending new migration listener providers.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newMigrationListenerProviders- The appended migration listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold a new visit listeners.This will wrap the argument
VisitListenerin aDefaultVisitListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newVisitListeners- The new visit listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Change this configuration to hold new visit listeners.This will wrap the argument
VisitListenerin aDefaultVisitListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newVisitListeners- The new visit listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold new visit listener providers.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newVisitListenerProviders- The new visit listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Change this configuration by appending new visit listener providers.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newVisitListenerProviders- The appended visit listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold new transaction listeners.This will wrap the argument
TransactionListenerin aDefaultTransactionListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newTransactionListeners- The new transaction listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Change this configuration by appending new transaction listeners.This will wrap the argument
TransactionListenerin aDefaultTransactionListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newTransactionListeners- The appended transaction listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold new transaction listener providers.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newTransactionListenerProviders- The new transaction listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
@NotNull @NotNull Configuration setAppending(TransactionListenerProvider... newTransactionListenerProviders) Change this configuration by appending new transaction listener providers.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newTransactionListenerProviders- The appended transaction listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold new diagnostics listeners.This will wrap the argument
DiagnosticsListenerin aDefaultDiagnosticsListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newDiagnosticsListeners- The new diagnostics listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Change this configuration by appending new diagnostics listeners.This will wrap the argument
DiagnosticsListenerin aDefaultDiagnosticsListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newDiagnosticsListeners- The new diagnostics listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold new diagnostics listener providers.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newDiagnosticsListenerProviders- The new diagnostics listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
@NotNull @NotNull Configuration setAppending(DiagnosticsListenerProvider... newDiagnosticsListenerProviders) Change this configuration by appending new diagnostics listener providers.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newDiagnosticsListenerProviders- The new diagnostics listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold a new unwrapper.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newUnwrapper- The new unwrapper to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold a new unwrapper provider.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newUnwrapperProvider- The new unwrapper provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold a new charset provider.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newCharsetProvider- The new charset provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold a new converter provider.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newConverterProvider- The new converter provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold a new formatting provider.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newFormattingProvider- The new formatting provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold new parse listeners.This will wrap the argument
ParseListenerin aDefaultParseListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newParseListeners- The new parse listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Change this configuration by appending new parse listeners.This will wrap the argument
ParseListenerin aDefaultParseListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newParseListeners- The appended parse listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold new parse listener providers.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newParseListenerProviders- The new parse listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
@Pro @NotNull @NotNull Configuration setAppending(ParseListenerProvider... newParseListenerProviders) Change this configuration by appending new parse listener providers.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newParseListenerProviders- The appended parse listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold new audit provider.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newAuditProvider- The new audit provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold new policy provider.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newPolicyProviders- The new policy provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold new transform provider.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newTransformProvider- The new transform provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold a new dialect.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newDialect- The new dialect to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Change this configuration to hold a new settings.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Parameters:
newSettings- The new settings to be contained in the changed configuration.- Returns:
- The changed configuration.
-
derive
Create a derived configuration from this one, without changing any properties.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with a newClock.- Parameters:
newClock- The new clock to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with a new connection wrapped in aDefaultConnectionProvider.- Parameters:
newConnection- The new connection to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with a new data source wrapped in aDataSourceConnectionProvider.- Parameters:
newDataSource- The new data source to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with a new R2DBC connection factory.- Parameters:
newConnectionFactory- The new connection factory to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with a new connection provider.- Parameters:
newConnectionProvider- The new connection provider to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with a new meta provider.- Parameters:
newMetaProvider- The new meta provider to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with a new commit provider.- Parameters:
newCommitProvider- The new commit provider to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with a new executor.This will wrap the argument
Executorin aDefaultExecutorProviderfor convenience.- Parameters:
newExecutor- The new executor to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with a new executor provider.- Parameters:
newExecutorProvider- The new executor provider to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with a new cache provider.- Parameters:
newCacheProvider- The new cache provider to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with a new transaction provider.- Parameters:
newTransactionProvider- The new transaction provider to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with a new record mapper.This will wrap the argument
RecordMapperin aDefaultRecordMapperProviderfor convenience.- Parameters:
newRecordMapper- The new record mapper to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with a new record mapper provider.- Parameters:
newRecordMapperProvider- The new record mapper provider to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with a new record unmapper.This will wrap the argument
RecordUnmapperin aDefaultRecordUnmapperProviderfor convenience.- Parameters:
newRecordUnmapper- The new record unmapper to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with a new record unmapper provider.- Parameters:
newRecordUnmapperProvider- The new record unmapper provider to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with new record listeners.This will wrap the argument
RecordListenerin aDefaultRecordListenerProviderfor convenience.- Parameters:
newRecordListeners- The new record listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Create a derived configuration from this one, with appended record listeners.This will wrap the argument
RecordListenerin aDefaultRecordListenerProviderfor convenience.- Parameters:
newRecordListeners- The appended record listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with new record listener providers.- Parameters:
newRecordListenerProviders- The new record listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
@NotNull @NotNull Configuration deriveAppending(RecordListenerProvider... newRecordListenerProviders) Create a derived configuration from this one, with appended record listener providers.- Parameters:
newRecordListenerProviders- The appended record listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with new execute listeners.This will wrap the argument
ExecuteListenerin aDefaultExecuteListenerProviderfor convenience.- Parameters:
newExecuteListeners- The new execute listener to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Create a derived configuration from this one, with appended execute listeners.This will wrap the argument
ExecuteListenerin aDefaultExecuteListenerProviderfor convenience.- Parameters:
newExecuteListeners- The appended execute listener to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with new execute listener providers.- Parameters:
newExecuteListenerProviders- The new execute listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
@NotNull @NotNull Configuration deriveAppending(ExecuteListenerProvider... newExecuteListenerProviders) Create a derived configuration from this one, with appended execute listener providers.- Parameters:
newExecuteListenerProviders- The appended execute listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with new migration listeners.This will wrap the argument
MigrationListenerin aDefaultMigrationListenerProviderfor convenience.- Parameters:
newMigrationListeners- The new migration listener to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Create a derived configuration from this one, with appended migration listeners.This will wrap the argument
MigrationListenerin aDefaultMigrationListenerProviderfor convenience.- Parameters:
newMigrationListeners- The appended migration listener to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with new migration listener providers.- Parameters:
newMigrationListenerProviders- The new migration listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
@NotNull @NotNull Configuration deriveAppending(MigrationListenerProvider... newMigrationListenerProviders) Create a derived configuration from this one, with appended migration listener providers.- Parameters:
newMigrationListenerProviders- The appended migration listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with new visit listeners.This will wrap the argument
VisitListenerin aDefaultVisitListenerProviderfor convenience.- Parameters:
newVisitListeners- The new visit listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Create a derived configuration from this one, with appended visit listeners.This will wrap the argument
VisitListenerin aDefaultVisitListenerProviderfor convenience.- Parameters:
newVisitListeners- The appended visit listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with new visit listener providers.- Parameters:
newVisitListenerProviders- The new visit listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Create a derived configuration from this one, with appended visit listener providers.- Parameters:
newVisitListenerProviders- The appended visit listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with new transaction listeners.This will wrap the argument
TransactionListenerin aDefaultTransactionListenerProviderfor convenience.- Parameters:
newTransactionListeners- The new transaction listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Create a derived configuration from this one, with appended transaction listeners.This will wrap the argument
TransactionListenerin aDefaultTransactionListenerProviderfor convenience.- Parameters:
newTransactionListeners- The appended transaction listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
@NotNull @NotNull Configuration derive(TransactionListenerProvider... newTransactionListenerProviders) Create a derived configuration from this one, with new transaction listener providers.- Parameters:
newTransactionListenerProviders- The new transaction listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
@NotNull @NotNull Configuration deriveAppending(TransactionListenerProvider... newTransactionListenerProviders) Create a derived configuration from this one, with appended transaction listener providers.- Parameters:
newTransactionListenerProviders- The appended transaction listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with new diagnostics listeners.- Parameters:
newDiagnosticsListeners- The new diagnostics listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Create a derived configuration from this one, with appended diagnostics listeners.- Parameters:
newDiagnosticsListeners- The appended diagnostics listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
@NotNull @NotNull Configuration derive(DiagnosticsListenerProvider... newDiagnosticsListenerProviders) Create a derived configuration from this one, with new diagnostics listener providers.- Parameters:
newDiagnosticsListenerProviders- The new diagnostics listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
@NotNull @NotNull Configuration deriveAppending(DiagnosticsListenerProvider... newDiagnosticsListenerProviders) Create a derived configuration from this one, with appended diagnostics listener providers.- Parameters:
newDiagnosticsListenerProviders- The appended diagnostics listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with a new unwrapper.- Parameters:
newUnwrapper- The new unwrapper to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with a new unwrapper provider.- Parameters:
newUnwrapperProvider- The new unwrapper provider to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with a new charset provider.- Parameters:
newCharsetProvider- The new charset provider to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with new converter provider.- Parameters:
newConverterProvider- The new converter provider to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with new formatting provider.- Parameters:
newFormattingProvider- The new formatting provider to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with new parse listeners.- Parameters:
newParseListeners- The new parse listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Create a derived configuration from this one, with appended parse listeners.- Parameters:
newParseListeners- The appended parse listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with new parse listener providers.- Parameters:
newParseListenerProviders- The new parse listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
@Pro @NotNull @NotNull Configuration deriveAppending(ParseListenerProvider... newParseListenerProviders) Create a derived configuration from this one, with appended parse listener providers.- Parameters:
newParseListenerProviders- The appended parse listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with a new audit provider.- Parameters:
newAuditProvider- The new audit provider to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with a new policy provider.- Parameters:
newPolicyProviders- The new policy providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Create a derived configuration from this one, with appended policy providers.- Parameters:
newPolicyProvider- The appended policy providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with a new transform provider.- Parameters:
newTransformProvider- The new transform provider to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with a new dialect.- Parameters:
newDialect- The new dialect to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Create a derived configuration from this one, with new settings.- Parameters:
newSettings- The new settings to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveSettings
@NotNull @NotNull Configuration deriveSettings(Function<? super Settings, ? extends Settings> newSettings) Create a derived configuration from this one, with new settings constructed from a clone of the current settings.- Parameters:
newSettings- A function producing the new settings to be contained in the derived configuration based on a clone of the current settings.- Returns:
- The derived configuration.
-
commercial
default boolean commercial()Whether this is a commercial edition of jOOQ. -
commercial
Whether this is a commercial edition of jOOQ, logging a warning message, if not. -
requireCommercial
Whether this is a commercial edition of jOOQ, throwing an exception with a message, if not.- Throws:
DataAccessException
-
settings()instead