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 Object
implements ManagedRuntime


Constructor Summary
AbstractManagedRuntime()
           
 
Method Summary
 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 Object getTransactionKey()
                         throws Exception,
                                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:
Exception
SystemException


Copyright © 2006-2007 Apache Software Foundation. All Rights Reserved.