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.XAConnectionListener
listener
XAConnection
target
-
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 void
addConnectionEventListener(ConnectionEventListener listener)
void
addStatementEventListener(StatementEventListener listener)
void
close()
Connection
getConnection()
XAConnection
getTarget()
XAResource
getXAResource()
void
removeConnectionEventListener(ConnectionEventListener listener)
void
removeStatementEventListener(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:
getTarget
in interfaceRelay<XAConnection>
-
removeStatementEventListener
public void removeStatementEventListener(StatementEventListener listener)
- Specified by:
removeStatementEventListener
in interfacePooledConnection
-
close
public void close() throws SQLException
- Specified by:
close
in interfacePooledConnection
- Throws:
SQLException
-
getXAResource
public XAResource getXAResource() throws SQLException
- Specified by:
getXAResource
in interfaceXAConnection
- Throws:
SQLException
-
addConnectionEventListener
public void addConnectionEventListener(ConnectionEventListener listener)
- Specified by:
addConnectionEventListener
in interfacePooledConnection
-
getConnection
public Connection getConnection() throws SQLException
- Specified by:
getConnection
in interfacePooledConnection
- Throws:
SQLException
-
removeConnectionEventListener
public void removeConnectionEventListener(ConnectionEventListener listener)
- Specified by:
removeConnectionEventListener
in interfacePooledConnection
-
addStatementEventListener
public void addStatementEventListener(StatementEventListener listener)
- Specified by:
addStatementEventListener
in interfacePooledConnection
-
-