Package org.axonframework.common.jdbc
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 TypeMethodDescriptionvoidclose(Connection connection) Close the givenconnection, which was wrapped by the ConnectionWrapperFactory.voidcommit(Connection connection) Commits the underlying transaction
-
Method Details
-
close
Close the givenconnection, which was wrapped by the ConnectionWrapperFactory.- Parameters:
connection- the wrapped connection to close
-
commit
Commits the underlying transaction- Parameters:
connection- the wrapped connection to commit- Throws:
SQLException- when an error occurs while committing the connection
-