Package com.nuodb.jdbc
Class RemXAConnection
- java.lang.Object
-
- com.nuodb.jdbc.RemXAConnection
-
- All Implemented Interfaces:
PooledConnection,XAConnection
public class RemXAConnection extends Object implements XAConnection
-
-
Constructor Summary
Constructors Constructor Description RemXAConnection(String url, Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConnectionEventListener(ConnectionEventListener listener)voidaddStatementEventListener(StatementEventListener listener)voidclose()NuoXidfindRecoverXid(Xid xid)RemConnectiongetConnection()RemConnectiongetExistingConnection()XAResourcegetXAResource()Returns an XAResource object used to manage XAConnection objects.voidremoveConnectionEventListener(ConnectionEventListener listener)voidremoveStatementEventListener(StatementEventListener listener)voidsaveRecoverXid(NuoXid xid)
-
-
-
Constructor Detail
-
RemXAConnection
public RemXAConnection(String url, Properties properties)
-
-
Method Detail
-
getXAResource
public XAResource getXAResource() throws SQLException
Returns an XAResource object used to manage XAConnection objects.- Specified by:
getXAResourcein interfaceXAConnection- Throws:
SQLException
-
saveRecoverXid
public void saveRecoverXid(NuoXid xid)
-
addConnectionEventListener
public void addConnectionEventListener(ConnectionEventListener listener)
- Specified by:
addConnectionEventListenerin interfacePooledConnection
-
addStatementEventListener
public void addStatementEventListener(StatementEventListener listener)
- Specified by:
addStatementEventListenerin interfacePooledConnection
-
removeConnectionEventListener
public void removeConnectionEventListener(ConnectionEventListener listener)
- Specified by:
removeConnectionEventListenerin interfacePooledConnection
-
removeStatementEventListener
public void removeStatementEventListener(StatementEventListener listener)
- Specified by:
removeStatementEventListenerin interfacePooledConnection
-
getConnection
public RemConnection getConnection() throws SQLException
- Specified by:
getConnectionin interfacePooledConnection- Throws:
SQLException
-
getExistingConnection
public RemConnection getExistingConnection()
-
close
public void close() throws SQLException- Specified by:
closein interfacePooledConnection- Throws:
SQLException
-
-