- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancommercial(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.booleanrequireCommercial(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, waitMethods 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:ConfigurationChange this configuration to hold new record listeners.This will wrap the argument
RecordListenerin aDefaultRecordListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Specified by:
setin interfaceConfiguration- Parameters:
newRecordListeners- The new record listener to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Description copied from interface:ConfigurationChange this configuration by appending new record listeners.This will wrap the argument
RecordListenerin aDefaultRecordListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Specified by:
setAppendingin interfaceConfiguration- Parameters:
newRecordListeners- The appended record listener to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Description copied from interface:ConfigurationChange this configuration by appending new record listener providers.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Specified by:
setAppendingin interfaceConfiguration- Parameters:
newRecordListenerProviders- The appended record listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:ConfigurationChange this configuration to hold new execute listeners.This will wrap the argument
ExecuteListenerin aDefaultExecuteListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Specified by:
setin interfaceConfiguration- Parameters:
newExecuteListeners- The new execute listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Description copied from interface:ConfigurationChange this configuration by appending new execute listeners.This will wrap the argument
ExecuteListenerin aDefaultExecuteListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Specified by:
setAppendingin interfaceConfiguration- Parameters:
newExecuteListeners- The appended execute listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Description copied from interface:ConfigurationChange this configuration by appending new execute listener providers.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Specified by:
setAppendingin interfaceConfiguration- Parameters:
newExecuteListenerProviders- The appended execute listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:ConfigurationChange this configuration to hold new migration listeners.This will wrap the argument
MigrationListenerin aDefaultMigrationListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Specified by:
setin interfaceConfiguration- Parameters:
newMigrationListeners- The new migration listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Description copied from interface:ConfigurationChange this configuration by appending new migration listeners.This will wrap the argument
MigrationListenerin aDefaultMigrationListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Specified by:
setAppendingin 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:ConfigurationChange this configuration to hold by appending new migration listener providers.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Specified by:
setAppendingin interfaceConfiguration- Parameters:
newMigrationListenerProviders- The appended migration listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:ConfigurationChange this configuration to hold a new visit listeners.This will wrap the argument
VisitListenerin aDefaultVisitListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Specified by:
setin interfaceConfiguration- Parameters:
newVisitListeners- The new visit listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Description copied from interface:ConfigurationChange this configuration to hold new visit listeners.This will wrap the argument
VisitListenerin aDefaultVisitListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Specified by:
setAppendingin interfaceConfiguration- Parameters:
newVisitListeners- The new visit listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Description copied from interface:ConfigurationChange this configuration by appending new visit listener providers.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Specified by:
setAppendingin interfaceConfiguration- Parameters:
newVisitListenerProviders- The appended visit listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:ConfigurationChange this configuration to hold new transaction listeners.This will wrap the argument
TransactionListenerin aDefaultTransactionListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Specified by:
setin interfaceConfiguration- Parameters:
newTransactionListeners- The new transaction listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Description copied from interface:ConfigurationChange this configuration by appending new transaction listeners.This will wrap the argument
TransactionListenerin aDefaultTransactionListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Specified by:
setAppendingin 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:ConfigurationChange this configuration by appending new transaction listener providers.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Specified by:
setAppendingin interfaceConfiguration- Parameters:
newTransactionListenerProviders- The appended transaction listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:ConfigurationChange this configuration to hold new diagnostics listeners.This will wrap the argument
DiagnosticsListenerin aDefaultDiagnosticsListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Specified by:
setin interfaceConfiguration- Parameters:
newDiagnosticsListeners- The new diagnostics listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Description copied from interface:ConfigurationChange this configuration by appending new diagnostics listeners.This will wrap the argument
DiagnosticsListenerin aDefaultDiagnosticsListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Specified by:
setAppendingin 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:ConfigurationChange this configuration by appending new diagnostics listener providers.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Specified by:
setAppendingin interfaceConfiguration- Parameters:
newDiagnosticsListenerProviders- The new diagnostics listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
set
Description copied from interface:ConfigurationChange this configuration to hold new parse listeners.This will wrap the argument
ParseListenerin aDefaultParseListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Specified by:
setin interfaceConfiguration- Parameters:
newParseListeners- The new parse listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Description copied from interface:ConfigurationChange this configuration by appending new parse listeners.This will wrap the argument
ParseListenerin aDefaultParseListenerProviderfor convenience.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Specified by:
setAppendingin interfaceConfiguration- Parameters:
newParseListeners- The appended parse listeners to be contained in the changed configuration.- Returns:
- The changed configuration.
-
setAppending
Description copied from interface:ConfigurationChange this configuration by appending new parse listener providers.This method is not thread-safe and should not be used in globally available
Configurationobjects.- Specified by:
setAppendingin interfaceConfiguration- Parameters:
newParseListenerProviders- The appended parse listener providers to be contained in the changed configuration.- Returns:
- The changed configuration.
-
derive
Description copied from interface:ConfigurationCreate a derived configuration from this one, with new record listeners.This will wrap the argument
RecordListenerin aDefaultRecordListenerProviderfor convenience.- Specified by:
derivein interfaceConfiguration- Parameters:
newRecordListeners- The new record listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Description copied from interface:ConfigurationCreate a derived configuration from this one, with appended record listeners.This will wrap the argument
RecordListenerin aDefaultRecordListenerProviderfor convenience.- Specified by:
deriveAppendingin interfaceConfiguration- Parameters:
newRecordListeners- The appended record listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Description copied from interface:ConfigurationCreate a derived configuration from this one, with appended record listener providers.- Specified by:
deriveAppendingin interfaceConfiguration- Parameters:
newRecordListenerProviders- The appended record listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Description copied from interface:ConfigurationCreate a derived configuration from this one, with new execute listeners.This will wrap the argument
ExecuteListenerin aDefaultExecuteListenerProviderfor convenience.- Specified by:
derivein interfaceConfiguration- Parameters:
newExecuteListeners- The new execute listener to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Description copied from interface:ConfigurationCreate a derived configuration from this one, with appended execute listeners.This will wrap the argument
ExecuteListenerin aDefaultExecuteListenerProviderfor convenience.- Specified by:
deriveAppendingin interfaceConfiguration- Parameters:
newExecuteListeners- The appended execute listener to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Description copied from interface:ConfigurationCreate a derived configuration from this one, with appended execute listener providers.- Specified by:
deriveAppendingin interfaceConfiguration- Parameters:
newExecuteListenerProviders- The appended execute listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Description copied from interface:ConfigurationCreate a derived configuration from this one, with new migration listeners.This will wrap the argument
MigrationListenerin aDefaultMigrationListenerProviderfor convenience.- Specified by:
derivein interfaceConfiguration- Parameters:
newMigrationListeners- The new migration listener to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Description copied from interface:ConfigurationCreate a derived configuration from this one, with appended migration listeners.This will wrap the argument
MigrationListenerin aDefaultMigrationListenerProviderfor convenience.- Specified by:
deriveAppendingin 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:ConfigurationCreate a derived configuration from this one, with appended migration listener providers.- Specified by:
deriveAppendingin interfaceConfiguration- Parameters:
newMigrationListenerProviders- The appended migration listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Description copied from interface:ConfigurationCreate a derived configuration from this one, with new visit listeners.This will wrap the argument
VisitListenerin aDefaultVisitListenerProviderfor convenience.- Specified by:
derivein interfaceConfiguration- Parameters:
newVisitListeners- The new visit listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Description copied from interface:ConfigurationCreate a derived configuration from this one, with appended visit listeners.This will wrap the argument
VisitListenerin aDefaultVisitListenerProviderfor convenience.- Specified by:
deriveAppendingin interfaceConfiguration- Parameters:
newVisitListeners- The appended visit listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Description copied from interface:ConfigurationCreate a derived configuration from this one, with appended visit listener providers.- Specified by:
deriveAppendingin interfaceConfiguration- Parameters:
newVisitListenerProviders- The appended visit listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Description copied from interface:ConfigurationCreate a derived configuration from this one, with new transaction listeners.This will wrap the argument
TransactionListenerin aDefaultTransactionListenerProviderfor convenience.- Specified by:
derivein interfaceConfiguration- Parameters:
newTransactionListeners- The new transaction listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Description copied from interface:ConfigurationCreate a derived configuration from this one, with appended transaction listeners.This will wrap the argument
TransactionListenerin aDefaultTransactionListenerProviderfor convenience.- Specified by:
deriveAppendingin 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:ConfigurationCreate a derived configuration from this one, with appended transaction listener providers.- Specified by:
deriveAppendingin interfaceConfiguration- Parameters:
newTransactionListenerProviders- The appended transaction listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Description copied from interface:ConfigurationCreate a derived configuration from this one, with new diagnostics listeners.- Specified by:
derivein interfaceConfiguration- Parameters:
newDiagnosticsListeners- The new diagnostics listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Description copied from interface:ConfigurationCreate a derived configuration from this one, with appended diagnostics listeners.- Specified by:
deriveAppendingin 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:ConfigurationCreate a derived configuration from this one, with appended diagnostics listener providers.- Specified by:
deriveAppendingin interfaceConfiguration- Parameters:
newDiagnosticsListenerProviders- The appended diagnostics listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
derive
Description copied from interface:ConfigurationCreate a derived configuration from this one, with new parse listeners.- Specified by:
derivein interfaceConfiguration- Parameters:
newParseListeners- The new parse listeners to be contained in the derived configuration.- Returns:
- The derived configuration.
-
deriveAppending
Description copied from interface:ConfigurationCreate a derived configuration from this one, with appended parse listeners.- Specified by:
deriveAppendingin 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:ConfigurationCreate a derived configuration from this one, with appended parse listener providers.- Specified by:
deriveAppendingin interfaceConfiguration- Parameters:
newParseListenerProviders- The appended parse listener providers to be contained in the derived configuration.- Returns:
- The derived configuration.
-
commercial
Description copied from interface:ConfigurationWhether this is a commercial edition of jOOQ, logging a warning message, if not.- Specified by:
commercialin interfaceConfiguration
-
requireCommercial
Description copied from interface:ConfigurationWhether this is a commercial edition of jOOQ, throwing an exception with a message, if not.- Specified by:
requireCommercialin interfaceConfiguration- Throws:
DataAccessException
-