Package io.agroal.test
Interface MockXAConnection
-
- All Superinterfaces:
PooledConnection,XAConnection
- All Known Implementing Classes:
MockXAConnection.Empty
public interface MockXAConnection extends XAConnection
- Author:
- Luis Barreiro
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMockXAConnection.Empty
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidaddConnectionEventListener(ConnectionEventListener listener)default voidaddStatementEventListener(StatementEventListener listener)default voidclose()default ConnectiongetConnection()default XAResourcegetXAResource()default voidremoveConnectionEventListener(ConnectionEventListener listener)default voidremoveStatementEventListener(StatementEventListener listener)
-
-
-
Method Detail
-
getXAResource
default XAResource getXAResource() throws SQLException
- Specified by:
getXAResourcein interfaceXAConnection- Throws:
SQLException
-
getConnection
default Connection getConnection() throws SQLException
- Specified by:
getConnectionin interfacePooledConnection- Throws:
SQLException
-
close
default void close() throws SQLException- Specified by:
closein interfacePooledConnection- Throws:
SQLException
-
addConnectionEventListener
default void addConnectionEventListener(ConnectionEventListener listener)
- Specified by:
addConnectionEventListenerin interfacePooledConnection
-
removeConnectionEventListener
default void removeConnectionEventListener(ConnectionEventListener listener)
- Specified by:
removeConnectionEventListenerin interfacePooledConnection
-
addStatementEventListener
default void addStatementEventListener(StatementEventListener listener)
- Specified by:
addStatementEventListenerin interfacePooledConnection
-
removeStatementEventListener
default void removeStatementEventListener(StatementEventListener listener)
- Specified by:
removeStatementEventListenerin interfacePooledConnection
-
-