- java.lang.Object
-
- org.jooq.impl.AbstractConfiguration
-
- org.jooq.impl.DefaultConfiguration
-
- All Implemented Interfaces:
Serializable
,Configuration
public class DefaultConfiguration extends AbstractConfiguration
A default implementation for configurations within aDSLContext
, if no custom configuration was supplied toDSL.using(Configuration)
.The
DefaultConfiguration
- Author:
- Lukas Eder
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultConfiguration()
Create a new configuration object.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CharsetProvider
charsetProvider()
Get the configuredCharsetProvider
from this configuration.Clock
clock()
Get this configuration'sClock
, which is used for optimistic locking, transaction time, and other time-depending features.CommitProvider
commitProvider()
Get this configuration's underlying commit provider.ConnectionProvider
connectionProvider()
Get this configuration's underlying connection provider.ConverterProvider
converterProvider()
Get the configuredConverterProvider
from this configuration.ConcurrentHashMap<Object,Object>
data()
Get all custom data from thisConfiguration
.Object
data(Object key)
Get some custom data from thisConfiguration
.Object
data(Object key, Object value)
Set some custom data to thisConfiguration
.Configuration
derive()
Create a derived configuration from this one, without changing any properties.Configuration
derive(Connection newConnection)
Create a derived configuration from this one, with a new connection wrapped in aDefaultConnectionProvider
.Configuration
derive(Clock newClock)
Create a derived configuration from this one, with a newClock
.Configuration
derive(Executor newExecutor)
Create a derived configuration from this one, with a new executor.Configuration
derive(DataSource newDataSource)
Create a derived configuration from this one, with a new data source wrapped in aDataSourceConnectionProvider
.Configuration
derive(CharsetProvider newCharsetProvider)
Create a derived configuration from this one, with a new charset provider.Configuration
derive(CommitProvider newCommitProvider)
Create a derived configuration from this one, with a new commit provider.Configuration
derive(Settings newSettings)
Create a derived configuration from this one, with new settings.Configuration
derive(ConnectionProvider newConnectionProvider)
Create a derived configuration from this one, with a new connection provider.Configuration
derive(ConverterProvider newConverterProvider)
Create a derived configuration from this one, with new converter provider.Configuration
derive(DiagnosticsListenerProvider... newDiagnosticsListenerProviders)
Create a derived configuration from this one, with new diagnostics listener providers.Configuration
derive(ExecuteListenerProvider... newExecuteListenerProviders)
Create a derived configuration from this one, with new execute listener providers.Configuration
derive(ExecutorProvider newExecutorProvider)
Create a derived configuration from this one, with a new executor provider.Configuration
derive(MetaProvider newMetaProvider)
Create a derived configuration from this one, with a new meta provider.Configuration
derive(MigrationListenerProvider... newMigrationListenerProviders)
Create a derived configuration from this one, with new migration listener providers.Configuration
derive(ParseListenerProvider... newParseListenerProviders)
Create a derived configuration from this one, with new parse listener providers.Configuration
derive(RecordListenerProvider... newRecordListenerProviders)
Create a derived configuration from this one, with new record listener providers.Configuration
derive(RecordMapper<?,?> newRecordMapper)
Create a derived configuration from this one, with a new record mapper.Configuration
derive(RecordMapperProvider newRecordMapperProvider)
Create a derived configuration from this one, with a new record mapper provider.Configuration
derive(RecordUnmapper<?,?> newRecordUnmapper)
Create a derived configuration from this one, with a new record unmapper.Configuration
derive(RecordUnmapperProvider newRecordUnmapperProvider)
Create a derived configuration from this one, with a new record unmapper provider.Configuration
derive(SQLDialect newDialect)
Create a derived configuration from this one, with a new dialect.Configuration
derive(TransactionListenerProvider... newTransactionListenerProviders)
Create a derived configuration from this one, with new transaction listener providers.Configuration
derive(TransactionProvider newTransactionProvider)
Create a derived configuration from this one, with a new transaction provider.Configuration
derive(Unwrapper newUnwrapper)
Create a derived configuration from this one, with a new unwrapper.Configuration
derive(UnwrapperProvider newUnwrapperProvider)
Create a derived configuration from this one, with a new unwrapper provider.Configuration
derive(VisitListenerProvider... newVisitListenerProviders)
Create a derived configuration from this one, with new visit listener providers.DiagnosticsListenerProvider[]
diagnosticsListenerProviders()
Get the configuredDiagnosticsListenerProvider
s from this configuration.SQLDialect
dialect()
Retrieve the configured dialect.DSLContext
dsl()
Wrap thisConfiguration
in aDSLContext
, providing access to the configuration-contextual DSL to construct executable queries.ExecuteListenerProvider[]
executeListenerProviders()
Get the configuredExecuteListenerProvider
s from this configuration.ExecutorProvider
executorProvider()
Get this configuration's underlying executor provider.SQLDialect
family()
Retrieve the family of the configured dialect.ConnectionProvider
interpreterConnectionProvider()
Get this configuration's underlying interpreter connection provider, which provides connections for DDL interpretation.MetaProvider
metaProvider()
Get this configuration's underlying meta provider.MigrationListenerProvider[]
migrationListenerProviders()
Get the configuredMigrationListenerProvider
s from this configuration.ParseListenerProvider[]
parseListenerProviders()
Get the configuredParseListenerProvider
instances from this configuration.RecordListenerProvider[]
recordListenerProviders()
Get the configuredRecordListenerProvider
s from this configuration.RecordMapperProvider
recordMapperProvider()
Get this configuration's underlying record mapper provider.RecordUnmapperProvider
recordUnmapperProvider()
Get this configuration's underlying record unmapper provider.SchemaMapping
schemaMapping()
Deprecated.Configuration
set(Connection newConnection)
Change this configuration to hold a new connection wrapped in aDefaultConnectionProvider
.Configuration
set(Clock newClock)
Change this configuration to hold a newClock
.Configuration
set(Executor newExecutor)
Change this configuration to hold a new executor.Configuration
set(DataSource newDataSource)
Change this configuration to hold a new data source wrapped in aDataSourceConnectionProvider
.Configuration
set(CharsetProvider newCharsetProvider)
Change this configuration to hold a new charset provider.Configuration
set(CommitProvider newCommitProvider)
Change this configuration to hold a new commit provider.Configuration
set(Settings newSettings)
Change this configuration to hold a new settings.Configuration
set(ConnectionProvider newConnectionProvider)
Change this configuration to hold a new connection provider.Configuration
set(ConverterProvider newConverterProvider)
Change this configuration to hold a new converter provider.Configuration
set(DiagnosticsListenerProvider... newDiagnosticsListenerProviders)
Change this configuration to hold new diagnostics listener providers.Configuration
set(ExecuteListenerProvider... newExecuteListenerProviders)
Change this configuration to hold new execute listener providers.Configuration
set(ExecutorProvider newExecutorProvider)
Change this configuration to hold a new executor provider.Configuration
set(MetaProvider newMetaProvider)
Change this configuration to hold a new meta provider.Configuration
set(MigrationListenerProvider... newMigrationListenerProviders)
Change this configuration to hold new migration listener providers.Configuration
set(ParseListenerProvider... newParseListenerProviders)
Change this configuration to hold new parse listener providers.Configuration
set(RecordListenerProvider... newRecordListenerProviders)
Change this configuration to hold new record listener providers.Configuration
set(RecordMapper<?,?> newRecordMapper)
Change this configuration to hold a new record mapper.Configuration
set(RecordMapperProvider newRecordMapperProvider)
Change this configuration to hold a new record mapper provider.Configuration
set(RecordUnmapper<?,?> newRecordUnmapper)
Change this configuration to hold a new record unmapper.Configuration
set(RecordUnmapperProvider newRecordUnmapperProvider)
Change this configuration to hold a new record unmapper provider.Configuration
set(SQLDialect newDialect)
Change this configuration to hold a new dialect.Configuration
set(TransactionListenerProvider... newTransactionListenerProviders)
Change this configuration to hold new transaction listener providers.Configuration
set(TransactionProvider newTransactionProvider)
Change this configuration to hold a new transaction provider.Configuration
set(Unwrapper newUnwrapper)
Change this configuration to hold a new unwrapper.Configuration
set(UnwrapperProvider newUnwrapperProvider)
Change this configuration to hold a new unwrapper provider.Configuration
set(VisitListenerProvider... newVisitListenerProviders)
Change this configuration to hold new visit listener providers.void
setClock(Clock newClock)
void
setConnection(Connection newConnection)
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
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)
ConnectionProvider
systemConnectionProvider()
Get this configuration's underlying system connection provider, which provides connections for system tasks.String
toString()
TransactionListenerProvider[]
transactionListenerProviders()
Get the configuredTransactionListenerProvider
s from this configuration.TransactionProvider
transactionProvider()
Get this configuration's underlying transaction provider.UnwrapperProvider
unwrapperProvider()
Get the configuredUnwrapperProvider
from this configuration.VisitListenerProvider[]
visitListenerProviders()
Get the configuredVisitListenerProvider
instances from this configuration.-
Methods inherited from class org.jooq.impl.AbstractConfiguration
derive, derive, derive, derive, derive, derive, derive, deriveAppending, deriveAppending, deriveAppending, deriveAppending, deriveAppending, deriveAppending, deriveAppending, deriveAppending, deriveAppending, deriveAppending, deriveAppending, deriveAppending, deriveAppending, deriveAppending, 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
-
-
-
-
Method Detail
-
dsl
public final DSLContext 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
public final Configuration derive()
Description copied from interface:Configuration
Create a derived configuration from this one, without changing any properties.- Returns:
- The derived configuration.
-
derive
public final Configuration derive(Connection newConnection)
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
public final Configuration derive(DataSource newDataSource)
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
public final Configuration derive(ConnectionProvider newConnectionProvider)
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
public final Configuration derive(MetaProvider newMetaProvider)
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
public final Configuration derive(CommitProvider newCommitProvider)
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
public final Configuration derive(Executor newExecutor)
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
public final Configuration derive(ExecutorProvider newExecutorProvider)
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
public final Configuration derive(TransactionProvider newTransactionProvider)
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
public final Configuration derive(RecordMapper<?,?> newRecordMapper)
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
public final Configuration derive(RecordMapperProvider newRecordMapperProvider)
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
public final Configuration derive(RecordUnmapper<?,?> newRecordUnmapper)
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
public final Configuration derive(RecordUnmapperProvider newRecordUnmapperProvider)
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
public final Configuration derive(RecordListenerProvider... newRecordListenerProviders)
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
public final Configuration derive(ExecuteListenerProvider... newExecuteListenerProviders)
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
public final Configuration derive(MigrationListenerProvider... newMigrationListenerProviders)
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
public final Configuration derive(VisitListenerProvider... newVisitListenerProviders)
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
public final Configuration derive(TransactionListenerProvider... newTransactionListenerProviders)
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
public final Configuration derive(DiagnosticsListenerProvider... newDiagnosticsListenerProviders)
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
public final Configuration derive(Unwrapper newUnwrapper)
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
public final Configuration derive(UnwrapperProvider newUnwrapperProvider)
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
public final Configuration derive(CharsetProvider newCharsetProvider)
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
public final Configuration derive(ConverterProvider newConverterProvider)
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
@Pro public final Configuration derive(ParseListenerProvider... newParseListenerProviders)
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
public final Configuration derive(Clock newClock)
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
public final Configuration derive(SQLDialect newDialect)
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
public final Configuration derive(Settings newSettings)
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.
-
set
public final Configuration set(Connection newConnection)
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
public final Configuration set(DataSource newDataSource)
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
public final Configuration set(ConnectionProvider newConnectionProvider)
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
public final Configuration set(MetaProvider newMetaProvider)
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
public final Configuration set(CommitProvider newCommitProvider)
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
public final Configuration set(Executor newExecutor)
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
public final Configuration set(ExecutorProvider newExecutorProvider)
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
public final Configuration set(TransactionProvider newTransactionProvider)
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
public final Configuration set(RecordMapper<?,?> newRecordMapper)
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
public final Configuration set(RecordMapperProvider newRecordMapperProvider)
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
public final Configuration set(RecordUnmapper<?,?> newRecordUnmapper)
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
public final Configuration set(RecordUnmapperProvider newRecordUnmapperProvider)
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
public final Configuration set(RecordListenerProvider... newRecordListenerProviders)
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
public final Configuration set(ExecuteListenerProvider... newExecuteListenerProviders)
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
public final Configuration set(MigrationListenerProvider... newMigrationListenerProviders)
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
public final Configuration set(VisitListenerProvider... newVisitListenerProviders)
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
public final Configuration set(TransactionListenerProvider... newTransactionListenerProviders)
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
public final Configuration set(DiagnosticsListenerProvider... newDiagnosticsListenerProviders)
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
public final Configuration set(Unwrapper newUnwrapper)
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
public final Configuration set(UnwrapperProvider newUnwrapperProvider)
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
public final Configuration set(CharsetProvider newCharsetProvider)
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
public final Configuration set(ConverterProvider newConverterProvider)
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
@Pro public final Configuration set(ParseListenerProvider... newParseListenerProviders)
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
public final Configuration set(Clock newClock)
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
public final Configuration set(SQLDialect newDialect)
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
public final Configuration set(Settings newSettings)
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
public final void setConnection(Connection newConnection)
- See Also:
set(Connection)
-
setDataSource
public final void setDataSource(DataSource newDataSource)
- See Also:
set(DataSource)
-
setConnectionProvider
public final void setConnectionProvider(ConnectionProvider newConnectionProvider)
- See Also:
set(ConnectionProvider)
-
setInterpreterConnectionProvider
public final void setInterpreterConnectionProvider(ConnectionProvider newInterpreterConnectionProvider)
- See Also:
set(ConnectionProvider)
-
setSystemConnectionProvider
public final void setSystemConnectionProvider(ConnectionProvider newSystemConnectionProvider)
- See Also:
set(ConnectionProvider)
-
setMetaProvider
public final void setMetaProvider(MetaProvider newMetaProvider)
- See Also:
set(MetaProvider)
-
setVersionProvider
public final void setVersionProvider(CommitProvider newCommitProvider)
- See Also:
set(CommitProvider)
-
setExecutor
public final void setExecutor(Executor newExecutor)
- See Also:
set(Executor)
-
setExecutorProvider
public final void setExecutorProvider(ExecutorProvider newExecutorProvider)
- See Also:
set(ExecutorProvider)
-
setTransactionProvider
public final void setTransactionProvider(TransactionProvider newTransactionProvider)
- See Also:
set(TransactionProvider)
-
setRecordMapper
public final void setRecordMapper(RecordMapper<?,?> newRecordMapper)
- See Also:
set(RecordMapper)
-
setRecordMapperProvider
public final void setRecordMapperProvider(RecordMapperProvider newRecordMapperProvider)
- See Also:
set(RecordMapperProvider)
-
setRecordUnmapper
public final void setRecordUnmapper(RecordUnmapper<?,?> newRecordUnmapper)
- See Also:
set(RecordUnmapper)
-
setRecordUnmapperProvider
public final void setRecordUnmapperProvider(RecordUnmapperProvider newRecordUnmapperProvider)
- See Also:
set(RecordUnmapperProvider)
-
setRecordListener
public final void setRecordListener(RecordListener... newRecordListeners)
-
setRecordListenerProvider
public final void setRecordListenerProvider(RecordListenerProvider... newRecordListenerProviders)
- See Also:
set(RecordListenerProvider[])
-
setExecuteListener
public final void setExecuteListener(ExecuteListener... newExecuteListeners)
-
setExecuteListenerProvider
public final void setExecuteListenerProvider(ExecuteListenerProvider... newExecuteListenerProviders)
- See Also:
set(ExecuteListenerProvider[])
-
setVisitListener
public final void setVisitListener(VisitListener... newVisitListeners)
-
setVisitListenerProvider
public final void setVisitListenerProvider(VisitListenerProvider... newVisitListenerProviders)
- See Also:
set(VisitListenerProvider[])
-
setTransactionListener
public final void setTransactionListener(TransactionListener... newTransactionListeners)
-
setTransactionListenerProvider
public final void setTransactionListenerProvider(TransactionListenerProvider... newTransactionListenerProviders)
- See Also:
set(TransactionListenerProvider[])
-
setDiagnosticsListener
public final void setDiagnosticsListener(DiagnosticsListener... newDiagnosticsListener)
-
setDiagnosticsListenerProvider
public final void setDiagnosticsListenerProvider(DiagnosticsListenerProvider... newDiagnosticsListenerProviders)
- See Also:
set(DiagnosticsListenerProvider[])
-
setParseListener
@Pro public final void setParseListener(ParseListener... newParseListener)
-
setParseListenerProvider
@Pro public final void setParseListenerProvider(ParseListenerProvider... newParseListenerProviders)
- See Also:
set(ParseListenerProvider[])
-
setUnwrapper
public final void setUnwrapper(Unwrapper newUnwrapper)
- See Also:
set(Unwrapper)
-
setUnwrapperProvider
public final void setUnwrapperProvider(UnwrapperProvider newUnwrapperProvider)
- See Also:
set(UnwrapperProvider)
-
setClock
public final void setClock(Clock newClock)
- See Also:
set(Clock)
-
setSQLDialect
public final void setSQLDialect(SQLDialect newDialect)
- See Also:
set(SQLDialect)
-
setSettings
public final void setSettings(Settings newSettings)
- See Also:
set(Settings)
-
connectionProvider
public final ConnectionProvider connectionProvider()
Description copied from interface:Configuration
Get this configuration's underlying connection provider.
-
interpreterConnectionProvider
public final ConnectionProvider 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
public final ConnectionProvider 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()
.
-
metaProvider
public final MetaProvider metaProvider()
Description copied from interface:Configuration
Get this configuration's underlying meta provider.
-
commitProvider
public final CommitProvider commitProvider()
Description copied from interface:Configuration
Get this configuration's underlying commit provider.
-
executorProvider
public final ExecutorProvider 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
Fetchable.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 forFetchable.fetchAsync(Executor)
. - If
-
transactionProvider
public final TransactionProvider 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
public final RecordMapperProvider recordMapperProvider()
Description copied from interface:Configuration
Get this configuration's underlying record mapper provider.
-
recordUnmapperProvider
public final RecordUnmapperProvider recordUnmapperProvider()
Description copied from interface:Configuration
Get this configuration's underlying record unmapper provider.
-
recordListenerProviders
public final RecordListenerProvider[] 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
public final ExecuteListenerProvider[] 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
public final MigrationListenerProvider[] 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
public final VisitListenerProvider[] 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
public final TransactionListenerProvider[] transactionListenerProviders()
Description copied from interface:Configuration
Get the configuredTransactionListenerProvider
s from this configuration.
-
diagnosticsListenerProviders
public final DiagnosticsListenerProvider[] diagnosticsListenerProviders()
Description copied from interface:Configuration
Get the configuredDiagnosticsListenerProvider
s from this configuration.
-
unwrapperProvider
public final UnwrapperProvider unwrapperProvider()
Description copied from interface:Configuration
Get the configuredUnwrapperProvider
from this configuration.
-
charsetProvider
public final CharsetProvider charsetProvider()
Description copied from interface:Configuration
Get the configuredCharsetProvider
from this configuration.
-
converterProvider
public final ConverterProvider converterProvider()
Description copied from interface:Configuration
Get the configuredConverterProvider
from this configuration.
-
parseListenerProviders
public final ParseListenerProvider[] parseListenerProviders()
Description copied from interface:Configuration
Get the configuredParseListenerProvider
instances from this configuration.
-
clock
public final Clock clock()
Description copied from interface:Configuration
Get this configuration'sClock
, which is used for optimistic locking, transaction time, and other time-depending features.
-
dialect
public final SQLDialect dialect()
Description copied from interface:Configuration
Retrieve the configured dialect.
-
family
public final SQLDialect family()
Description copied from interface:Configuration
Retrieve the family of the configured dialect.
-
settings
public final Settings settings()
Description copied from interface:Configuration
Retrieve the runtime configuration settings.
-
data
public final ConcurrentHashMap<Object,Object> 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
public final Object data(Object key)
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
public final Object data(Object key, Object value)
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 public final SchemaMapping schemaMapping()
Deprecated.Description copied from interface:Configuration
Retrieve the configured schema mapping.
-
-