org.axonframework.common.jdbc
Class ConnectionWrapperFactory.NoOpCloseHandler
java.lang.Object
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.
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 |
ConnectionWrapperFactory.NoOpCloseHandler
public ConnectionWrapperFactory.NoOpCloseHandler()
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.