Module org.jooq
Package org.jooq.impl

Class AbstractConfiguration

java.lang.Object
org.jooq.impl.AbstractConfiguration
All Implemented Interfaces:
Serializable, Configuration
Direct Known Subclasses:
DefaultConfiguration, MockConfiguration

public abstract class AbstractConfiguration extends Object implements Configuration
A base implementation for Configuration classes, implementing the usual convenience API.
Author:
Lukas Eder
See Also:
  • Constructor Details

    • AbstractConfiguration

      public AbstractConfiguration()
  • Method Details

    • set

      public final Configuration set(RecordListener... newRecordListeners)
      Description copied from interface: Configuration
      Change this configuration to hold new record listeners.

      This will wrap the argument RecordListener in a DefaultRecordListenerProvider for convenience.

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

      Specified by:
      set in interface Configuration
      Parameters:
      newRecordListeners - The new record listener to be contained in the changed configuration.
      Returns:
      The changed configuration.
    • setAppending

      public final Configuration setAppending(RecordListener... newRecordListeners)
      Description copied from interface: Configuration
      Change this configuration by appending new record listeners.

      This will wrap the argument RecordListener in a DefaultRecordListenerProvider for convenience.

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

      Specified by:
      setAppending in interface Configuration
      Parameters:
      newRecordListeners - The appended record listener to be contained in the changed configuration.
      Returns:
      The changed configuration.
    • setAppending

      public final Configuration setAppending(RecordListenerProvider... newRecordListenerProviders)
      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 interface Configuration
      Parameters:
      newRecordListenerProviders - The appended record listener providers to be contained in the changed configuration.
      Returns:
      The changed configuration.
    • set

      public final Configuration set(ExecuteListener... newExecuteListeners)
      Description copied from interface: Configuration
      Change this configuration to hold new execute listeners.

      This will wrap the argument ExecuteListener in a DefaultExecuteListenerProvider for convenience.

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

      Specified by:
      set in interface Configuration
      Parameters:
      newExecuteListeners - The new execute listeners to be contained in the changed configuration.
      Returns:
      The changed configuration.
    • setAppending

      public final Configuration setAppending(ExecuteListener... newExecuteListeners)
      Description copied from interface: Configuration
      Change this configuration by appending new execute listeners.

      This will wrap the argument ExecuteListener in a DefaultExecuteListenerProvider for convenience.

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

      Specified by:
      setAppending in interface Configuration
      Parameters:
      newExecuteListeners - The appended execute listeners to be contained in the changed configuration.
      Returns:
      The changed configuration.
    • setAppending

      public final Configuration setAppending(ExecuteListenerProvider... newExecuteListenerProviders)
      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 interface Configuration
      Parameters:
      newExecuteListenerProviders - The appended execute listener providers to be contained in the changed configuration.
      Returns:
      The changed configuration.
    • set

      public final Configuration set(MigrationListener... newMigrationListeners)
      Description copied from interface: Configuration
      Change this configuration to hold new migration listeners.

      This will wrap the argument MigrationListener in a DefaultMigrationListenerProvider for convenience.

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

      Specified by:
      set in interface Configuration
      Parameters:
      newMigrationListeners - The new migration listeners to be contained in the changed configuration.
      Returns:
      The changed configuration.
    • setAppending

      public final Configuration setAppending(MigrationListener... newMigrationListeners)
      Description copied from interface: Configuration
      Change this configuration by appending new migration listeners.

      This will wrap the argument MigrationListener in a DefaultMigrationListenerProvider for convenience.

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

      Specified by:
      setAppending in interface Configuration
      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 interface Configuration
      Parameters:
      newMigrationListenerProviders - The appended migration listener providers to be contained in the changed configuration.
      Returns:
      The changed configuration.
    • set

      public final Configuration set(VisitListener... newVisitListeners)
      Description copied from interface: Configuration
      Change this configuration to hold a new visit listeners.

      This will wrap the argument VisitListener in a DefaultVisitListenerProvider for convenience.

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

      Specified by:
      set in interface Configuration
      Parameters:
      newVisitListeners - The new visit listeners to be contained in the changed configuration.
      Returns:
      The changed configuration.
    • setAppending

      public final Configuration setAppending(VisitListener... newVisitListeners)
      Description copied from interface: Configuration
      Change this configuration to hold new visit listeners.

      This will wrap the argument VisitListener in a DefaultVisitListenerProvider for convenience.

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

      Specified by:
      setAppending in interface Configuration
      Parameters:
      newVisitListeners - The new visit listeners to be contained in the changed configuration.
      Returns:
      The changed configuration.
    • setAppending

      public final Configuration setAppending(VisitListenerProvider... newVisitListenerProviders)
      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 interface Configuration
      Parameters:
      newVisitListenerProviders - The appended visit listener providers to be contained in the changed configuration.
      Returns:
      The changed configuration.
    • set

      public final Configuration set(TransactionListener... newTransactionListeners)
      Description copied from interface: Configuration
      Change this configuration to hold new transaction listeners.

      This will wrap the argument TransactionListener in a DefaultTransactionListenerProvider for convenience.

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

      Specified by:
      set in interface Configuration
      Parameters:
      newTransactionListeners - The new transaction listeners to be contained in the changed configuration.
      Returns:
      The changed configuration.
    • setAppending

      public final Configuration setAppending(TransactionListener... newTransactionListeners)
      Description copied from interface: Configuration
      Change this configuration by appending new transaction listeners.

      This will wrap the argument TransactionListener in a DefaultTransactionListenerProvider for convenience.

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

      Specified by:
      setAppending in interface Configuration
      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 interface Configuration
      Parameters:
      newTransactionListenerProviders - The appended transaction listener providers to be contained in the changed configuration.
      Returns:
      The changed configuration.
    • set

      public final Configuration set(DiagnosticsListener... newDiagnosticsListeners)
      Description copied from interface: Configuration
      Change this configuration to hold new diagnostics listeners.

      This will wrap the argument DiagnosticsListener in a DefaultDiagnosticsListenerProvider for convenience.

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

      Specified by:
      set in interface Configuration
      Parameters:
      newDiagnosticsListeners - The new diagnostics listeners to be contained in the changed configuration.
      Returns:
      The changed configuration.
    • setAppending

      public final Configuration setAppending(DiagnosticsListener... newDiagnosticsListeners)
      Description copied from interface: Configuration
      Change this configuration by appending new diagnostics listeners.

      This will wrap the argument DiagnosticsListener in a DefaultDiagnosticsListenerProvider for convenience.

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

      Specified by:
      setAppending in interface Configuration
      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 interface Configuration
      Parameters:
      newDiagnosticsListenerProviders - The new diagnostics listener providers to be contained in the changed configuration.
      Returns:
      The changed configuration.
    • set

      @Pro public final Configuration set(ParseListener... newParseListeners)
      Description copied from interface: Configuration
      Change this configuration to hold new parse listeners.

      This will wrap the argument ParseListener in a DefaultParseListenerProvider for convenience.

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

      Specified by:
      set in interface Configuration
      Parameters:
      newParseListeners - The new parse listeners to be contained in the changed configuration.
      Returns:
      The changed configuration.
    • setAppending

      @Pro public final Configuration setAppending(ParseListener... newParseListeners)
      Description copied from interface: Configuration
      Change this configuration by appending new parse listeners.

      This will wrap the argument ParseListener in a DefaultParseListenerProvider for convenience.

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

      Specified by:
      setAppending in interface Configuration
      Parameters:
      newParseListeners - The appended parse listeners to be contained in the changed configuration.
      Returns:
      The changed configuration.
    • setAppending

      @Pro public final Configuration setAppending(ParseListenerProvider... newParseListenerProviders)
      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 interface Configuration
      Parameters:
      newParseListenerProviders - The appended parse listener providers to be contained in the changed configuration.
      Returns:
      The changed configuration.
    • derive

      public final Configuration derive(RecordListener... newRecordListeners)
      Description copied from interface: Configuration
      Create a derived configuration from this one, with new record listeners.

      This will wrap the argument RecordListener in a DefaultRecordListenerProvider for convenience.

      Specified by:
      derive in interface Configuration
      Parameters:
      newRecordListeners - The new record listeners to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • deriveAppending

      public final Configuration deriveAppending(RecordListener... newRecordListeners)
      Description copied from interface: Configuration
      Create a derived configuration from this one, with appended record listeners.

      This will wrap the argument RecordListener in a DefaultRecordListenerProvider for convenience.

      Specified by:
      deriveAppending in interface Configuration
      Parameters:
      newRecordListeners - The appended record listeners to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • deriveAppending

      public final Configuration deriveAppending(RecordListenerProvider... newRecordListenerProviders)
      Description copied from interface: Configuration
      Create a derived configuration from this one, with appended record listener providers.
      Specified by:
      deriveAppending in interface Configuration
      Parameters:
      newRecordListenerProviders - The appended record listener providers to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • derive

      public final Configuration derive(ExecuteListener... newExecuteListeners)
      Description copied from interface: Configuration
      Create a derived configuration from this one, with new execute listeners.

      This will wrap the argument ExecuteListener in a DefaultExecuteListenerProvider for convenience.

      Specified by:
      derive in interface Configuration
      Parameters:
      newExecuteListeners - The new execute listener to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • deriveAppending

      public final Configuration deriveAppending(ExecuteListener... newExecuteListeners)
      Description copied from interface: Configuration
      Create a derived configuration from this one, with appended execute listeners.

      This will wrap the argument ExecuteListener in a DefaultExecuteListenerProvider for convenience.

      Specified by:
      deriveAppending in interface Configuration
      Parameters:
      newExecuteListeners - The appended execute listener to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • deriveAppending

      public final Configuration deriveAppending(ExecuteListenerProvider... newExecuteListenerProviders)
      Description copied from interface: Configuration
      Create a derived configuration from this one, with appended execute listener providers.
      Specified by:
      deriveAppending in interface Configuration
      Parameters:
      newExecuteListenerProviders - The appended execute listener providers to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • derive

      public final Configuration derive(MigrationListener... newMigrationListeners)
      Description copied from interface: Configuration
      Create a derived configuration from this one, with new migration listeners.

      This will wrap the argument MigrationListener in a DefaultMigrationListenerProvider for convenience.

      Specified by:
      derive in interface Configuration
      Parameters:
      newMigrationListeners - The new migration listener to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • deriveAppending

      public final Configuration deriveAppending(MigrationListener... newMigrationListeners)
      Description copied from interface: Configuration
      Create a derived configuration from this one, with appended migration listeners.

      This will wrap the argument MigrationListener in a DefaultMigrationListenerProvider for convenience.

      Specified by:
      deriveAppending in interface Configuration
      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 interface Configuration
      Parameters:
      newMigrationListenerProviders - The appended migration listener providers to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • derive

      public final Configuration derive(VisitListener... newVisitListeners)
      Description copied from interface: Configuration
      Create a derived configuration from this one, with new visit listeners.

      This will wrap the argument VisitListener in a DefaultVisitListenerProvider for convenience.

      Specified by:
      derive in interface Configuration
      Parameters:
      newVisitListeners - The new visit listeners to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • deriveAppending

      public final Configuration deriveAppending(VisitListener... newVisitListeners)
      Description copied from interface: Configuration
      Create a derived configuration from this one, with appended visit listeners.

      This will wrap the argument VisitListener in a DefaultVisitListenerProvider for convenience.

      Specified by:
      deriveAppending in interface Configuration
      Parameters:
      newVisitListeners - The appended visit listeners to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • deriveAppending

      public final Configuration deriveAppending(VisitListenerProvider... newVisitListenerProviders)
      Description copied from interface: Configuration
      Create a derived configuration from this one, with appended visit listener providers.
      Specified by:
      deriveAppending in interface Configuration
      Parameters:
      newVisitListenerProviders - The appended visit listener providers to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • derive

      public final Configuration derive(TransactionListener... newTransactionListeners)
      Description copied from interface: Configuration
      Create a derived configuration from this one, with new transaction listeners.

      This will wrap the argument TransactionListener in a DefaultTransactionListenerProvider for convenience.

      Specified by:
      derive in interface Configuration
      Parameters:
      newTransactionListeners - The new transaction listeners to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • deriveAppending

      public final Configuration deriveAppending(TransactionListener... newTransactionListeners)
      Description copied from interface: Configuration
      Create a derived configuration from this one, with appended transaction listeners.

      This will wrap the argument TransactionListener in a DefaultTransactionListenerProvider for convenience.

      Specified by:
      deriveAppending in interface Configuration
      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 interface Configuration
      Parameters:
      newTransactionListenerProviders - The appended transaction listener providers to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • derive

      public final Configuration derive(DiagnosticsListener... newDiagnosticsListeners)
      Description copied from interface: Configuration
      Create a derived configuration from this one, with new diagnostics listeners.
      Specified by:
      derive in interface Configuration
      Parameters:
      newDiagnosticsListeners - The new diagnostics listeners to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • deriveAppending

      public final Configuration deriveAppending(DiagnosticsListener... newDiagnosticsListeners)
      Description copied from interface: Configuration
      Create a derived configuration from this one, with appended diagnostics listeners.
      Specified by:
      deriveAppending in interface Configuration
      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 interface Configuration
      Parameters:
      newDiagnosticsListenerProviders - The appended diagnostics listener providers to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • derive

      @Pro public final Configuration derive(ParseListener... newParseListeners)
      Description copied from interface: Configuration
      Create a derived configuration from this one, with new parse listeners.
      Specified by:
      derive in interface Configuration
      Parameters:
      newParseListeners - The new parse listeners to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • deriveAppending

      @Pro public final Configuration deriveAppending(ParseListener... newParseListeners)
      Description copied from interface: Configuration
      Create a derived configuration from this one, with appended parse listeners.
      Specified by:
      deriveAppending in interface Configuration
      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 interface Configuration
      Parameters:
      newParseListenerProviders - The appended parse listener providers to be contained in the derived configuration.
      Returns:
      The derived configuration.
    • commercial

      public boolean commercial(Supplier<String> logMessage)
      Description copied from interface: Configuration
      Whether this is a commercial edition of jOOQ, logging a warning message, if not.
      Specified by:
      commercial in interface Configuration
    • requireCommercial

      public boolean requireCommercial(Supplier<String> logMessage) throws DataAccessException
      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 interface Configuration
      Throws:
      DataAccessException