- All Implemented Interfaces:
Serializable
,Configuration
This Configuration
wraps a delegate Configuration
and
wraps all ConnectionProvider
references in
MockConnectionProvider
.
- Author:
- Lukas Eder
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet this configuration's underlying cache provider.Get the configuredCharsetProvider
from this configuration.clock()
Get this configuration'sClock
, which is used for optimistic locking, transaction time, and other time-depending features.Get this configuration's underlying commit provider.io.r2dbc.spi.ConnectionFactory
Get this configuration's underlying R2DBC connection factory.Get this configuration's underlying connection provider.Get the configuredConverterProvider
from this configuration.data()
Get all custom data from thisConfiguration
.Get some custom data from thisConfiguration
.Set some custom data to thisConfiguration
.derive()
Create a derived configuration from this one, without changing any properties.derive
(io.r2dbc.spi.ConnectionFactory newConnectionFactory) Create a derived configuration from this one, with a new R2DBC connection factory.derive
(Connection newConnection) Create a derived configuration from this one, with a new connection wrapped in aDefaultConnectionProvider
.Create a derived configuration from this one, with a newClock
.Create a derived configuration from this one, with a new executor.derive
(DataSource newDataSource) Create a derived configuration from this one, with a new data source wrapped in aDataSourceConnectionProvider
.derive
(CacheProvider newCacheProvider) Create a derived configuration from this one, with a new cache provider.derive
(CharsetProvider newCharsetProvider) Create a derived configuration from this one, with a new charset provider.derive
(CommitProvider newCommitProvider) Create a derived configuration from this one, with a new commit provider.Create a derived configuration from this one, with new settings.derive
(ConnectionProvider newConnectionProvider) Create a derived configuration from this one, with a new connection provider.derive
(ConverterProvider newConverterProvider) Create a derived configuration from this one, with new converter provider.derive
(DiagnosticsListenerProvider... newDiagnosticsListenerProviders) Create a derived configuration from this one, with new diagnostics listener providers.derive
(ExecuteListenerProvider... newExecuteListenerProviders) Create a derived configuration from this one, with new execute listener providers.derive
(ExecutorProvider newExecutorProvider) Create a derived configuration from this one, with a new executor provider.derive
(FormattingProvider newFormattingProvider) Create a derived configuration from this one, with new formatting provider.derive
(MetaProvider newMetaProvider) Create a derived configuration from this one, with a new meta provider.derive
(MigrationListenerProvider... newMigrationListenerProviders) Create a derived configuration from this one, with new migration listener providers.derive
(ParseListenerProvider... newParseListenerProviders) Create a derived configuration from this one, with new parse listener providers.derive
(RecordListenerProvider... newRecordListenerProviders) Create a derived configuration from this one, with new record listener providers.derive
(RecordMapper<?, ?> newRecordMapper) Create a derived configuration from this one, with a new record mapper.derive
(RecordMapperProvider newRecordMapperProvider) Create a derived configuration from this one, with a new record mapper provider.derive
(RecordUnmapper<?, ?> newRecordUnmapper) Create a derived configuration from this one, with a new record unmapper.derive
(RecordUnmapperProvider newRecordUnmapperProvider) Create a derived configuration from this one, with a new record unmapper provider.derive
(SQLDialect newDialect) Create a derived configuration from this one, with a new dialect.derive
(TransactionListenerProvider... newTransactionListenerProviders) Create a derived configuration from this one, with new transaction listener providers.derive
(TransactionProvider newTransactionProvider) Create a derived configuration from this one, with a new transaction provider.Create a derived configuration from this one, with a new unwrapper.derive
(UnwrapperProvider newUnwrapperProvider) Create a derived configuration from this one, with a new unwrapper provider.derive
(VisitListenerProvider... newVisitListenerProviders) Create a derived configuration from this one, with new visit listener providers.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.Get the configuredDiagnosticsListenerProvider
s from this configuration.dialect()
Retrieve the configured dialect.dsl()
Wrap thisConfiguration
in aDSLContext
, providing access to the configuration-contextual DSL to construct executable queries.Get the configuredExecuteListenerProvider
s from this configuration.Get this configuration's underlying executor provider.family()
Retrieve the family of the configured dialect.Get the configuredFormattingProvider
from this configuration.Get this configuration's underlying interpreter connection provider, which provides connections for DDL interpretation.Get this configuration's underlying meta provider.Get the configuredMigrationListenerProvider
s from this configuration.Get the configuredParseListenerProvider
instances from this configuration.Get the configuredRecordListenerProvider
s from this configuration.Get this configuration's underlying record mapper provider.Get this configuration's underlying record unmapper provider.Retrieve the configured schema mapping.set
(io.r2dbc.spi.ConnectionFactory newConnectionFactory) Change this configuration to hold a new R2DBC connection factory.set
(Connection newConnection) Change this configuration to hold a new connection wrapped in aDefaultConnectionProvider
.Change this configuration to hold a newClock
.Change this configuration to hold a new executor.set
(DataSource newDataSource) Change this configuration to hold a new data source wrapped in aDataSourceConnectionProvider
.set
(CacheProvider newCacheProvider) Change this configuration to hold a new cache provider.set
(CharsetProvider newCharsetProvider) Change this configuration to hold a new charset provider.set
(CommitProvider newCommitProvider) Change this configuration to hold a new commit provider.Change this configuration to hold a new settings.set
(ConnectionProvider newConnectionProvider) Change this configuration to hold a new connection provider.set
(ConverterProvider newConverterProvider) Change this configuration to hold a new converter provider.set
(DiagnosticsListenerProvider... newDiagnosticsListenerProviders) Change this configuration to hold new diagnostics listener providers.set
(ExecuteListenerProvider... newExecuteListenerProviders) Change this configuration to hold new execute listener providers.set
(ExecutorProvider newExecutorProvider) Change this configuration to hold a new executor provider.set
(FormattingProvider newFormattingProvider) Change this configuration to hold a new formatting provider.set
(MetaProvider newMetaProvider) Change this configuration to hold a new meta provider.set
(MigrationListenerProvider... newMigrationListenerProviders) Change this configuration to hold new migration listener providers.set
(ParseListenerProvider... newParseListenerProviders) Change this configuration to hold new parse listener providers.set
(RecordListenerProvider... newRecordListenerProviders) Change this configuration to hold new record listener providers.set
(RecordMapper<?, ?> newRecordMapper) Change this configuration to hold a new record mapper.set
(RecordMapperProvider newRecordMapperProvider) Change this configuration to hold a new record mapper provider.set
(RecordUnmapper<?, ?> newRecordUnmapper) Change this configuration to hold a new record unmapper.set
(RecordUnmapperProvider newRecordUnmapperProvider) Change this configuration to hold a new record unmapper provider.set
(SQLDialect newDialect) Change this configuration to hold a new dialect.set
(TransactionListenerProvider... newTransactionListenerProviders) Change this configuration to hold new transaction listener providers.set
(TransactionProvider newTransactionProvider) Change this configuration to hold a new transaction provider.Change this configuration to hold a new unwrapper.set
(UnwrapperProvider newUnwrapperProvider) Change this configuration to hold a new unwrapper provider.set
(VisitListenerProvider... newVisitListenerProviders) Change this configuration to hold new visit listener providers.settings()
Retrieve the runtime configuration settings.Get this configuration's underlying system connection provider, which provides connections for system tasks.Get the configuredTransactionListenerProvider
s from this configuration.Get this configuration's underlying transaction provider.Get the configuredUnwrapperProvider
from this configuration.Get the configuredVisitListenerProvider
instances from this configuration.Methods inherited from class org.jooq.impl.AbstractConfiguration
commercial, derive, derive, derive, derive, derive, derive, derive, deriveAppending, deriveAppending, deriveAppending, deriveAppending, deriveAppending, deriveAppending, deriveAppending, deriveAppending, deriveAppending, deriveAppending, deriveAppending, deriveAppending, deriveAppending, deriveAppending, requireCommercial, set, set, set, set, set, set, set, setAppending, setAppending, setAppending, setAppending, setAppending, setAppending, setAppending, setAppending, setAppending, setAppending, setAppending, setAppending, setAppending, setAppending
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jooq.Configuration
commercial
-
Constructor Details
-
MockConfiguration
-
-
Method Details
-
dsl
Description copied from interface:Configuration
Wrap thisConfiguration
in aDSLContext
, providing access to the configuration-contextual DSL to construct executable queries.In the
DefaultConfiguration
implementation, this is just convenience forDSL.using(Configuration)
. There's no functional difference between the two methods. -
data
Description copied from interface:Configuration
Get all custom data from thisConfiguration
.This is custom data that was previously set to the configuration using
Configuration.data(Object, Object)
. Use custom data if you want to pass data to your customQueryPart
orExecuteListener
objects to be made available at render, bind, execution, fetch time.See
ExecuteListener
for more details.- Returns:
- The custom data. This is never
null
- See Also:
-
data
Description copied from interface:Configuration
Get some custom data from thisConfiguration
.This is custom data that was previously set to the configuration using
Configuration.data(Object, Object)
. Use custom data if you want to pass data to your customQueryPart
orExecuteListener
objects to be made available at render, bind, execution, fetch time.See
ExecuteListener
for more details.- Parameters:
key
- A key to identify the custom data- Returns:
- The custom data or
null
if no such data is contained in thisConfiguration
- See Also:
-
data
Description copied from interface:Configuration
Set some custom data to thisConfiguration
.Use custom data if you want to pass data to your custom
QueryPart
orExecuteListener
objects to be made available at render, bind, execution, fetch time.Be sure that your custom data implements
Serializable
if you want to serialise thisConfiguration
or objects referencing thisConfiguration
, e.g. yourRecord
types.See
ExecuteListener
for more details.- Parameters:
key
- A key to identify the custom datavalue
- The custom data- Returns:
- The previously set custom data or
null
if no data was previously set for the given key - See Also:
-
clock
Description copied from interface:Configuration
Get this configuration'sClock
, which is used for optimistic locking, transaction time, and other time-depending features. -
connectionProvider
Description copied from interface:Configuration
Get this configuration's underlying connection provider. -
interpreterConnectionProvider
Description copied from interface:Configuration
Get this configuration's underlying interpreter connection provider, which provides connections for DDL interpretation.- See Also:
-
systemConnectionProvider
Description copied from interface:Configuration
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
Configuration.connectionProvider()
. -
connectionFactory
public io.r2dbc.spi.ConnectionFactory connectionFactory()Description copied from interface:Configuration
Get this configuration's underlying R2DBC connection factory. -
metaProvider
Description copied from interface:Configuration
Get this configuration's underlying meta provider. -
commitProvider
Description copied from interface:Configuration
Get this configuration's underlying commit provider. -
executorProvider
Description copied from interface:Configuration
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
Configuration.executorProvider()
does not returnnull
, thenExecutorProvider.provide()
is called to obtain anExecutor
for the asynchronous task. - In the jOOQ Java 8 distribution,
ForkJoinPool.commonPool()
is used ifForkJoinPool.getCommonPoolParallelism()
> 1 - A new "one thread per call"
Executor
is 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
Description copied from interface:Configuration
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
Description copied from interface:Configuration
Get this configuration's underlying transaction provider.If no explicit transaction provider was specified, and if
Configuration.connectionProvider()
is aDefaultConnectionProvider
, then this will return aDefaultTransactionProvider
. -
recordMapperProvider
Description copied from interface:Configuration
Get this configuration's underlying record mapper provider. -
recordUnmapperProvider
Description copied from interface:Configuration
Get this configuration's underlying record unmapper provider. -
recordListenerProviders
Description copied from interface:Configuration
Get the configuredRecordListenerProvider
s from this configuration.This method allows for retrieving the configured
RecordListenerProvider
from this configuration. The providers will provide jOOQ withRecordListener
instances. 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
Description copied from interface:Configuration
Get the configuredExecuteListenerProvider
s from this configuration.This method allows for retrieving the configured
ExecuteListenerProvider
from this configuration. The providers will provide jOOQ withExecuteListener
instances. 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
Description copied from interface:Configuration
Get the configuredMigrationListenerProvider
s from this configuration.This method allows for retrieving the configured
MigrationListenerProvider
from this configuration. The providers will provide jOOQ withMigrationListener
instances. 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
Description copied from interface:Configuration
Get the configuredVisitListenerProvider
instances from this configuration.This method allows for retrieving the configured
VisitListenerProvider
instances from this configuration. The providers will provide jOOQ withVisitListener
instances. 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
-
transactionListenerProviders
Description copied from interface:Configuration
Get the configuredTransactionListenerProvider
s from this configuration. -
diagnosticsListenerProviders
Description copied from interface:Configuration
Get the configuredDiagnosticsListenerProvider
s from this configuration. -
parseListenerProviders
Description copied from interface:Configuration
Get the configuredParseListenerProvider
instances from this configuration. -
unwrapperProvider
Description copied from interface:Configuration
Get the configuredUnwrapperProvider
from this configuration. -
charsetProvider
Description copied from interface:Configuration
Get the configuredCharsetProvider
from this configuration. -
converterProvider
Description copied from interface:Configuration
Get the configuredConverterProvider
from this configuration. -
formattingProvider
Description copied from interface:Configuration
Get the configuredFormattingProvider
from this configuration. -
schemaMapping
Description copied from interface:Configuration
Retrieve the configured schema mapping. -
dialect
Description copied from interface:Configuration
Retrieve the configured dialect. -
family
Description copied from interface:Configuration
Retrieve the family of the configured dialect. -
settings
Description copied from interface:Configuration
Retrieve the runtime configuration settings. -
set
Description copied from interface:Configuration
Change this configuration to hold a newClock
.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newClock
- The new clock to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold a new connection provider.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newConnectionProvider
- The new connection provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold a new meta provider.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newMetaProvider
- The new meta provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold a new commit provider.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newCommitProvider
- The new commit provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
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
Configuration
objects.- Parameters:
newConnection
- The new connection to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
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
Configuration
objects.- Parameters:
newDataSource
- The new data source to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold a new R2DBC connection factory.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold a new executor.This will wrap the argument
Executor
in aDefaultExecutorProvider
for convenience.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newExecutor
- The new executor to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold a new executor provider.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newExecutorProvider
- The new executor provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold a new cache provider.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newCacheProvider
- The new cache provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold a new transaction provider.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newTransactionProvider
- The new transaction provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold a new record mapper.This will wrap the argument
RecordMapper
in aDefaultRecordMapperProvider
for convenience.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newRecordMapper
- The new record mapper to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold a new record mapper provider.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newRecordMapperProvider
- The new record mapper provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold a new record unmapper.This will wrap the argument
RecordUnmapper
in aDefaultRecordUnmapperProvider
for convenience.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newRecordUnmapper
- The new record unmapper to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold a new record unmapper provider.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newRecordUnmapperProvider
- The new record unmapper provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold new record listener providers.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newRecordListenerProviders
- The new record listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold new execute listener providers.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newExecuteListenerProviders
- The new execute listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold new migration listener providers.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newMigrationListenerProviders
- The new migration listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold new visit listener providers.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newVisitListenerProviders
- The new visit listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold new transaction listener providers.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newTransactionListenerProviders
- The new transaction listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold new diagnostics listener providers.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newDiagnosticsListenerProviders
- The new diagnostics listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold new parse listener providers.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newParseListenerProviders
- The new parse listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold a new unwrapper.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newUnwrapper
- The new unwrapper to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold a new unwrapper provider.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newUnwrapperProvider
- The new unwrapper provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold a new charset provider.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newCharsetProvider
- The new charset provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold a new converter provider.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newConverterProvider
- The new converter provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold a new formatting provider.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newFormattingProvider
- The new formatting provider to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold a new dialect.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newDialect
- The new dialect to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold a new settings.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Parameters:
newSettings
- The new settings to be contained in the changed configuration.- Returns:
- The changed configuration.
-
derive
Description copied from interface:Configuration
Create a derived configuration from this one, without changing any properties.- Returns:
- The derived configuration.
-
derive
Description copied from interface:Configuration
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
Description copied from interface:Configuration
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
Description copied from interface:Configuration
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
Description copied from interface:Configuration
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
Description copied from interface:Configuration
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
Description copied from interface:Configuration
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
Description copied from interface:Configuration
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
Description copied from interface:Configuration
Create a derived configuration from this one, with a new executor.This will wrap the argument
Executor
in aDefaultExecutorProvider
for convenience.- Parameters:
newExecutor
- The new executor to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Description copied from interface:Configuration
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
Description copied from interface:Configuration
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
Description copied from interface:Configuration
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
Description copied from interface:Configuration
Create a derived configuration from this one, with a new record mapper.This will wrap the argument
RecordMapper
in aDefaultRecordMapperProvider
for convenience.- Parameters:
newRecordMapper
- The new record mapper to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Description copied from interface:Configuration
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
Description copied from interface:Configuration
Create a derived configuration from this one, with a new record unmapper.This will wrap the argument
RecordUnmapper
in aDefaultRecordUnmapperProvider
for convenience.- Parameters:
newRecordUnmapper
- The new record unmapper to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Description copied from interface:Configuration
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
Description copied from interface:Configuration
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.
-
derive
Description copied from interface:Configuration
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.
-
derive
Description copied from interface:Configuration
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.
-
derive
Description copied from interface:Configuration
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.
-
derive
Description copied from interface:Configuration
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.
-
derive
Description copied from interface:Configuration
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.
-
derive
Description copied from interface:Configuration
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.
-
derive
Description copied from interface:Configuration
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
Description copied from interface:Configuration
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
Description copied from interface:Configuration
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
Description copied from interface:Configuration
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
Description copied from interface:Configuration
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
Description copied from interface:Configuration
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
Description copied from interface:Configuration
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
Description copied from interface:Configuration
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.
-