Package com.impossibl.jdbc.spy
Class XAConnectionRelay
- java.lang.Object
-
- com.impossibl.jdbc.spy.XAConnectionRelay
-
- All Implemented Interfaces:
Relay<XAConnection>,PooledConnection,XAConnection
public class XAConnectionRelay extends Object implements Relay<XAConnection>, XAConnection
-
-
Field Summary
Fields Modifier and Type Field Description com.impossibl.jdbc.spy.XAConnectionListenerlistenerXAConnectiontarget
-
Constructor Summary
Constructors Constructor Description XAConnectionRelay(XAConnection target, com.impossibl.jdbc.spy.XAConnectionListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConnectionEventListener(ConnectionEventListener listener)voidaddStatementEventListener(StatementEventListener listener)voidclose()ConnectiongetConnection()XAConnectiongetTarget()XAResourcegetXAResource()voidremoveConnectionEventListener(ConnectionEventListener listener)voidremoveStatementEventListener(StatementEventListener listener)
-
-
-
Field Detail
-
target
public XAConnection target
-
listener
public com.impossibl.jdbc.spy.XAConnectionListener listener
-
-
Constructor Detail
-
XAConnectionRelay
public XAConnectionRelay(XAConnection target, com.impossibl.jdbc.spy.XAConnectionListener listener)
-
-
Method Detail
-
getTarget
public XAConnection getTarget()
- Specified by:
getTargetin interfaceRelay<XAConnection>
-
removeStatementEventListener
public void removeStatementEventListener(StatementEventListener listener)
- Specified by:
removeStatementEventListenerin interfacePooledConnection
-
close
public void close() throws SQLException- Specified by:
closein interfacePooledConnection- Throws:
SQLException
-
getXAResource
public XAResource getXAResource() throws SQLException
- Specified by:
getXAResourcein interfaceXAConnection- Throws:
SQLException
-
addConnectionEventListener
public void addConnectionEventListener(ConnectionEventListener listener)
- Specified by:
addConnectionEventListenerin interfacePooledConnection
-
getConnection
public Connection getConnection() throws SQLException
- Specified by:
getConnectionin interfacePooledConnection- Throws:
SQLException
-
removeConnectionEventListener
public void removeConnectionEventListener(ConnectionEventListener listener)
- Specified by:
removeConnectionEventListenerin interfacePooledConnection
-
addStatementEventListener
public void addStatementEventListener(StatementEventListener listener)
- Specified by:
addStatementEventListenerin interfacePooledConnection
-
-