- All Implemented Interfaces:
Serializable
,Configuration
- Direct Known Subclasses:
DefaultConfiguration
,MockConfiguration
Configuration
classes, implementing the
usual convenience API.- Author:
- Lukas Eder
- See Also:
-
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.final Configuration
derive
(DiagnosticsListener... newDiagnosticsListeners) Create a derived configuration from this one, with new diagnostics listeners.final Configuration
derive
(ExecuteListener... newExecuteListeners) Create a derived configuration from this one, with new execute listeners.final Configuration
derive
(MigrationListener... newMigrationListeners) Create a derived configuration from this one, with new migration listeners.final Configuration
derive
(ParseListener... newParseListeners) Create a derived configuration from this one, with new parse listeners.final Configuration
derive
(RecordListener... newRecordListeners) Create a derived configuration from this one, with new record listeners.final Configuration
derive
(TransactionListener... newTransactionListeners) Create a derived configuration from this one, with new transaction listeners.final Configuration
derive
(VisitListener... newVisitListeners) Create a derived configuration from this one, with new visit listeners.final Configuration
deriveAppending
(DiagnosticsListener... newDiagnosticsListeners) Create a derived configuration from this one, with appended diagnostics listeners.final Configuration
deriveAppending
(DiagnosticsListenerProvider... newDiagnosticsListenerProviders) Create a derived configuration from this one, with appended diagnostics listener providers.final Configuration
deriveAppending
(ExecuteListener... newExecuteListeners) Create a derived configuration from this one, with appended execute listeners.final Configuration
deriveAppending
(ExecuteListenerProvider... newExecuteListenerProviders) Create a derived configuration from this one, with appended execute listener providers.final Configuration
deriveAppending
(MigrationListener... newMigrationListeners) Create a derived configuration from this one, with appended migration listeners.final Configuration
deriveAppending
(MigrationListenerProvider... newMigrationListenerProviders) Create a derived configuration from this one, with appended migration listener providers.final Configuration
deriveAppending
(ParseListener... newParseListeners) Create a derived configuration from this one, with appended parse listeners.final Configuration
deriveAppending
(ParseListenerProvider... newParseListenerProviders) Create a derived configuration from this one, with appended parse listener providers.final Configuration
deriveAppending
(PolicyProvider... newPolicyProviders) Create a derived configuration from this one, with appended policy providers.final Configuration
deriveAppending
(RecordListener... newRecordListeners) Create a derived configuration from this one, with appended record listeners.final Configuration
deriveAppending
(RecordListenerProvider... newRecordListenerProviders) Create a derived configuration from this one, with appended record listener providers.final Configuration
deriveAppending
(TransactionListener... newTransactionListeners) Create a derived configuration from this one, with appended transaction listeners.final Configuration
deriveAppending
(TransactionListenerProvider... newTransactionListenerProviders) Create a derived configuration from this one, with appended transaction listener providers.final Configuration
deriveAppending
(VisitListener... newVisitListeners) Create a derived configuration from this one, with appended visit listeners.final Configuration
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.final Configuration
set
(DiagnosticsListener... newDiagnosticsListeners) Change this configuration to hold new diagnostics listeners.final Configuration
set
(ExecuteListener... newExecuteListeners) Change this configuration to hold new execute listeners.final Configuration
set
(MigrationListener... newMigrationListeners) Change this configuration to hold new migration listeners.final Configuration
set
(ParseListener... newParseListeners) Change this configuration to hold new parse listeners.final Configuration
set
(RecordListener... newRecordListeners) Change this configuration to hold new record listeners.final Configuration
set
(TransactionListener... newTransactionListeners) Change this configuration to hold new transaction listeners.final Configuration
set
(VisitListener... newVisitListeners) Change this configuration to hold a new visit listeners.final Configuration
setAppending
(DiagnosticsListener... newDiagnosticsListeners) Change this configuration by appending new diagnostics listeners.final Configuration
setAppending
(DiagnosticsListenerProvider... newDiagnosticsListenerProviders) Change this configuration by appending new diagnostics listener providers.final Configuration
setAppending
(ExecuteListener... newExecuteListeners) Change this configuration by appending new execute listeners.final Configuration
setAppending
(ExecuteListenerProvider... newExecuteListenerProviders) Change this configuration by appending new execute listener providers.final Configuration
setAppending
(MigrationListener... newMigrationListeners) Change this configuration by appending new migration listeners.final Configuration
setAppending
(MigrationListenerProvider... newMigrationListenerProviders) Change this configuration to hold by appending new migration listener providers.final Configuration
setAppending
(ParseListener... newParseListeners) Change this configuration by appending new parse listeners.final Configuration
setAppending
(ParseListenerProvider... newParseListenerProviders) Change this configuration by appending new parse listener providers.final Configuration
setAppending
(RecordListener... newRecordListeners) Change this configuration by appending new record listeners.final Configuration
setAppending
(RecordListenerProvider... newRecordListenerProviders) Change this configuration by appending new record listener providers.final Configuration
setAppending
(TransactionListener... newTransactionListeners) Change this configuration by appending new transaction listeners.final Configuration
setAppending
(TransactionListenerProvider... newTransactionListenerProviders) Change this configuration by appending new transaction listener providers.final Configuration
setAppending
(VisitListener... newVisitListeners) Change this configuration to hold new visit listeners.final Configuration
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
annotatedPojoMemberProvider, auditProvider, cacheProvider, charsetProvider, clock, commercial, commitProvider, connectionFactory, connectionProvider, constructorPropertiesProvider, 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, derive, derive, derive, derive, derive, derive, deriveSettings, diagnosticsListenerProviders, dialect, dsl, executeListenerProviders, executorProvider, family, formattingProvider, interpreterConnectionProvider, metaProvider, migrationListenerProviders, parseListenerProviders, policyProviders, 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, set, set, set, set, set, set, settings, systemConnectionProvider, transactionListenerProviders, transactionProvider, transformProvider, 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
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
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.
-
deriveAppending
Description copied from interface:Configuration
Create a derived configuration from this one, with appended policy providers.- Specified by:
deriveAppending
in interfaceConfiguration
- Parameters:
newPolicyProviders
- The appended policy 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
-