|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.ee.AbstractManagedRuntime
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 | |
---|---|
java.lang.Throwable |
getRollbackCause()
Returns the Throwable that caused the current transaction to be marked for rollback, provided that any exists. |
javax.transaction.TransactionManager |
getTransactionManager()
Return the cached TransactionManager instance. |
java.lang.String |
getTransactionManagerName()
Return the location of the TransactionManager in JNDI. |
void |
setRollbackOnly(java.lang.Throwable cause)
Sets the rollback only flag on the current transaction. |
void |
setTransactionManagerName(java.lang.String name)
Set the location of the TransactionManager in JNDI. |
Methods inherited from class org.apache.openjpa.ee.AbstractManagedRuntime |
---|
doNonTransactionalWork, getTransactionKey |
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 |
---|
doNonTransactionalWork, getTransactionKey |
Constructor Detail |
---|
public JNDIManagedRuntime()
Method Detail |
---|
public java.lang.String getTransactionManagerName()
TransactionManager
in JNDI.
public void setTransactionManagerName(java.lang.String name)
TransactionManager
in JNDI.
public javax.transaction.TransactionManager getTransactionManager() throws java.lang.Exception
getTransactionManager
in interface ManagedRuntime
java.lang.Exception
public void setRollbackOnly(java.lang.Throwable cause) throws java.lang.Exception
ManagedRuntime
setRollbackOnly
in interface ManagedRuntime
cause
- the Throwable that caused the transaction to be
marked for rollback, or null of none is known
java.lang.Exception
public java.lang.Throwable getRollbackCause() throws java.lang.Exception
ManagedRuntime
getRollbackCause
in interface ManagedRuntime
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |