Top Description Inners Fields Constructors Methods
org.jooq.impl

public Class DefaultConfiguration

extends AbstractConfiguration
Class Inheritance
Static Imports
org.jooq.SQLDialect.DEFAULT, org.jooq.impl.Tools.SimpleDataKey.DATA_DEFAULT_TRANSACTION_PROVIDER_CONNECTION

A default implementation for configurations within a DSLContext, if no custom configuration was supplied to DSL#using(Configuration).

The DefaultConfiguration

Author
Lukas Eder

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
private class
private class
private class

Field Summary

Modifier and TypeField and Description
private transient CacheProvider
private transient CharsetProvider
private Clock
private transient CommitProvider
private transient ConnectionFactory
private transient ConnectionProvider
private transient ConverterProvider
private transient ConcurrentHashMap<Object, Object>
private transient DiagnosticsListenerProvider[]
private SQLDialect
private static final String
private transient ExecuteListenerProvider[]
private transient ExecutorProvider
private transient FormattingProvider
private transient ConnectionProvider
private SchemaMapping
mapping

Deprecated as a consequence of SchemaMapping being deprecated.
private transient MetaProvider
private transient MigrationListenerProvider[]
private transient RecordListenerProvider[]
private transient RecordMapperProvider
private transient RecordUnmapperProvider
private Settings
private transient ConnectionProvider
private transient TransactionListenerProvider[]
private transient TransactionProvider
private transient UnwrapperProvider
private transient VisitListenerProvider[]

Constructor Summary

AccessConstructor and Description
public
DefaultConfiguration()

Create a new configuration object.

pack-priv
DefaultConfiguration(SQLDialect dialect)

Create a new configuration object.

pack-priv
DefaultConfiguration(ConnectionProvider connectionProvider, SQLDialect dialect, Settings settings)

Create a new configuration object.

pack-priv
DefaultConfiguration(DefaultConfiguration
The pre-existing configuration.
configuration
)

Create a new "derived" configuration object from a pre-existing one.

pack-priv
DefaultConfiguration(ConnectionProvider connectionProvider, ConnectionProvider interpreterConnectionProvider, ConnectionProvider systemConnectionProvider, ConnectionFactory connectionFactory, MetaProvider metaProvider, CommitProvider commitProvider, ExecutorProvider executorProvider, CacheProvider cacheProvider, TransactionProvider transactionProvider, RecordMapperProvider recordMapperProvider, RecordUnmapperProvider recordUnmapperProvider, RecordListenerProvider[] recordListenerProviders, ExecuteListenerProvider[] executeListenerProviders, MigrationListenerProvider[] migrationListenerProviders, VisitListenerProvider[] visitListenerProviders, TransactionListenerProvider[] transactionListenerProviders, DiagnosticsListenerProvider[] diagnosticsListenerProviders, UnwrapperProvider unwrapperProvider, CharsetProvider charsetProvider, ConverterProvider converterProvider, FormattingProvider formattingProvider, Clock clock, SQLDialect dialect, Settings settings, Map<Object, Object> data)

Create the actual configuration object.

Method Summary

Modifier and TypeMethod and Description
public final CacheProvider
cacheProvider()

Implements org.jooq.Configuration.cacheProvider.

Get this configuration's underlying cache provider.
public final CharsetProvider
charsetProvider()

Implements org.jooq.Configuration.charsetProvider.

Get the configured CharsetProvider from this configuration.
public final Clock
clock()

Implements org.jooq.Configuration.clock.

Get this configuration's Clock, which is used for optimistic locking, transaction time, and other time-depending features.
private final <E> E[]
cloneSerializables(E[] array)

public final CommitProvider
commitProvider()

Implements org.jooq.Configuration.commitProvider.

Get this configuration's underlying commit provider.
public final ConnectionFactory
connectionFactory()

Implements org.jooq.Configuration.connectionFactory.

Get this configuration's underlying R2DBC connection factory.
public final ConnectionProvider
connectionProvider()

Implements org.jooq.Configuration.connectionProvider.

Get this configuration's underlying connection provider.
public final ConverterProvider
converterProvider()

Implements org.jooq.Configuration.converterProvider.

