org.axonframework.common.jdbc
Class ConnectionWrapperFactory.NoOpCloseHandler

java.lang.Object
  extended by org.axonframework.common.jdbc.ConnectionWrapperFactory.NoOpCloseHandler
All Implemented Interfaces:
ConnectionWrapperFactory.ConnectionCloseHandler
Enclosing class:
ConnectionWrapperFactory

public static class ConnectionWrapperFactory.NoOpCloseHandler
extends Object
implements ConnectionWrapperFactory.ConnectionCloseHandler

Implementation of ConnectionCloseHandler that does nothing on close.


Constructor Summary
ConnectionWrapperFactory.NoOpCloseHandler()
           
 
Method Summary
 void close(Connection connection)
          Close the given connection, which was wrapped by the ConnectionWrapperFactory.
 void commit(Connection connection)
          Commits the underlying transaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionWrapperFactory.NoOpCloseHandler

public ConnectionWrapperFactory.NoOpCloseHandler()
Method Detail

close

public void close(Connection connection)
Description copied from interface: ConnectionWrapperFactory.ConnectionCloseHandler
Close the given connection, which was wrapped by the ConnectionWrapperFactory.

Specified by:
close in interface ConnectionWrapperFactory.ConnectionCloseHandler
Parameters:
connection - the wrapped connection to close

commit

public void commit(Connection connection)
            throws SQLException
Description copied from interface: ConnectionWrapperFactory.ConnectionCloseHandler
Commits the underlying transaction

Specified by:
commit in interface ConnectionWrapperFactory.ConnectionCloseHandler
Parameters:
connection - the wrapped connection to commit
Throws:
SQLException - when an error occurs while committing the connection


Copyright © 2010-2016. All Rights Reserved.