Interface ConnectionWrapperFactory.ConnectionCloseHandler

All Known Implementing Classes:
ConnectionWrapperFactory.NoOpCloseHandler
Enclosing class:
ConnectionWrapperFactory

public static interface ConnectionWrapperFactory.ConnectionCloseHandler
Interface defining an operation to close the wrapped connection
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    close(Connection connection)
    Close the given connection, which was wrapped by the ConnectionWrapperFactory.
    void
    commit(Connection connection)
    Commits the underlying transaction
  • Method Details

    • close

      void close(Connection connection)
      Close the given connection, which was wrapped by the ConnectionWrapperFactory.
      Parameters:
      connection - the wrapped connection to close
    • commit

      void commit(Connection connection) throws SQLException
      Commits the underlying transaction
      Parameters:
      connection - the wrapped connection to commit
      Throws:
      SQLException - when an error occurs while committing the connection