Package com.ibm.fhir.persistence.proxy
Class FHIRProxyXAConnection
- java.lang.Object
-
- com.ibm.fhir.persistence.proxy.FHIRProxyXAConnection
-
- All Implemented Interfaces:
PooledConnection
,XAConnection
public class FHIRProxyXAConnection extends Object implements XAConnection
Proxy/wrapper for XAConnection objects obtained via the FHIRProxyXADataSource. Provides additional tracing for connection/transaction/pooling issues
-
-
Constructor Summary
Constructors Constructor Description FHIRProxyXAConnection(XAConnection delegate)
-
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()
XAResource
getXAResource()
void
removeConnectionEventListener(ConnectionEventListener listener)
void
removeStatementEventListener(StatementEventListener listener)
-
-
-
Constructor Detail
-
FHIRProxyXAConnection
public FHIRProxyXAConnection(XAConnection delegate)
-
-
Method Detail
-
getConnection
public Connection getConnection() throws SQLException
- Specified by:
getConnection
in interfacePooledConnection
- Throws:
SQLException
-
close
public void close() throws SQLException
- Specified by:
close
in interfacePooledConnection
- Throws:
SQLException
-
addConnectionEventListener
public void addConnectionEventListener(ConnectionEventListener listener)
- Specified by:
addConnectionEventListener
in interfacePooledConnection
-
removeConnectionEventListener
public void removeConnectionEventListener(ConnectionEventListener listener)
- Specified by:
removeConnectionEventListener
in interfacePooledConnection
-
addStatementEventListener
public void addStatementEventListener(StatementEventListener listener)
- Specified by:
addStatementEventListener
in interfacePooledConnection
-
removeStatementEventListener
public void removeStatementEventListener(StatementEventListener listener)
- Specified by:
removeStatementEventListener
in interfacePooledConnection
-
getXAResource
public XAResource getXAResource() throws SQLException
- Specified by:
getXAResource
in interfaceXAConnection
- Throws:
SQLException
-
-