|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.ee.RegistryManagedRuntime
public class RegistryManagedRuntime
Implementation of the ManagedRuntime
interface that uses
the TransactionSynchronizationRegistry
interface (new in JTA 1.1)
to create a TransactionManager
facade for controlling transactions.
Nested Class Summary | |
---|---|
static class |
RegistryManagedRuntime.TransactionManagerRegistryFacade
A TransactionManager and Transaction facade
that delegates the appropriate methods to the internally-held
TransactionSynchronizationRegistry . |
Constructor Summary | |
---|---|
RegistryManagedRuntime()
|
Method Summary | |
---|---|
String |
getRegistryName()
|
Throwable |
getRollbackCause()
Returns the Throwable that caused the current transaction to be marked for rollback, provided that any exists. |
Object |
getTransactionKey()
Returns a transaction key that can be used to associate transactions and Brokers. |
TransactionManager |
getTransactionManager()
Return the cached TransactionManager instance. |
void |
setRegistryName(String registryName)
|
void |
setRollbackOnly(Throwable cause)
Sets the rollback only flag on the current transaction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegistryManagedRuntime()
Method Detail |
---|
public TransactionManager getTransactionManager() throws Exception
getTransactionManager
in interface ManagedRuntime
Exception
public void setRollbackOnly(Throwable cause) throws Exception
ManagedRuntime
setRollbackOnly
in interface ManagedRuntime
cause
- the Throwable that caused the transaction to be
marked for rollback, or null of none is known
Exception
public Throwable getRollbackCause() throws Exception
ManagedRuntime
getRollbackCause
in interface ManagedRuntime
Exception
public void setRegistryName(String registryName)
public String getRegistryName()
public Object getTransactionKey() throws Exception, SystemException
ManagedRuntime
getTransactionKey
in interface ManagedRuntime
Exception
SystemException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |