public class OracleXAResource extends OracleXAResource
activeXid, canBeMigratablySuspended, connection, dblink, DEFAULT_XA_TIMEOUT, ORAISOLATIONMASK, ORATMREADONLY, ORATMREADWRITE, ORATMSERIALIZABLE, ORATRANSLOOSE, savedConnectionAutoCommit, savedXAConnectionAutoCommit, timeout, TMENDRSCAN, TMFAIL, TMJOIN, TMMIGRATE, TMNOFLAGS, TMNOMIGRATE, TMONEPHASE, TMPROMOTE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, xaconnection, xidHash| Constructor and Description |
|---|
OracleXAResource() |
OracleXAResource(java.sql.Connection pm_conn,
OracleXAConnection xaconn) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit(javax.transaction.xa.Xid xid,
boolean onePhase)
commit() -- Commit work done by global transaction specified by xid.
|
protected void |
commitSessionlessTransaction(javax.transaction.xa.Xid xid)
Commit sessionless transaction
when XAThroughSessionlessTransactions is enabled.
|
protected void |
doCommit(javax.transaction.xa.Xid xid,
boolean onePhase) |
protected int |
doDoTwoPhaseAction(int nsites,
int action,
java.lang.String[] dbnames,
javax.transaction.xa.Xid[] xids) |
protected int |
doEnd(javax.transaction.xa.Xid xid,
int flag,
boolean isLocallySuspended) |
protected int |
doForget(javax.transaction.xa.Xid xid) |
protected int |
doPrepare(javax.transaction.xa.Xid xid) |
protected void |
doRollback(javax.transaction.xa.Xid xid) |
protected int |
doStart(javax.transaction.xa.Xid xid,
int flag) |
void |
doTwoPhaseAction(int nsites,
int action,
java.lang.String[] dbnames,
javax.transaction.xa.Xid[] xids) |
void |
end(javax.transaction.xa.Xid xid,
int flag)
end()-- End work performed on behalf of a transaction branch.
|
protected void |
endSessionlessTransaction(javax.transaction.xa.Xid xid,
int flag)
Suspend sessionless transaction
when XAThroughSessionlessTransactions is enabled.
|
void |
forget(javax.transaction.xa.Xid xid)
forget() -- Tell RM to forget about a heuristically completed txn branch
|
int |
prepare(javax.transaction.xa.Xid xid)
prepare() -- Ask RM to prepare for a commit of the txn specified in xid.
|
void |
rollback(javax.transaction.xa.Xid xid)
rollback() -- Ask RM to roll back work done on behalf of a txn branch.
|
protected void |
rollbackSessionlessTransaction(javax.transaction.xa.Xid xid)
Rollback sessionless transaction
when XAThroughSessionlessTransactions is enabled.
|
void |
start(javax.transaction.xa.Xid xid,
int flag)
start() -- Starts work on behalf of a transaction branch.
|
protected void |
startSessionlessTransaction(javax.transaction.xa.Xid xid,
int flag)
Start/Resume sessionless transaction
when XAThroughSessionlessTransactions is enabled.
|
allowGlobalTxnModeOnly, checkError, checkError, checkError, convertError, createOrUpdateXid, enterGlobalTxnMode, exitGlobalTxnMode, getConnectionDuringExceptionHandling, getDiagnosable, getMonitorLock, getPhysicalConnection, getTransactionTimeout, isOnStack, isSameRM, isXidListEmpty, isXidSuspended, recover, removeXidFromList, restoreAutoCommitModeForGlobalTransaction, restoreAutoCommitModeForSessionlessTransaction, resumeStacked, saveAndAlterAutoCommitModeForGlobalTransaction, saveAndAlterAutoCommitModeForSessionlessTransaction, setTransactionTimeout, suspendStacked, updateXidListclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacquireCloseableLock, acquireLock, assertLockHeldByCurrentThread, isReentrantLock, newDefaultLock, newInstance, releaseLockbegin, beginCurrentSql, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debugp, end, endCurrentSql, format, isDebugEnabled, isDiagnoseFirstFailureEnabled, isLoggable, isSensitiveEnabled, onClose, propertyChange, resumeLogging, secure, suspendLogging, trace, traceppublic OracleXAResource()
public OracleXAResource(java.sql.Connection pm_conn,
OracleXAConnection xaconn)
throws javax.transaction.xa.XAException
javax.transaction.xa.XAExceptionprotected void startSessionlessTransaction(javax.transaction.xa.Xid xid,
int flag)
throws javax.transaction.xa.XAException
xid - the transaction idflag - TMNOFLAGS, TMRESUMEjavax.transaction.xa.XAExceptionprotected void endSessionlessTransaction(javax.transaction.xa.Xid xid,
int flag)
throws javax.transaction.xa.XAException
xid - the transaction idflag - TMSUSPENDjavax.transaction.xa.XAExceptionprotected void commitSessionlessTransaction(javax.transaction.xa.Xid xid)
throws javax.transaction.xa.XAException
xid - the transaction idjavax.transaction.xa.XAExceptionprotected void rollbackSessionlessTransaction(javax.transaction.xa.Xid xid)
throws javax.transaction.xa.XAException
xid - the transaction idjavax.transaction.xa.XAExceptionpublic void start(javax.transaction.xa.Xid xid,
int flag)
throws javax.transaction.xa.XAException
start in interface javax.transaction.xa.XAResourcestart in class OracleXAResourcexid - A global transaction identifier.flag - One of TMNOFLAGS, TMJOIN, TMNOMIGRATE or TMRESUME.javax.transaction.xa.XAException - An error has occurred. Possible exceptions are XA_RB, XAER_RMERR,
XAER_RMFAIL, XAER_DUPID, XAER_OUTSIDE, XAER_NOTA, XAER_INVAL, or
XAER_PROTO.protected int doStart(javax.transaction.xa.Xid xid,
int flag)
throws javax.transaction.xa.XAException,
java.sql.SQLException
javax.transaction.xa.XAExceptionjava.sql.SQLExceptionpublic void end(javax.transaction.xa.Xid xid,
int flag)
throws javax.transaction.xa.XAException
end in interface javax.transaction.xa.XAResourceend in class OracleXAResourcexid - A global transaction identifier that is the same as
what was used previously in the start method.flag - One of TMSUCCESS, TMFAIL, or TMSUSPEND.javax.transaction.xa.XAException - An error has occurred. Possible XAException values are XAER_RMERR,
XAER_RMFAILED, XAER_NOTA, XAER_INVAL, XAER_PROTO, or XA_RB.protected int doEnd(javax.transaction.xa.Xid xid,
int flag,
boolean isLocallySuspended)
throws javax.transaction.xa.XAException,
java.sql.SQLException
javax.transaction.xa.XAExceptionjava.sql.SQLExceptionpublic void commit(javax.transaction.xa.Xid xid,
boolean onePhase)
throws javax.transaction.xa.XAException
commit in interface javax.transaction.xa.XAResourcecommit in class OracleXAResourcexid - A global transaction identifier.onePhase - If true, the RM should use a 1-phase commit protocol to
commit the work done on behalf of xid.javax.transaction.xa.XAException - (An error has occurred.)
Possible XAExceptions are XA_HEURHAZ, XA_HEURCOM,
XA_HEURRB, XA_HEURMIX, XAER_RMERR, XAER_RMFAIL, XAER_NOTA,
XAER_INVAL, or XAER_PROTO.
If the resource manager did not commit the txn and the parameter
onePhase is set to true, the RM may raise one of the XA_RB
exceptions. Upon return, the RM has rolled back the branch's
work and has released all held resources.protected void doCommit(javax.transaction.xa.Xid xid,
boolean onePhase)
throws javax.transaction.xa.XAException,
java.sql.SQLException
javax.transaction.xa.XAExceptionjava.sql.SQLExceptionpublic int prepare(javax.transaction.xa.Xid xid)
throws javax.transaction.xa.XAException
prepare in interface javax.transaction.xa.XAResourceprepare in class OracleXAResourcexid - A global transaction identifier.javax.transaction.xa.XAException - (An error has occurred.)
Possible exception values are: XA_RB, XAER_RMERR, XAER_RMFAIL,
XAER_NOTA, XAER_INVAL, or XAER_PROTO.protected int doPrepare(javax.transaction.xa.Xid xid)
throws javax.transaction.xa.XAException,
java.sql.SQLException
javax.transaction.xa.XAExceptionjava.sql.SQLExceptionpublic void forget(javax.transaction.xa.Xid xid)
throws javax.transaction.xa.XAException
forget in interface javax.transaction.xa.XAResourceforget in class OracleXAResourcexid - A global transaction identifier.javax.transaction.xa.XAException - An error has occurred. Possible exception values are XAER_RMERR,
XAER_RMFAIL, XAER_NOTA, XAER_INVAL, or XAER_PROTO.protected int doForget(javax.transaction.xa.Xid xid)
throws javax.transaction.xa.XAException,
java.sql.SQLException
javax.transaction.xa.XAExceptionjava.sql.SQLExceptionpublic void rollback(javax.transaction.xa.Xid xid)
throws javax.transaction.xa.XAException
rollback in interface javax.transaction.xa.XAResourcerollback in class OracleXAResourcexid - A global transaction identifier.javax.transaction.xa.XAException - An error has occurred.protected void doRollback(javax.transaction.xa.Xid xid)
throws javax.transaction.xa.XAException,
java.sql.SQLException
javax.transaction.xa.XAExceptionjava.sql.SQLExceptionpublic void doTwoPhaseAction(int nsites,
int action,
java.lang.String[] dbnames,
javax.transaction.xa.Xid[] xids)
throws javax.transaction.xa.XAException
javax.transaction.xa.XAExceptionprotected int doDoTwoPhaseAction(int nsites,
int action,
java.lang.String[] dbnames,
javax.transaction.xa.Xid[] xids)
throws javax.transaction.xa.XAException
javax.transaction.xa.XAException