public final class OracleXAConnection 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 |
|---|
OracleXAConnection(StandardXADataSource dataSource,
String user,
String password)
Creates the first free connection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
commit(Xid xid,
boolean flag)
Performs a commit on this resource manager's branch of
the global transaction.
|
void |
end(Xid xid,
int flags)
Ends a connection's association with a global transaction.
|
void |
forget(Xid xid)
This is called by a TM when the RM has reported a heuristic
completion.
|
boolean |
isSameRM(XAResource res) |
int |
prepare(Xid xid)
Prepares to perform a commit.
|
void |
rollback(Xid xid)
PERFORMS a rollback on this resource manager's branch of
the global transaction.
|
void |
start(Xid xid,
int flags)
Associates this XAConnection with a global transaction.
|
checkPreparedState, close, doStart, getCommitOnPrepare, getConnection, getReference, getTransactionTimeout, getXAResource, newConnectionHandle, recover, run, setCommitOnPrepare, setTransactionManager, setTransactionTimeout, toStringaddConnectionEventListener, addStatementEventListener, connectionErrorOccurred, getPhysicalConnection, removeConnectionEventListener, removeStatementEventListener, setLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddConnectionEventListener, addStatementEventListener, removeConnectionEventListener, removeStatementEventListenerpublic OracleXAConnection(StandardXADataSource dataSource, String user, String password) throws SQLException
SQLExceptionpublic void commit(Xid xid, boolean flag) throws XAException
StandardXAConnectioncommit in interface XAResourcecommit in class StandardXAConnectionXAExceptionpublic void end(Xid xid, int flags) throws XAException
StandardXAConnectionIt need not act on the current transaction. There is an interval between being returned to the pool manager and being invoked by the transaction manager during which the current connection can change.
Note that the only effect is to change the connection state.
end in interface XAResourceend in class StandardXAConnectionXAExceptionpublic void forget(Xid xid) throws XAException
StandardXAConnectionforget in interface XAResourceforget in class StandardXAConnectionXAExceptionpublic int prepare(Xid xid) throws XAException
StandardXAConnectionprepare in interface XAResourceprepare in class StandardXAConnectionXAExceptionpublic void rollback(Xid xid) throws XAException
StandardXAConnectionrollback in interface XAResourcerollback in class StandardXAConnectionXAExceptionpublic void start(Xid xid, int flags) throws XAException
StandardXAConnectionstart in interface XAResourcestart in class StandardXAConnectionXAExceptionpublic boolean isSameRM(XAResource res) throws XAException
isSameRM in interface XAResourceisSameRM in class StandardXAConnectionXAExceptionCopyright © 2014–2015. All rights reserved.