|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.ee.JNDIManagedRuntime
public class JNDIManagedRuntime
Implementation of the ManagedRuntime
interface that uses JNDI to
find the TransactionManager.
Constructor Summary | |
---|---|
JNDIManagedRuntime()
|
Method Summary | |
---|---|
Throwable |
getRollbackCause()
Returns the Throwable that caused the current transaction to be marked for rollback, provided that any exists. |
TransactionManager |
getTransactionManager()
Return the cached TransactionManager instance. |
String |
getTransactionManagerName()
Return the location of the TransactionManager in JNDI. |
void |
setRollbackOnly(Throwable cause)
Sets the rollback only flag on the current transaction. |
void |
setTransactionManagerName(String name)
Set the location of the TransactionManager in JNDI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JNDIManagedRuntime()
Method Detail |
---|
public String getTransactionManagerName()
TransactionManager
in JNDI.
public void setTransactionManagerName(String name)
TransactionManager
in JNDI.
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |