org.apache.openjpa.ee
Class AbstractManagedRuntime

java.lang.Object
  extended by org.apache.openjpa.ee.AbstractManagedRuntime
All Implemented Interfaces:
ManagedRuntime
Direct Known Subclasses:
AutomaticManagedRuntime, InvocationManagedRuntime, JNDIManagedRuntime, SunOneManagedRuntime, WASManagedRuntime, WLSManagedRuntime

public abstract class AbstractManagedRuntime
extends java.lang.Object
implements ManagedRuntime


Constructor Summary
AbstractManagedRuntime()
           
 
Method Summary
 java.lang.Object getTransactionKey()
          Returns a transaction key that can be used to associate transactions and Brokers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.openjpa.ee.ManagedRuntime
getRollbackCause, getTransactionManager, setRollbackOnly
 

Constructor Detail

AbstractManagedRuntime

public AbstractManagedRuntime()
Method Detail

getTransactionKey

public java.lang.Object getTransactionKey()
                                   throws java.lang.Exception,
                                          javax.transaction.SystemException
Returns a transaction key that can be used to associate transactions and Brokers. The default implementation returns the Transaction associated with the current thread's transaction.

Specified by:
getTransactionKey in interface ManagedRuntime
Returns:
the transaction key
Throws:
java.lang.Exception
javax.transaction.SystemException