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
 void close(Connection connection)
          Close the given connection, which was wrapped by the ConnectionWrapperFactory.
 void commit(Connection connection)
          Commits the underlying transaction
 

Method Detail

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


Copyright © 2010-2016. All Rights Reserved.