Top Description Fields Constructors Methods
org.jooq.tools.jdbc

public Class MockConfiguration

extends AbstractConfiguration
Class Inheritance
Imports
java.sql.Connection, java.time.Clock, java.util.Map, java.util.concurrent.Executor, java.util.function.Function, javax.sql.DataSource, org.jooq.CacheProvider, .CharsetProvider, .CommitProvider, .Configuration, .ConnectionProvider, .ConverterProvider, .DSLContext, .DiagnosticsListenerProvider, .ExecuteListenerProvider, .ExecutorProvider, .FormattingProvider, .MetaProvider, .MigrationListenerProvider, .RecordListenerProvider, .RecordMapper, .RecordMapperProvider, .RecordUnmapper, .RecordUnmapperProvider, .SQLDialect, .TransactionListenerProvider, .TransactionProvider, .Unwrapper, .UnwrapperProvider, .VisitListenerProvider, org.jooq.conf.Settings, org.jooq.impl.AbstractConfiguration, .DefaultDSLContext, io.r2dbc.spi.ConnectionFactory

A mock configuration.

This Configuration wraps a delegate Configuration and wraps all ConnectionProvider references in MockConnectionProvider.

Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
private final Configuration
private final MockDataProvider

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public CacheProvider
cacheProvider()

Implements org.jooq.Configuration.cacheProvider.

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

Implements org.jooq.Configuration.charsetProvider.

Get the configured CharsetProvider from this configuration.
public 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.
public CommitProvider
commitProvider()

Implements org.jooq.Configuration.commitProvider.

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

Implements org.jooq.Configuration.connectionFactory.

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

Implements org.jooq.Configuration.connectionProvider.

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

Implements org.jooq.Configuration.converterProvider.

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

Implements org.jooq.Configuration.data.

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

Implements org.jooq.Configuration.data.

Get some custom data from this Configuration.
public 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 Configuration
derive()

Implements org.jooq.Configuration.derive.

Create a derived configuration from this one, without changing any properties.
public 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 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 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 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 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 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 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 Configuration
derive(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 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 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 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 Configuration
derive(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 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 Configuration
derive(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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 DiagnosticsListenerProvider[]
diagnosticsListenerProviders()

Implements org.jooq.Configuration.diagnosticsListenerProviders.

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

Implements org.jooq.Configuration.dialect.

Retrieve the configured dialect.
public 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 ExecuteListenerProvider[]
executeListenerProviders()

Implements org.jooq.Configuration.executeListenerProviders.

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

Implements org.jooq.Configuration.executorProvider.

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

Implements org.jooq.Configuration.family.

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

Implements org.jooq.Configuration.formattingProvider.

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

Implements org.jooq.Configuration.interpreterConnectionProvider.

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

Implements org.jooq.Configuration.metaProvider.

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

Implements org.jooq.Configuration.migrationListenerProviders.

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

Implements org.jooq.Configuration.recordListenerProviders.

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

Implements org.jooq.Configuration.recordMapperProvider.

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

Implements org.jooq.Configuration.recordUnmapperProvider.

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

Implements org.jooq.Configuration.schemaMapping.

Deprecated as a consequence of SchemaMapping being deprecated.
Retrieve the configured schema mapping.
public 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 Settings
settings()

Implements org.jooq.Configuration.settings.

Retrieve the runtime configuration settings.
public ConnectionProvider
systemConnectionProvider()

Implements org.jooq.Configuration.systemConnectionProvider.

Get this configuration's underlying system connection provider, which provides connections for system tasks.
public TransactionListenerProvider[]
transactionListenerProviders()

Implements org.jooq.Configuration.transactionListenerProviders.

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

Implements org.jooq.Configuration.transactionProvider.

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

Implements org.jooq.Configuration.unwrapperProvider.

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

Implements org.jooq.Configuration.visitListenerProviders.

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