Package com.impossibl.jdbc.spy
Class XAConnectionRelay
- java.lang.Object
-
- com.impossibl.jdbc.spy.XAConnectionRelay
-
-
Constructor Summary
Constructors Constructor Description XAConnectionRelay(javax.sql.XAConnection target, com.impossibl.jdbc.spy.XAConnectionListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConnectionEventListener(javax.sql.ConnectionEventListener listener)voidaddStatementEventListener(javax.sql.StatementEventListener listener)voidclose()java.sql.ConnectiongetConnection()javax.sql.XAConnectiongetTarget()javax.transaction.xa.XAResourcegetXAResource()voidremoveConnectionEventListener(javax.sql.ConnectionEventListener listener)voidremoveStatementEventListener(javax.sql.StatementEventListener listener)
-
-
-
Method Detail
-
getTarget
public javax.sql.XAConnection getTarget()
-
addConnectionEventListener
public void addConnectionEventListener(javax.sql.ConnectionEventListener listener)
- Specified by:
addConnectionEventListenerin interfacejavax.sql.PooledConnection
-
removeConnectionEventListener
public void removeConnectionEventListener(javax.sql.ConnectionEventListener listener)
- Specified by:
removeConnectionEventListenerin interfacejavax.sql.PooledConnection
-
getXAResource
public javax.transaction.xa.XAResource getXAResource() throws java.sql.SQLException- Specified by:
getXAResourcein interfacejavax.sql.XAConnection- Throws:
java.sql.SQLException
-
getConnection
public java.sql.Connection getConnection() throws java.sql.SQLException- Specified by:
getConnectionin interfacejavax.sql.PooledConnection- Throws:
java.sql.SQLException
-
addStatementEventListener
public void addStatementEventListener(javax.sql.StatementEventListener listener)
- Specified by:
addStatementEventListenerin interfacejavax.sql.PooledConnection
-
removeStatementEventListener
public void removeStatementEventListener(javax.sql.StatementEventListener listener)
- Specified by:
removeStatementEventListenerin interfacejavax.sql.PooledConnection
-
close
public void close() throws java.sql.SQLException- Specified by:
closein interfacejavax.sql.PooledConnection- Throws:
java.sql.SQLException
-
-