- All Implemented Interfaces:
Serializable
,Configuration
DSLContext
, if no
custom configuration was supplied to DSL.using(Configuration)
.
The DefaultConfiguration
- Author:
- Lukas Eder
- See Also:
- Serialized Form
-
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(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 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.Deprecated.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(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.void
setCacheProvider(CacheProvider newCacheProvider)
void
void
setConnection(Connection newConnection)
void
setConnectionFactory(io.r2dbc.spi.ConnectionFactory newConnectionFactory)
void
setConnectionProvider(ConnectionProvider newConnectionProvider)
void
setDataSource(DataSource newDataSource)
void
setDiagnosticsListener(DiagnosticsListener... newDiagnosticsListener)
void
setDiagnosticsListenerProvider(DiagnosticsListenerProvider... newDiagnosticsListenerProviders)
void
setExecuteListener(ExecuteListener... newExecuteListeners)
void
setExecuteListenerProvider(ExecuteListenerProvider... newExecuteListenerProviders)
void
setExecutor(Executor newExecutor)
void
setExecutorProvider(ExecutorProvider newExecutorProvider)
void
setInterpreterConnectionProvider(ConnectionProvider newInterpreterConnectionProvider)
void
setMetaProvider(MetaProvider newMetaProvider)
void
setParseListener(ParseListener... newParseListener)
void
setParseListenerProvider(ParseListenerProvider... newParseListenerProviders)
void
setRecordListener(RecordListener... newRecordListeners)
void
setRecordListenerProvider(RecordListenerProvider... newRecordListenerProviders)
void
setRecordMapper(RecordMapper<?,?> newRecordMapper)
void
setRecordMapperProvider(RecordMapperProvider newRecordMapperProvider)
void
setRecordUnmapper(RecordUnmapper<?,?> newRecordUnmapper)
void
setRecordUnmapperProvider(RecordUnmapperProvider newRecordUnmapperProvider)
void
setSettings(Settings newSettings)
void
setSQLDialect(SQLDialect newDialect)
void
setSystemConnectionProvider(ConnectionProvider newSystemConnectionProvider)
settings()
Retrieve the runtime configuration settings.void
setTransactionListener(TransactionListener... newTransactionListeners)
void
setTransactionListenerProvider(TransactionListenerProvider... newTransactionListenerProviders)
void
setTransactionProvider(TransactionProvider newTransactionProvider)
void
setUnwrapper(Unwrapper newUnwrapper)
void
setUnwrapperProvider(UnwrapperProvider newUnwrapperProvider)
void
setVersionProvider(CommitProvider newCommitProvider)
void
setVisitListener(VisitListener... newVisitListeners)
void
setVisitListenerProvider(VisitListenerProvider... newVisitListenerProviders)
Get this configuration's underlying system connection provider, which provides connections for system tasks.toString()
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, wait, wait, wait
Methods inherited from interface org.jooq.Configuration
commercial
-
Constructor Details
-
DefaultConfiguration
public DefaultConfiguration()Create a new configuration object.
-
-
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. -
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 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 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 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 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 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
public final Configuration deriveSettings(Function<? super Settings,? extends Settings> newSettings)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.
-
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 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 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 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 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 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 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 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 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.
-
setConnection
- See Also:
set(Connection)
-
setDataSource
- See Also:
set(DataSource)
-
setConnectionFactory
public final void setConnectionFactory(io.r2dbc.spi.ConnectionFactory newConnectionFactory)- See Also:
set(ConnectionFactory)
-
setConnectionProvider
- See Also:
set(ConnectionProvider)
-
setInterpreterConnectionProvider
public final void setInterpreterConnectionProvider(ConnectionProvider newInterpreterConnectionProvider)- See Also:
set(ConnectionProvider)
-
setSystemConnectionProvider
- See Also:
set(ConnectionProvider)
-
setMetaProvider
- See Also:
set(MetaProvider)
-
setVersionProvider
- See Also:
set(CommitProvider)
-
setExecutor
- See Also:
set(Executor)
-
setExecutorProvider
- See Also:
set(ExecutorProvider)
-
setCacheProvider
- See Also:
set(CacheProvider)
-
setTransactionProvider
- See Also:
set(TransactionProvider)
-
setRecordMapper
- See Also:
set(RecordMapper)
-
setRecordMapperProvider
- See Also:
set(RecordMapperProvider)
-
setRecordUnmapper
- See Also:
set(RecordUnmapper)
-
setRecordUnmapperProvider
- See Also:
set(RecordUnmapperProvider)
-
setRecordListener
-
setRecordListenerProvider
- See Also:
set(RecordListenerProvider[])
-
setExecuteListener
-
setExecuteListenerProvider
public final void setExecuteListenerProvider(ExecuteListenerProvider... newExecuteListenerProviders)- See Also:
set(ExecuteListenerProvider[])
-
setVisitListener
-
setVisitListenerProvider
- See Also:
set(VisitListenerProvider[])
-
setTransactionListener
-
setTransactionListenerProvider
public final void setTransactionListenerProvider(TransactionListenerProvider... newTransactionListenerProviders)- See Also:
set(TransactionListenerProvider[])
-
setDiagnosticsListener
-
setDiagnosticsListenerProvider
public final void setDiagnosticsListenerProvider(DiagnosticsListenerProvider... newDiagnosticsListenerProviders)- See Also:
set(DiagnosticsListenerProvider[])
-
setParseListener
-
setParseListenerProvider
@Pro public final void setParseListenerProvider(ParseListenerProvider... newParseListenerProviders)- See Also:
set(ParseListenerProvider[])
-
setUnwrapper
- See Also:
set(Unwrapper)
-
setUnwrapperProvider
- See Also:
set(UnwrapperProvider)
-
setClock
- See Also:
set(Clock)
-
setSQLDialect
- See Also:
set(SQLDialect)
-
setSettings
- See Also:
set(Settings)
-
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:
DSLContext.meta(Source...)
-
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 final 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:
RecordListenerProvider
,RecordListener
,RecordContext
- 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:
ExecuteListenerProvider
,ExecuteListener
,ExecuteContext
- 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:
MigrationListenerProvider
,MigrationListener
,MigrationContext
- 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:
VisitListenerProvider
,VisitListener
,VisitContext
- 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. -
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. -
parseListenerProviders
Description copied from interface:Configuration
Get the configuredParseListenerProvider
instances from this configuration. -
clock
Description copied from interface:Configuration
Get this configuration'sClock
, which is used for optimistic locking, transaction time, and other time-depending features. -
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. -
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:
ExecuteListener
-
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:
ExecuteListener
-
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:
ExecuteListener
-
schemaMapping
Deprecated.Description copied from interface:Configuration
Retrieve the configured schema mapping. -
toString
-