Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa » kernel » [javadoc | source]
org.apache.openjpa.kernel
class: LocalManagedRuntime [javadoc | source]
java.lang.Object
   org.apache.openjpa.ee.AbstractManagedRuntime
      org.apache.openjpa.kernel.LocalManagedRuntime

All Implemented Interfaces:
    javax.transaction.Transaction, javax.transaction.TransactionManager, ManagedRuntime

Uses a local implementation of the TransactionManager interface. This manager is valid only for a single Broker . It duplicates non-managed transaction control.
Constructor:
 public LocalManagedRuntime(Broker broker) 
    Constructor. Provide broker that will be requesting managed transaction info.
Method from org.apache.openjpa.kernel.LocalManagedRuntime Summary:
begin,   commit,   delistResource,   enlistResource,   getRollbackCause,   getStatus,   getTransaction,   getTransactionManager,   registerSynchronization,   resume,   rollback,   setRollbackOnly,   setRollbackOnly,   setTransactionTimeout,   suspend
Methods from org.apache.openjpa.ee.AbstractManagedRuntime:
getTransactionKey
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.kernel.LocalManagedRuntime Detail:
 public synchronized  void begin() 
 public synchronized  void commit() 
 public boolean delistResource(XAResource xaRes,
    int flag) throws SystemException 
 public boolean enlistResource(XAResource xaRes) throws SystemException 
 public Throwable getRollbackCause() 
 public synchronized int getStatus() 
 public Transaction getTransaction() 
 public TransactionManager getTransactionManager() 
 public synchronized  void registerSynchronization(Synchronization sync) 
 public  void resume(Transaction tobj) throws SystemException 
 public synchronized  void rollback() 
 public synchronized  void setRollbackOnly() 
 public  void setRollbackOnly(Throwable cause) 
 public  void setTransactionTimeout(int sec) throws SystemException 
 public Transaction suspend() throws SystemException