Class DebugXaResource
- java.lang.Object
-
- java.lang.Thread
-
- org.apache.ofbiz.entity.transaction.GenericXaResource
-
- org.apache.ofbiz.entity.transaction.DebugXaResource
-
- All Implemented Interfaces:
java.lang.Runnable
,javax.transaction.xa.XAResource
public class DebugXaResource extends GenericXaResource
-
-
Constructor Summary
Constructors Constructor Description DebugXaResource()
DebugXaResource(java.lang.String info)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
commit(javax.transaction.xa.Xid xid, boolean onePhase)
void
enlist()
Enlists this resource in the current transactionvoid
log()
void
rollback(javax.transaction.xa.Xid xid)
-
Methods inherited from class org.apache.ofbiz.entity.transaction.GenericXaResource
end, enlist, forget, getTransaction, getTransactionTimeout, getXid, isSameRM, prepare, recover, run, runOnTimeout, setTransaction, setTransactionTimeout, start
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Method Detail
-
commit
public void commit(javax.transaction.xa.Xid xid, boolean onePhase) throws javax.transaction.xa.XAException
- Specified by:
commit
in interfacejavax.transaction.xa.XAResource
- Specified by:
commit
in classGenericXaResource
- Throws:
javax.transaction.xa.XAException
- See Also:
XAResource.commit(javax.transaction.xa.Xid xid, boolean onePhase)
-
rollback
public void rollback(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
- Specified by:
rollback
in interfacejavax.transaction.xa.XAResource
- Specified by:
rollback
in classGenericXaResource
- Throws:
javax.transaction.xa.XAException
- See Also:
XAResource.rollback(javax.transaction.xa.Xid xid)
-
enlist
public void enlist() throws javax.transaction.xa.XAException
Description copied from class:GenericXaResource
Enlists this resource in the current transaction- Overrides:
enlist
in classGenericXaResource
- Throws:
javax.transaction.xa.XAException
-
log
public void log()
-
-