Get the configured ConverterProvider from this configuration.
public final ConcurrentHashMap<Object, Object>
data()

Implements org.jooq.Configuration.data.

Get all custom data from this Configuration.
public final Object
data(Object
A key to identify the custom data
key
)

Implements org.jooq.Configuration.data.

Get some custom data from this Configuration.
public final Object
data(Object
A key to identify the custom data
key
,
Object
The custom data
value
)

Implements org.jooq.Configuration.data.

Set some custom data to this Configuration.
public final Configuration
derive()

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, without changing any properties.
public final Configuration
derive(Connection
The new connection to be contained in the derived configuration.
newConnection
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with a new connection wrapped in a DefaultConnectionProvider.
public final Configuration
derive(DataSource
The new data source to be contained in the derived configuration.
newDataSource
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with a new data source wrapped in a DataSourceConnectionProvider.
public final Configuration
derive(ConnectionFactory
The new connection factory to be contained in the derived configuration.
newConnectionFactory
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with a new R2DBC connection factory.
public final Configuration
derive(ConnectionProvider
The new connection provider to be contained in the derived configuration.
newConnectionProvider
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with a new connection provider.
public final Configuration
derive(MetaProvider
The new meta provider to be contained in the derived configuration.
newMetaProvider
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with a new meta provider.
public final Configuration
derive(CommitProvider
The new commit provider to be contained in the derived configuration.
newCommitProvider
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with a new commit provider.
public final Configuration
derive(final Executor
The new executor to be contained in the derived configuration.
newExecutor
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with a new executor.
public final Configuration
derive(ExecutorProvider
The new executor provider to be contained in the derived configuration.
newExecutorProvider
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with a new executor provider.
public final Configuration
derive(CacheProvider
The new cache provider to be contained in the derived configuration.
newCacheProvider
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with a new cache provider.
public final Configuration
derive(TransactionProvider
The new transaction provider to be contained in the derived configuration.
newTransactionProvider
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with a new transaction provider.
public final Configuration
derive(final RecordMapper<?, ?>
The new record mapper to be contained in the derived configuration.
newRecordMapper
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with a new record mapper.
public final Configuration
derive(RecordMapperProvider
The new record mapper provider to be contained in the derived configuration.
newRecordMapperProvider
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with a new record mapper provider.
public final Configuration
derive(final RecordUnmapper<?, ?>
The new record unmapper to be contained in the derived configuration.
newRecordUnmapper
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with a new record unmapper.
public final Configuration
derive(RecordUnmapperProvider
The new record unmapper provider to be contained in the derived configuration.
newRecordUnmapperProvider
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with a new record unmapper provider.
public final Configuration
derive(RecordListenerProvider...
The new record listener providers to be contained in the derived configuration.
newRecordListenerProviders
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with new record listener providers.
public final Configuration
derive(ExecuteListenerProvider...
The new execute listener providers to be contained in the derived configuration.
newExecuteListenerProviders
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with new execute listener providers.
public final Configuration
derive(MigrationListenerProvider...
The new migration listener providers to be contained in the derived configuration.
newMigrationListenerProviders
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with new migration listener providers.
public final Configuration
derive(VisitListenerProvider...
The new visit listener providers to be contained in the derived configuration.
newVisitListenerProviders
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with new visit listener providers.
public final Configuration
derive(TransactionListenerProvider...
The new transaction listener providers to be contained in the derived configuration.
newTransactionListenerProviders
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with new transaction listener providers.
public final Configuration
derive(DiagnosticsListenerProvider...
The new diagnostics listener providers to be contained in the derived configuration.
newDiagnosticsListenerProviders
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with new diagnostics listener providers.
public final Configuration
derive(Unwrapper
The new unwrapper to be contained in the derived configuration.
newUnwrapper
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with a new unwrapper.
public final Configuration
derive(UnwrapperProvider
The new unwrapper provider to be contained in the derived configuration.
newUnwrapperProvider
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with a new unwrapper provider.
public final Configuration
derive(CharsetProvider
The new charset provider to be contained in the derived configuration.
newCharsetProvider
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with a new charset provider.
public final Configuration
derive(ConverterProvider
The new converter provider to be contained in the derived configuration.
newConverterProvider
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with new converter provider.
public final Configuration
derive(FormattingProvider
The new formatting provider to be contained in the derived configuration.
newFormattingProvider
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with new formatting provider.
public final Configuration
derive(Clock
The new clock to be contained in the derived configuration.
newClock
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with a new Clock.
public final Configuration
derive(SQLDialect
The new dialect to be contained in the derived configuration.
newDialect
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with a new dialect.
public final Configuration
derive(Settings
The new settings to be contained in the derived configuration.
newSettings
)

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, with new settings.
public final Configuration
deriveSettings(Function<? super Settings, ? extends Settings>
A function producing the new settings to be contained in the derived configuration based on a clone of the current settings.
newSettings
)

Implements org.jooq.Configuration.deriveSettings.

Create a derived configuration from this one, with new settings constructed from a clone of the current settings.
public final DiagnosticsListenerProvider[]
diagnosticsListenerProviders()

Implements org.jooq.Configuration.diagnosticsListenerProviders.

Get the configured DiagnosticsListenerProviders from this configuration.
public final SQLDialect
dialect()

Implements org.jooq.Configuration.dialect.

Retrieve the configured dialect.
public final DSLContext
dsl()

Implements org.jooq.Configuration.dsl.

Wrap this Configuration in a DSLContext, providing access to the configuration-contextual DSL to construct executable queries.
public final ExecuteListenerProvider[]
executeListenerProviders()

Implements org.jooq.Configuration.executeListenerProviders.

Get the configured ExecuteListenerProviders from this configuration.
public final ExecutorProvider
executorProvider()

Implements org.jooq.Configuration.executorProvider.

Get this configuration's underlying executor provider.
public final SQLDialect
family()

Implements org.jooq.Configuration.family.

Retrieve the family of the configured dialect.
public final FormattingProvider
formattingProvider()

Implements org.jooq.Configuration.formattingProvider.

Get the configured FormattingProvider from this configuration.
public final ConnectionProvider
interpreterConnectionProvider()

Implements org.jooq.Configuration.interpreterConnectionProvider.

Get this configuration's underlying interpreter connection provider, which provides connections for DDL interpretation.
public final MetaProvider
metaProvider()

Implements org.jooq.Configuration.metaProvider.

Get this configuration's underlying meta provider.
public final MigrationListenerProvider[]
migrationListenerProviders()

Implements org.jooq.Configuration.migrationListenerProviders.

Get the configured MigrationListenerProviders from this configuration.
private void
public final RecordListenerProvider[]
recordListenerProviders()

Implements org.jooq.Configuration.recordListenerProviders.

Get the configured RecordListenerProviders from this configuration.
public final RecordMapperProvider
recordMapperProvider()

Implements org.jooq.Configuration.recordMapperProvider.

Get this configuration's underlying record mapper provider.
public final RecordUnmapperProvider
recordUnmapperProvider()

Implements org.jooq.Configuration.recordUnmapperProvider.

Get this configuration's underlying record unmapper provider.
public final SchemaMapping
schemaMapping()

Implements org.jooq.Configuration.schemaMapping.

Deprecated
Retrieve the configured schema mapping.
private final Serializable
public final Configuration
set(Connection
The new connection to be contained in the changed configuration.
newConnection
)

Implements org.jooq.Configuration.set.

Change this configuration to hold a new connection wrapped in a DefaultConnectionProvider.
public final Configuration
set(DataSource
The new data source to be contained in the changed configuration.
newDataSource
)

Implements org.jooq.Configuration.set.

Change this configuration to hold a new data source wrapped in a DataSourceConnectionProvider.
public final Configuration
set(ConnectionProvider
The new connection provider to be contained in the changed configuration.
newConnectionProvider
)

Implements org.jooq.Configuration.set.

Change this configuration to hold a new connection provider.
public final Configuration
set(ConnectionFactory
The new connection to be contained in the changed configuration.
newConnectionFactory
)

Implements org.jooq.Configuration.set.

Change this configuration to hold a new R2DBC connection factory.
public final Configuration
set(MetaProvider
The new meta provider to be contained in the changed configuration.
newMetaProvider
)

Implements org.jooq.Configuration.set.

Change this configuration to hold a new meta provider.
public final Configuration
set(CommitProvider
The new commit provider to be contained in the changed configuration.
newCommitProvider
)

Implements org.jooq.Configuration.set.

Change this configuration to hold a new commit provider.
public final Configuration
set(Executor
The new executor to be contained in the changed configuration.
newExecutor
)

Implements org.jooq.Configuration.set.

Change this configuration to hold a new executor.
public final Configuration
set(ExecutorProvider
The new executor provider to be contained in the changed configuration.
newExecutorProvider
)

Implements org.jooq.Configuration.set.

Change this configuration to hold a new executor provider.
public final Configuration
set(CacheProvider
The new cache provider to be contained in the changed configuration.
newCacheProvider
)

Implements org.jooq.Configuration.set.

Change this configuration to hold a new cache provider.
public final Configuration
set(TransactionProvider
The new transaction provider to be contained in the changed configuration.
newTransactionProvider
)

Implements org.jooq.Configuration.set.

Change this configuration to hold a new transaction provider.
public final Configuration
set(RecordMapper<?, ?>
The new record mapper to be contained in the changed configuration.
newRecordMapper
)

Implements org.jooq.Configuration.set.

Change this configuration to hold a new record mapper.
public final Configuration
set(RecordMapperProvider
The new record mapper provider to be contained in the changed configuration.
newRecordMapperProvider
)

Implements org.jooq.Configuration.set.

Change this configuration to hold a new record mapper provider.
public final Configuration
set(RecordUnmapper<?, ?>
The new record unmapper to be contained in the changed configuration.
newRecordUnmapper
)

Implements org.jooq.Configuration.set.

Change this configuration to hold a new record unmapper.
public final Configuration
set(RecordUnmapperProvider
The new record unmapper provider to be contained in the changed configuration.
newRecordUnmapperProvider
)

Implements org.jooq.Configuration.set.

Change this configuration to hold a new record unmapper provider.
public final Configuration
set(RecordListenerProvider...
The new record listener providers to be contained in the changed configuration.
newRecordListenerProviders
)

Implements org.jooq.Configuration.set.

Change this configuration to hold new record listener providers.
public final Configuration
set(ExecuteListenerProvider...
The new execute listener providers to be contained in the changed configuration.
newExecuteListenerProviders
)

Implements org.jooq.Configuration.set.

Change this configuration to hold new execute listener providers.
public final Configuration
set(MigrationListenerProvider...
The new migration listener providers to be contained in the changed configuration.
newMigrationListenerProviders
)

Implements org.jooq.Configuration.set.

Change this configuration to hold new migration listener providers.
public final Configuration
set(VisitListenerProvider...
The new visit listener providers to be contained in the changed configuration.
newVisitListenerProviders
)

Implements org.jooq.Configuration.set.

Change this configuration to hold new visit listener providers.
public final Configuration
set(TransactionListenerProvider...
The new transaction listener providers to be contained in the changed configuration.
newTransactionListenerProviders
)

Implements org.jooq.Configuration.set.

Change this configuration to hold new transaction listener providers.
public final Configuration
set(DiagnosticsListenerProvider...
The new diagnostics listener providers to be contained in the changed configuration.
newDiagnosticsListenerProviders
)

Implements org.jooq.Configuration.set.

Change this configuration to hold new diagnostics listener providers.
public final Configuration
set(Unwrapper
The new unwrapper to be contained in the changed configuration.
newUnwrapper
)

Implements org.jooq.Configuration.set.

Change this configuration to hold a new unwrapper.
public final Configuration
set(UnwrapperProvider
The new unwrapper provider to be contained in the changed configuration.
newUnwrapperProvider
)

Implements org.jooq.Configuration.set.

Change this configuration to hold a new unwrapper provider.
public final Configuration
set(CharsetProvider
The new charset provider to be contained in the changed configuration.
newCharsetProvider
)

Implements org.jooq.Configuration.set.

Change this configuration to hold a new charset provider.
public final Configuration
set(ConverterProvider
The new converter provider to be contained in the changed configuration.
newConverterProvider
)

Implements org.jooq.Configuration.set.

Change this configuration to hold a new converter provider.
public final Configuration
set(FormattingProvider
The new formatting provider to be contained in the changed configuration.
newFormattingProvider
)

Implements org.jooq.Configuration.set.

Change this configuration to hold a new formatting provider.
public final Configuration
set(Clock
The new clock to be contained in the changed configuration.
newClock
)

Implements org.jooq.Configuration.set.

Change this configuration to hold a new Clock.
public final Configuration
set(SQLDialect
The new dialect to be contained in the changed configuration.
newDialect
)

Implements org.jooq.Configuration.set.

Change this configuration to hold a new dialect.
public final Configuration
set(Settings
The new settings to be contained in the changed configuration.
newSettings
)

Implements org.jooq.Configuration.set.

Change this configuration to hold a new settings.
public final void
setCacheProvider(CacheProvider newCacheProvider)

public final void
setClock(Clock newClock)

public final void
setConnection(Connection newConnection)

public final void
public final void
public final void
setDataSource(DataSource newDataSource)

public final void
setDiagnosticsListener(DiagnosticsListener... newDiagnosticsListener)

public final void
setDiagnosticsListenerProvider(DiagnosticsListenerProvider... newDiagnosticsListenerProviders)

public final void
setExecuteListener(ExecuteListener... newExecuteListeners)

public final void
setExecuteListenerProvider(ExecuteListenerProvider... newExecuteListenerProviders)

public final void
setExecutor(Executor newExecutor)

public final void
public final void
setInterpreterConnectionProvider(ConnectionProvider newInterpreterConnectionProvider)

public final void
setMetaProvider(MetaProvider newMetaProvider)

public final void
setRecordListener(RecordListener... newRecordListeners)

public final void
setRecordListenerProvider(RecordListenerProvider... newRecordListenerProviders)

public final void
setRecordMapper(RecordMapper<?, ?> newRecordMapper)

public final void
public final void
setRecordUnmapper(RecordUnmapper<?, ?> newRecordUnmapper)

public final void
public final void
setSettings(Settings newSettings)

public final void
public final void
setSystemConnectionProvider(ConnectionProvider newSystemConnectionProvider)

public final Settings
settings()

Implements org.jooq.Configuration.settings.

Retrieve the runtime configuration settings.
public final void
setTransactionListener(TransactionListener... newTransactionListeners)

public final void
setTransactionListenerProvider(TransactionListenerProvider... newTransactionListenerProviders)

public final void
public final void
setUnwrapper(Unwrapper newUnwrapper)

public final void
public final void
public final void
setVisitListener(VisitListener... newVisitListeners)

public final void
setVisitListenerProvider(VisitListenerProvider... newVisitListenerProviders)

public final ConnectionProvider
systemConnectionProvider()

Implements org.jooq.Configuration.systemConnectionProvider.

Get this configuration's underlying system connection provider, which provides connections for system tasks.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public final TransactionListenerProvider[]
transactionListenerProviders()

Implements org.jooq.Configuration.transactionListenerProviders.

Get the configured TransactionListenerProviders from this configuration.
public final TransactionProvider
transactionProvider()

Implements org.jooq.Configuration.transactionProvider.

Get this configuration's underlying transaction provider.
public final UnwrapperProvider
unwrapperProvider()

Implements org.jooq.Configuration.unwrapperProvider.

Get the configured UnwrapperProvider from this configuration.
public final VisitListenerProvider[]
visitListenerProviders()

Implements org.jooq.Configuration.visitListenerProviders.

Get the configured VisitListenerProvider instances from this configuration.
private void
Inherited from org.jooq.impl.AbstractConfiguration:
commercialderivederivederivederivederivederivederiveAppendingderiveAppendingderiveAppendingderiveAppendingderiveAppendingderiveAppendingderiveAppendingderiveAppendingderiveAppendingderiveAppendingderiveAppendingderiveAppendingrequireCommercialsetsetsetsetsetsetsetAppendingsetAppendingsetAppendingsetAppendingsetAppendingsetAppendingsetAppendingsetAppendingsetAppendingsetAppendingsetAppendingsetAppending