public final class IdbXAConnection extends StandardXAConnection
connectionHandle, curCon, thisAutoCommit, timerThread, transactionManager, xaDataSourcecon, dataSource, logTMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY| Constructor and Description |
|---|
IdbXAConnection(StandardXADataSource dataSource,
String user,
String password)
Creates the first free connection.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSameRM(XAResource xares)
Checks to see if two XAResource objects correspond to the
same Resource Manager.
|
int |
prepare(Xid xid)
Prepares to perform a commit.
|
void |
start(Xid xid,
int flags)
Associates this XAConnection with a global transaction.
|
checkPreparedState, close, commit, doStart, end, forget, getCommitOnPrepare, getConnection, getReference, getTransactionTimeout, getXAResource, newConnectionHandle, recover, rollback, run, setCommitOnPrepare, setTransactionManager, setTransactionTimeout, toStringaddConnectionEventListener, addStatementEventListener, connectionErrorOccurred, getPhysicalConnection, removeConnectionEventListener, removeStatementEventListener, setLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddConnectionEventListener, addStatementEventListener, removeConnectionEventListener, removeStatementEventListenerpublic IdbXAConnection(StandardXADataSource dataSource, String user, String password) throws SQLException
SQLExceptionpublic void start(Xid xid, int flags) throws XAException
start in interface XAResourcestart in class StandardXAConnectionXAExceptionpublic int prepare(Xid xid) throws XAException
prepare in interface XAResourceprepare in class StandardXAConnectionXAExceptionpublic boolean isSameRM(XAResource xares) throws XAException
isSameRM in interface XAResourceisSameRM in class StandardXAConnectionXAExceptionCopyright © 2014–2015. All rights reserved.