org.ofbiz.entity.transaction
Class DebugXaResource

java.lang.Object
  extended by java.lang.Thread
      extended by org.ofbiz.entity.transaction.GenericXaResource
          extended by org.ofbiz.entity.transaction.DebugXaResource
All Implemented Interfaces:
java.lang.Runnable, javax.transaction.xa.XAResource

public class DebugXaResource
extends GenericXaResource


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 java.lang.Exception ex
           
static java.lang.String module
           
 
Fields inherited from class org.ofbiz.entity.transaction.GenericXaResource
active, timeout, trans, xid
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Fields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
 
Constructor Summary
DebugXaResource()
           
DebugXaResource(java.lang.String info)
           
 
Method Summary
 void commit(javax.transaction.xa.Xid xid, boolean onePhase)
           
 void enlist()
          Enlists this resource in the current transaction
 void log()
           
 void rollback(javax.transaction.xa.Xid xid)
           
 
Methods inherited from class org.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, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module

ex

public java.lang.Exception ex
Constructor Detail

DebugXaResource

public DebugXaResource(java.lang.String info)

DebugXaResource

public DebugXaResource()
Method Detail

commit

public void commit(javax.transaction.xa.Xid xid,
                   boolean onePhase)
            throws javax.transaction.xa.XAException
Specified by:
commit in interface javax.transaction.xa.XAResource
Specified by:
commit in class GenericXaResource
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 interface javax.transaction.xa.XAResource
Specified by:
rollback in class GenericXaResource
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 class GenericXaResource
Throws:
javax.transaction.xa.XAException

log

public void log()