public class XAConnectionRelay extends Object implements Relay<XAConnection>, XAConnection
| Modifier and Type | Field and Description |
|---|---|
com.impossibl.jdbc.spy.XAConnectionListener |
listener |
XAConnection |
target |
| Constructor and Description |
|---|
XAConnectionRelay(XAConnection target,
com.impossibl.jdbc.spy.XAConnectionListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionEventListener(ConnectionEventListener listener) |
void |
addStatementEventListener(StatementEventListener listener) |
void |
close() |
Connection |
getConnection() |
XAConnection |
getTarget() |
XAResource |
getXAResource() |
void |
removeConnectionEventListener(ConnectionEventListener listener) |
void |
removeStatementEventListener(StatementEventListener listener) |
public XAConnection target
public com.impossibl.jdbc.spy.XAConnectionListener listener
public XAConnectionRelay(XAConnection target, com.impossibl.jdbc.spy.XAConnectionListener listener)
public XAConnection getTarget()
getTarget in interface Relay<XAConnection>public void addStatementEventListener(StatementEventListener listener)
addStatementEventListener in interface PooledConnectionpublic Connection getConnection() throws SQLException
getConnection in interface PooledConnectionSQLExceptionpublic XAResource getXAResource() throws SQLException
getXAResource in interface XAConnectionSQLExceptionpublic void addConnectionEventListener(ConnectionEventListener listener)
addConnectionEventListener in interface PooledConnectionpublic void removeConnectionEventListener(ConnectionEventListener listener)
removeConnectionEventListener in interface PooledConnectionpublic void close()
throws SQLException
close in interface PooledConnectionSQLExceptionpublic void removeStatementEventListener(StatementEventListener listener)
removeStatementEventListener in interface PooledConnection