Module org.jooq

Class MockConfiguration

java.lang.Object
org.jooq.impl.AbstractConfiguration
org.jooq.tools.jdbc.MockConfiguration
All Implemented Interfaces:
Serializable, Configuration

public class MockConfiguration extends AbstractConfiguration
A mock configuration.

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

Author:
Lukas Eder
See Also:
  • Constructor Details

  • Method Details

    • dsl

      public DSLContext dsl()
      Description copied from interface: Configuration
      Wrap this Configuration in a DSLContext, providing access to the configuration-contextual DSL to construct executable queries.

      In the DefaultConfiguration implementation, this is just convenience for DSL.using(Configuration). There's no functional difference between the two methods.

    • data

      public Map<Object,Object> data()
      Description copied from interface: Configuration
      Get all custom data from this Configuration.

      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 custom QueryPart or ExecuteListener objects to be made available at render, bind, execution, fetch time.

      See ExecuteListener for more details.

      Returns:
      The custom data. This is never null
      See Also:
    • data

      public Object data(Object key)
      Description copied from interface: Configuration
      Get some custom data from this Configuration.

      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 custom QueryPart or ExecuteListener 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 this Configuration
      See Also:
    • data

      public Object data(Object key, Object value)
      Description copied from interface: Configuration
      Set some custom data to this Configuration.

      Use custom data if you want to pass data to your custom QueryPart or ExecuteListener objects to be made available at render, bind, execution, fetch time.

      Be sure that your custom data implements Serializable if you want to serialise this Configuration or objects referencing this Configuration, e.g. your Record types.

      See ExecuteListener for more details.

      Parameters:
      key - A key to identify the custom data
      value - The custom data
      Returns:
      The previously set custom data or null if no data was previously set for the given key
      See Also:
    • clock

      public Clock clock()
      Description copied from interface: Configuration
      Get this configuration's Clock, which is used for optimistic locking, transaction time, and other time-depending features.
    • connectionProvider

      public ConnectionProvider connectionProvider()
      Description copied from interface: Configuration
      Get this configuration's underlying connection provider.
    • interpreterConnectionProvider

      public ConnectionProvider interpreterConnectionProvider()
      Description copied from interface: Configuration
      Get this configuration's underlying interpreter connection provider, which provides connections for DDL interpretation.
      See Also:
    • systemConnectionProvider

      public 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().

    • connectionFactory

      public io.r2dbc.spi.ConnectionFactory connectionFactory()
      Description copied from interface: Configuration
      Get this configuration's underlying R2DBC connection factory.
    • metaProvider

      public MetaProvider metaProvider()
      Description copied from interface: Configuration
      Get this configuration's underlying meta provider.
    • commitProvider

      public CommitProvider commitProvider()
      Description copied from interface: Configuration
      Get this configuration's underlying commit provider.
    • executorProvider

      public 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 ResultQuery.fetchAsync().

      The following logic is applied when resolving the appropriate executor:

      1. If Configuration.executorProvider() does not return null, then ExecutorProvider.provide() is called to obtain an Executor for the asynchronous task.
      2. In the jOOQ Java 8 distribution, ForkJoinPool.commonPool() is used if ForkJoinPool.getCommonPoolParallelism() > 1
      3. 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 for ResultQuery.fetchAsync(Executor).

    • cacheProvider

      public CacheProvider cacheProvider()
      Description copied from interface: Configuration
      Get this configuration's underlying cache provider.

      Cached operations will call this SPI to obtain a thread safe cache implementation to cache various things internally. This SPI allows for replacing the default cache implementation, which is mostly a ConcurrentHashMap, by a more specialised one, e.g. a LRU cache, e.g. from Guava.

    • transactionProvider

      public 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 a DefaultConnectionProvider, then this will return a DefaultTransactionProvider.

    • recordMapperProvider

      public RecordMapperProvider recordMapperProvider()
      Description copied from interface: Configuration
      Get this configuration's underlying record mapper provider.
    • recordUnmapperProvider

      public RecordUnmapperProvider recordUnmapperProvider()
      Description copied from interface: Configuration
      Get this configuration's underlying record unmapper provider.
    • recordListenerProviders

      public RecordListenerProvider[] recordListenerProviders()
      Description copied from interface: Configuration
      Get the configured RecordListenerProviders from this configuration.

      This method allows for retrieving the configured RecordListenerProvider from this configuration. The providers will provide jOOQ with RecordListener 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 JDBC Connection, 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:
    • executeListenerProviders

      public ExecuteListenerProvider[] executeListenerProviders()
      Description copied from interface: Configuration
      Get the configured ExecuteListenerProviders from this configuration.

      This method allows for retrieving the configured ExecuteListenerProvider from this configuration. The providers will provide jOOQ with ExecuteListener 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 JDBC Connection, 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:
    • migrationListenerProviders

      public MigrationListenerProvider[] migrationListenerProviders()
      Description copied from interface: Configuration
      Get the configured MigrationListenerProviders from this configuration.

      This method allows for retrieving the configured MigrationListenerProvider from this configuration. The providers will provide jOOQ with MigrationListener 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 JDBC Connection, 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:
    • visitListenerProviders

      public VisitListenerProvider[] visitListenerProviders()
      Description copied from interface: Configuration
      Get the configured VisitListenerProvider instances from this configuration.

      This method allows for retrieving the configured VisitListenerProvider instances from this configuration. The providers will provide jOOQ with VisitListener 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 JDBC Connection, 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:
    • transactionListenerProviders

      public TransactionListenerProvider[] transactionListenerProviders()
      Description copied from interface: Configuration
      Get the configured TransactionListenerProviders from this configuration.
    • diagnosticsListenerProviders

      public DiagnosticsListenerProvider[] diagnosticsListenerProviders()
      Description copied from interface: Configuration
      Get the configured DiagnosticsListenerProviders from this configuration.
    • parseListenerProviders

      @Pro public ParseListenerProvider[] parseListenerProviders()
      Description copied from interface: Configuration
      Get the configured ParseListenerProvider instances from this configuration.
    • unwrapperProvider

      public UnwrapperProvider unwrapperProvider()
      Description copied from interface: Configuration
      Get the configured UnwrapperProvider from this configuration.
    • charsetProvider

      public CharsetProvider charsetProvider()
      Description copied from interface: Configuration
      Get the configured CharsetProvider from this configuration.
    • converterProvider

      public ConverterProvider converterProvider()
      Description copied from interface: Configuration
      Get the configured ConverterProvider from this configuration.
    • formattingProvider

      public FormattingProvider formattingProvider()
      Description copied from interface: Configuration
      Get the configured FormattingProvider from this configuration.
    • schemaMapping

      public SchemaMapping schemaMapping()
      Description copied from interface: Configuration
      Retrieve the configured schema mapping.
    • dialect

      public SQLDialect dialect()
      Description copied from interface: Configuration
      Retrieve the configured dialect.
    • family

      public SQLDialect family()
      Description copied from interface: Configuration
      Retrieve the family of the configured dialect.
    • settings

      public Settings settings()
      Description copied from interface: Configuration
      Retrieve the runtime configuration settings.
    • set

      public Configuration set(Clock newClock)
      Description copied from interface: Configuration
      Change this configuration to hold a new Clock.

      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 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 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 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 Configuration set(Connection newConnection)
      Description copied from interface: Configuration
      Change this configuration to hold a new connection wrapped in a DefaultConnectionProvider.

      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 Configuration set(DataSource newDataSource)
      Description copied from interface: Configuration
      Change this configuration to hold a new data source wrapped in a DataSourceConnectionProvider.

      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 Configuration set(io.r2dbc.spi.ConnectionFactory newConnectionFactory)
      Description copied from interface: Configuration
      Change this configuration to hold a new R2DBC connection factory.

      This method is not thread-safe and should not be used in globally available Configuration objects.

      Returns:
      The changed configuration.
    • set

      public Configuration set(Executor newExecutor)
      Description copied from interface: Configuration
      Change this configuration to hold a new executor.

      This will wrap the argument Executor in a DefaultExecutorProvider 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 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 Configuration set(CacheProvider newCacheProvider)
      Description copied from interface: Configuration
      Change this configuration to hold a new cache provider.

      This method is not thread-safe and should not be used in globally available Configuration objects.

      Parameters:
      newCacheProvider - The new cache provider to be contained in the changed configuration.
      Returns:
      The changed configuration.
    • set

      public 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 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 a DefaultRecordMapperProvider 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 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 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 a DefaultRecordUnmapperProvider 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 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 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 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 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 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 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 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

      @Pro public 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 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 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 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 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

      public Configuration set(FormattingProvider newFormattingProvider)
      Description copied from interface: Configuration
      Change this configuration to hold a new formatting provider.

      This method is not thread-safe and should not be used in globally available Configuration objects.

      Parameters:
      newFormattingProvider - The new formatting provider to be contained in the changed configuration.
      Returns:
      The changed configuration.
    • set

      public 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 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.
    • derive

      public Configuration derive()
      Description copied from interface: Configuration
      Create a derived configuration from this one, without changing any properties.
      Returns:
      The derived configuration.
    • derive

      public Configuration derive(Clock newClock)
      Description copied from interface: Configuration
      Create a derived configuration from this one, with a new Clock.
      Parameters:
      newClock - The new clock to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • derive

      public Configuration derive(Connection newConnection)
      Description copied from interface: Configuration
      Create a derived configuration from this one, with a new connection wrapped in a DefaultConnectionProvider.
      Parameters:
      newConnection - The new connection to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • derive

      public Configuration derive(DataSource newDataSource)
      Description copied from interface: Configuration
      Create a derived configuration from this one, with a new data source wrapped in a DataSourceConnectionProvider.
      Parameters:
      newDataSource - The new data source to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • derive

      public Configuration derive(io.r2dbc.spi.ConnectionFactory newConnectionFactory)
      Description copied from interface: Configuration
      Create a derived configuration from this one, with a new R2DBC connection factory.
      Parameters:
      newConnectionFactory - The new connection factory to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • derive

      public 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 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 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 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 a DefaultExecutorProvider for convenience.

      Parameters:
      newExecutor - The new executor to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • derive

      public 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 Configuration derive(CacheProvider newCacheProvider)
      Description copied from interface: Configuration
      Create a derived configuration from this one, with a new cache provider.
      Parameters:
      newCacheProvider - The new cache provider to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • derive

      public 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 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 a DefaultRecordMapperProvider for convenience.

      Parameters:
      newRecordMapper - The new record mapper to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • derive

      public 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 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 a DefaultRecordUnmapperProvider for convenience.

      Parameters:
      newRecordUnmapper - The new record unmapper to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • derive

      public 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 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 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 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 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 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 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

      @Pro public 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 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 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 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 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

      public Configuration derive(FormattingProvider newFormattingProvider)
      Description copied from interface: Configuration
      Create a derived configuration from this one, with new formatting provider.
      Parameters:
      newFormattingProvider - The new formatting provider to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • derive

      public 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 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.
    • deriveSettings

      public Configuration deriveSettings(Function<? super Settings,? extends Settings> newSettings)
      Description copied from interface: Configuration
      Create a derived configuration from this one, with new settings constructed from a clone of the current settings.
      Parameters:
      newSettings - A function producing the new settings to be contained in the derived configuration based on a clone of the current settings.
      Returns:
      The derived configuration.