- All Implemented Interfaces:
Serializable
,Configuration
- Direct Known Subclasses:
DefaultConfiguration
,MockConfiguration
Configuration
classes, implementing the
usual convenience API.- Author:
- Lukas Eder
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
commercial(Supplier<String> logMessage)
Whether this is a commercial edition of jOOQ, logging a warning message, if not.derive(DiagnosticsListener... newDiagnosticsListeners)
Create a derived configuration from this one, with new diagnostics listeners.derive(ExecuteListener... newExecuteListeners)
Create a derived configuration from this one, with new execute listeners.derive(MigrationListener... newMigrationListeners)
Create a derived configuration from this one, with new migration listeners.derive(ParseListener... newParseListeners)
Create a derived configuration from this one, with new parse listeners.derive(RecordListener... newRecordListeners)
Create a derived configuration from this one, with new record listeners.derive(TransactionListener... newTransactionListeners)
Create a derived configuration from this one, with new transaction listeners.derive(VisitListener... newVisitListeners)
Create a derived configuration from this one, with new visit listeners.deriveAppending(DiagnosticsListener... newDiagnosticsListeners)
Create a derived configuration from this one, with appended diagnostics listeners.deriveAppending(DiagnosticsListenerProvider... newDiagnosticsListenerProviders)
Create a derived configuration from this one, with appended diagnostics listener providers.deriveAppending(ExecuteListener... newExecuteListeners)
Create a derived configuration from this one, with appended execute listeners.deriveAppending(ExecuteListenerProvider... newExecuteListenerProviders)
Create a derived configuration from this one, with appended execute listener providers.deriveAppending(MigrationListener... newMigrationListeners)
Create a derived configuration from this one, with appended migration listeners.deriveAppending(MigrationListenerProvider... newMigrationListenerProviders)
Create a derived configuration from this one, with appended migration listener providers.deriveAppending(ParseListener... newParseListeners)
Create a derived configuration from this one, with appended parse listeners.deriveAppending(ParseListenerProvider... newParseListenerProviders)
Create a derived configuration from this one, with appended parse listener providers.deriveAppending(RecordListener... newRecordListeners)
Create a derived configuration from this one, with appended record listeners.deriveAppending(RecordListenerProvider... newRecordListenerProviders)
Create a derived configuration from this one, with appended record listener providers.deriveAppending(TransactionListener... newTransactionListeners)
Create a derived configuration from this one, with appended transaction listeners.deriveAppending(TransactionListenerProvider... newTransactionListenerProviders)
Create a derived configuration from this one, with appended transaction listener providers.deriveAppending(VisitListener... newVisitListeners)
Create a derived configuration from this one, with appended visit listeners.deriveAppending(VisitListenerProvider... newVisitListenerProviders)
Create a derived configuration from this one, with appended visit listener providers.boolean
requireCommercial(Supplier<String> logMessage)
Whether this is a commercial edition of jOOQ, throwing an exception with a message, if not.set(DiagnosticsListener... newDiagnosticsListeners)
Change this configuration to hold new diagnostics listeners.set(ExecuteListener... newExecuteListeners)
Change this configuration to hold new execute listeners.set(MigrationListener... newMigrationListeners)
Change this configuration to hold new migration listeners.set(ParseListener... newParseListeners)
Change this configuration to hold new parse listeners.set(RecordListener... newRecordListeners)
Change this configuration to hold new record listeners.set(TransactionListener... newTransactionListeners)
Change this configuration to hold new transaction listeners.set(VisitListener... newVisitListeners)
Change this configuration to hold a new visit listeners.setAppending(DiagnosticsListener... newDiagnosticsListeners)
Change this configuration by appending new diagnostics listeners.setAppending(DiagnosticsListenerProvider... newDiagnosticsListenerProviders)
Change this configuration by appending new diagnostics listener providers.setAppending(ExecuteListener... newExecuteListeners)
Change this configuration by appending new execute listeners.setAppending(ExecuteListenerProvider... newExecuteListenerProviders)
Change this configuration by appending new execute listener providers.setAppending(MigrationListener... newMigrationListeners)
Change this configuration by appending new migration listeners.setAppending(MigrationListenerProvider... newMigrationListenerProviders)
Change this configuration to hold by appending new migration listener providers.setAppending(ParseListener... newParseListeners)
Change this configuration by appending new parse listeners.setAppending(ParseListenerProvider... newParseListenerProviders)
Change this configuration by appending new parse listener providers.setAppending(RecordListener... newRecordListeners)
Change this configuration by appending new record listeners.setAppending(RecordListenerProvider... newRecordListenerProviders)
Change this configuration by appending new record listener providers.setAppending(TransactionListener... newTransactionListeners)
Change this configuration by appending new transaction listeners.setAppending(TransactionListenerProvider... newTransactionListenerProviders)
Change this configuration by appending new transaction listener providers.setAppending(VisitListener... newVisitListeners)
Change this configuration to hold new visit listeners.setAppending(VisitListenerProvider... newVisitListenerProviders)
Change this configuration by appending new visit listener providers.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jooq.Configuration
cacheProvider, charsetProvider, clock, commercial, commitProvider, connectionFactory, connectionProvider, converterProvider, data, data, data, derive, derive, derive, derive, derive, derive, derive, derive, derive, derive, derive, derive, derive, derive, derive, derive, derive, derive, derive, derive, derive, derive, derive, derive, derive, derive, derive, derive, derive, deriveSettings, diagnosticsListenerProviders, dialect, dsl, executeListenerProviders, executorProvider, family, interpreterConnectionProvider, metaProvider, migrationListenerProviders, parseListenerProviders, recordListenerProviders, recordMapperProvider, recordUnmapperProvider, schemaMapping, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, settings, systemConnectionProvider, transactionListenerProviders, transactionProvider, unwrapperProvider, visitListenerProviders
-
Constructor Details
-
AbstractConfiguration
public AbstractConfiguration()
-
-
Method Details
-
set
Description copied from interface:Configuration
Change this configuration to hold new record listeners.This will wrap the argument
RecordListener
in aDefaultRecordListenerProvider
for convenience.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Specified by:
set
in interfaceConfiguration
- Parameters:
newRecordListeners
- The new record listener to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Description copied from interface:Configuration
Change this configuration by appending new record listeners.This will wrap the argument
RecordListener
in aDefaultRecordListenerProvider
for convenience.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Specified by:
setAppending
in interfaceConfiguration
- Parameters:
newRecordListeners
- The appended record listener to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Description copied from interface:Configuration
Change this configuration by appending new record listener providers.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Specified by:
setAppending
in interfaceConfiguration
- Parameters:
newRecordListenerProviders
- The appended record listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold new execute listeners.This will wrap the argument
ExecuteListener
in aDefaultExecuteListenerProvider
for convenience.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Specified by:
set
in interfaceConfiguration
- Parameters:
newExecuteListeners
- The new execute listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Description copied from interface:Configuration
Change this configuration by appending new execute listeners.This will wrap the argument
ExecuteListener
in aDefaultExecuteListenerProvider
for convenience.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Specified by:
setAppending
in interfaceConfiguration
- Parameters:
newExecuteListeners
- The appended execute listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Description copied from interface:Configuration
Change this configuration by appending new execute listener providers.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Specified by:
setAppending
in interfaceConfiguration
- Parameters:
newExecuteListenerProviders
- The appended execute listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold new migration listeners.This will wrap the argument
MigrationListener
in aDefaultMigrationListenerProvider
for convenience.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Specified by:
set
in interfaceConfiguration
- Parameters:
newMigrationListeners
- The new migration listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Description copied from interface:Configuration
Change this configuration by appending new migration listeners.This will wrap the argument
MigrationListener
in aDefaultMigrationListenerProvider
for convenience.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Specified by:
setAppending
in interfaceConfiguration
- Parameters:
newMigrationListeners
- The appended migration listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
public final Configuration setAppending(MigrationListenerProvider... newMigrationListenerProviders)Description copied from interface:Configuration
Change this configuration to hold by appending new migration listener providers.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Specified by:
setAppending
in interfaceConfiguration
- Parameters:
newMigrationListenerProviders
- The appended migration listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold a new visit listeners.This will wrap the argument
VisitListener
in aDefaultVisitListenerProvider
for convenience.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Specified by:
set
in interfaceConfiguration
- Parameters:
newVisitListeners
- The new visit listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Description copied from interface:Configuration
Change this configuration to hold new visit listeners.This will wrap the argument
VisitListener
in aDefaultVisitListenerProvider
for convenience.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Specified by:
setAppending
in interfaceConfiguration
- Parameters:
newVisitListeners
- The new visit listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Description copied from interface:Configuration
Change this configuration by appending new visit listener providers.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Specified by:
setAppending
in interfaceConfiguration
- Parameters:
newVisitListenerProviders
- The appended visit listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold new transaction listeners.This will wrap the argument
TransactionListener
in aDefaultTransactionListenerProvider
for convenience.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Specified by:
set
in interfaceConfiguration
- Parameters:
newTransactionListeners
- The new transaction listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Description copied from interface:Configuration
Change this configuration by appending new transaction listeners.This will wrap the argument
TransactionListener
in aDefaultTransactionListenerProvider
for convenience.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Specified by:
setAppending
in interfaceConfiguration
- Parameters:
newTransactionListeners
- The appended transaction listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
public final Configuration setAppending(TransactionListenerProvider... newTransactionListenerProviders)Description copied from interface:Configuration
Change this configuration by appending new transaction listener providers.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Specified by:
setAppending
in interfaceConfiguration
- Parameters:
newTransactionListenerProviders
- The appended transaction listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold new diagnostics listeners.This will wrap the argument
DiagnosticsListener
in aDefaultDiagnosticsListenerProvider
for convenience.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Specified by:
set
in interfaceConfiguration
- Parameters:
newDiagnosticsListeners
- The new diagnostics listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Description copied from interface:Configuration
Change this configuration by appending new diagnostics listeners.This will wrap the argument
DiagnosticsListener
in aDefaultDiagnosticsListenerProvider
for convenience.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Specified by:
setAppending
in interfaceConfiguration
- Parameters:
newDiagnosticsListeners
- The new diagnostics listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
public final Configuration setAppending(DiagnosticsListenerProvider... newDiagnosticsListenerProviders)Description copied from interface:Configuration
Change this configuration by appending new diagnostics listener providers.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Specified by:
setAppending
in interfaceConfiguration
- Parameters:
newDiagnosticsListenerProviders
- The new diagnostics listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:Configuration
Change this configuration to hold new parse listeners.This will wrap the argument
ParseListener
in aDefaultParseListenerProvider
for convenience.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Specified by:
set
in interfaceConfiguration
- Parameters:
newParseListeners
- The new parse listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Description copied from interface:Configuration
Change this configuration by appending new parse listeners.This will wrap the argument
ParseListener
in aDefaultParseListenerProvider
for convenience.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Specified by:
setAppending
in interfaceConfiguration
- Parameters:
newParseListeners
- The appended parse listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Description copied from interface:Configuration
Change this configuration by appending new parse listener providers.This method is not thread-safe and should not be used in globally available
Configuration
objects.- Specified by:
setAppending
in interfaceConfiguration
- Parameters:
newParseListenerProviders
- The appended parse listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
derive
Description copied from interface:Configuration
Create a derived configuration from this one, with new record listeners.This will wrap the argument
RecordListener
in aDefaultRecordListenerProvider
for convenience.- Specified by:
derive
in interfaceConfiguration
- Parameters:
newRecordListeners
- The new record listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Description copied from interface:Configuration
Create a derived configuration from this one, with appended record listeners.This will wrap the argument
RecordListener
in aDefaultRecordListenerProvider
for convenience.- Specified by:
deriveAppending
in interfaceConfiguration
- Parameters:
newRecordListeners
- The appended record listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Description copied from interface:Configuration
Create a derived configuration from this one, with appended record listener providers.- Specified by:
deriveAppending
in interfaceConfiguration
- Parameters:
newRecordListenerProviders
- The appended record listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Description copied from interface:Configuration
Create a derived configuration from this one, with new execute listeners.This will wrap the argument
ExecuteListener
in aDefaultExecuteListenerProvider
for convenience.- Specified by:
derive
in interfaceConfiguration
- Parameters:
newExecuteListeners
- The new execute listener to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Description copied from interface:Configuration
Create a derived configuration from this one, with appended execute listeners.This will wrap the argument
ExecuteListener
in aDefaultExecuteListenerProvider
for convenience.- Specified by:
deriveAppending
in interfaceConfiguration
- Parameters:
newExecuteListeners
- The appended execute listener to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Description copied from interface:Configuration
Create a derived configuration from this one, with appended execute listener providers.- Specified by:
deriveAppending
in interfaceConfiguration
- Parameters:
newExecuteListenerProviders
- The appended execute listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Description copied from interface:Configuration
Create a derived configuration from this one, with new migration listeners.This will wrap the argument
MigrationListener
in aDefaultMigrationListenerProvider
for convenience.- Specified by:
derive
in interfaceConfiguration
- Parameters:
newMigrationListeners
- The new migration listener to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Description copied from interface:Configuration
Create a derived configuration from this one, with appended migration listeners.This will wrap the argument
MigrationListener
in aDefaultMigrationListenerProvider
for convenience.- Specified by:
deriveAppending
in interfaceConfiguration
- Parameters:
newMigrationListeners
- The appended migration listener to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
public final Configuration deriveAppending(MigrationListenerProvider... newMigrationListenerProviders)Description copied from interface:Configuration
Create a derived configuration from this one, with appended migration listener providers.- Specified by:
deriveAppending
in interfaceConfiguration
- Parameters:
newMigrationListenerProviders
- The appended migration listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Description copied from interface:Configuration
Create a derived configuration from this one, with new visit listeners.This will wrap the argument
VisitListener
in aDefaultVisitListenerProvider
for convenience.- Specified by:
derive
in interfaceConfiguration
- Parameters:
newVisitListeners
- The new visit listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Description copied from interface:Configuration
Create a derived configuration from this one, with appended visit listeners.This will wrap the argument
VisitListener
in aDefaultVisitListenerProvider
for convenience.- Specified by:
deriveAppending
in interfaceConfiguration
- Parameters:
newVisitListeners
- The appended visit listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Description copied from interface:Configuration
Create a derived configuration from this one, with appended visit listener providers.- Specified by:
deriveAppending
in interfaceConfiguration
- Parameters:
newVisitListenerProviders
- The appended visit listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Description copied from interface:Configuration
Create a derived configuration from this one, with new transaction listeners.This will wrap the argument
TransactionListener
in aDefaultTransactionListenerProvider
for convenience.- Specified by:
derive
in interfaceConfiguration
- Parameters:
newTransactionListeners
- The new transaction listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Description copied from interface:Configuration
Create a derived configuration from this one, with appended transaction listeners.This will wrap the argument
TransactionListener
in aDefaultTransactionListenerProvider
for convenience.- Specified by:
deriveAppending
in interfaceConfiguration
- Parameters:
newTransactionListeners
- The appended transaction listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
public final Configuration deriveAppending(TransactionListenerProvider... newTransactionListenerProviders)Description copied from interface:Configuration
Create a derived configuration from this one, with appended transaction listener providers.- Specified by:
deriveAppending
in interfaceConfiguration
- Parameters:
newTransactionListenerProviders
- The appended transaction listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Description copied from interface:Configuration
Create a derived configuration from this one, with new diagnostics listeners.- Specified by:
derive
in interfaceConfiguration
- Parameters:
newDiagnosticsListeners
- The new diagnostics listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Description copied from interface:Configuration
Create a derived configuration from this one, with appended diagnostics listeners.- Specified by:
deriveAppending
in interfaceConfiguration
- Parameters:
newDiagnosticsListeners
- The appended diagnostics listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
public final Configuration deriveAppending(DiagnosticsListenerProvider... newDiagnosticsListenerProviders)Description copied from interface:Configuration
Create a derived configuration from this one, with appended diagnostics listener providers.- Specified by:
deriveAppending
in interfaceConfiguration
- Parameters:
newDiagnosticsListenerProviders
- The appended diagnostics listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Description copied from interface:Configuration
Create a derived configuration from this one, with new parse listeners.- Specified by:
derive
in interfaceConfiguration
- Parameters:
newParseListeners
- The new parse listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Description copied from interface:Configuration
Create a derived configuration from this one, with appended parse listeners.- Specified by:
deriveAppending
in interfaceConfiguration
- Parameters:
newParseListeners
- The appended parse listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
@Pro public final Configuration deriveAppending(ParseListenerProvider... newParseListenerProviders)Description copied from interface:Configuration
Create a derived configuration from this one, with appended parse listener providers.- Specified by:
deriveAppending
in interfaceConfiguration
- Parameters:
newParseListenerProviders
- The appended parse listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
commercial
Description copied from interface:Configuration
Whether this is a commercial edition of jOOQ, logging a warning message, if not.- Specified by:
commercial
in interfaceConfiguration
-
requireCommercial
Description copied from interface:Configuration
Whether this is a commercial edition of jOOQ, throwing an exception with a message, if not.- Specified by:
requireCommercial
in interfaceConfiguration
- Throws:
DataAccessException
-