Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » tm » [javadoc | source]
org.jboss.tm
class: TransactionImpl [javadoc | source]
java.lang.Object
   org.jboss.tm.TransactionImpl

All Implemented Interfaces:
    javax.transaction.Transaction, TimeoutTarget

Our Transaction implementation.
Field Summary
static  XidFactoryMBean xidFactory    Factory for Xid instances of specified class. This is set from the TransactionManagerService MBean. 
static  TransactionManagerService txManagerService     
Constructor:
 TransactionImpl(long timeout) 
Method from org.jboss.tm.TransactionImpl Summary:
associateCurrentThread,   clearThreads,   commit,   containsTransactionLocal,   defaultXidFactory,   delistResource,   disassociateCurrentThread,   enlistResource,   equals,   getGlobalId,   getStatus,   getTimeLeftBeforeTimeout,   getTransactionLocalValue,   hashCode,   isDone,   putTransactionLocalValue,   registerSynchronization,   rollback,   setRollbackOnly,   timedOut,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.tm.TransactionImpl Detail:
 public  void associateCurrentThread() 
 public  void clearThreads() 
 public  void commit() throws SecurityException, SystemException, RollbackException, IllegalStateException, HeuristicRollbackException, HeuristicMixedException 
 boolean containsTransactionLocal(TransactionLocal tlocal) 
 static  void defaultXidFactory() 
    This static code is only present for testing purposes so a tm can be usable without a lot of setup.
 public boolean delistResource(XAResource xaRes,
    int flag) throws SystemException, IllegalStateException 
 public  void disassociateCurrentThread() 
 public boolean enlistResource(XAResource xaRes) throws SystemException, RollbackException, IllegalStateException 
 public boolean equals(Object obj) 
 GlobalId getGlobalId() 
    Return the global id of this transaction.
 public int getStatus() throws SystemException 
 public long getTimeLeftBeforeTimeout() 
 Object getTransactionLocalValue(TransactionLocal tlocal) 
 public int hashCode() 
 boolean isDone() 
    Getter for property done.
  void putTransactionLocalValue(TransactionLocal tlocal,
    Object value) 
 public  void registerSynchronization(Synchronization s) throws SystemException, RollbackException, IllegalStateException 
 public  void rollback() throws SecurityException, SystemException, IllegalStateException 
 public  void setRollbackOnly() throws SystemException, IllegalStateException 
 public  void timedOut(Timeout timeout) 
    Called when our timeout expires.
 public String toString()