|
||||||||||
| 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.InvocationManagedRuntime
public class InvocationManagedRuntime
Implementation of the ManagedRuntime interface that uses
a static method call to find the TransactionManager.
For example, to configure it to use IBM Websphere's TransactionManager,
use the method:
com.ibm.ejs.jts.jta.JTSXA.getTransactionManager
| Constructor Summary | |
|---|---|
InvocationManagedRuntime()
|
|
| Method Summary | |
|---|---|
void |
endConfiguration()
|
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 TransactionManager for the managed runtime. |
java.lang.String |
getTransactionManagerMethod()
Return the method to invoke to get the TransactionManager. |
void |
setConfiguration(Configuration conf)
|
void |
setRollbackOnly(java.lang.Throwable cause)
Sets the rollback only flag on the current transaction. |
void |
setTransactionManagerMethod(java.lang.String methodName)
Set the method to invoke to get the TransactionManager. |
void |
startConfiguration()
|
| Methods inherited from class org.apache.openjpa.ee.AbstractManagedRuntime |
|---|
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 |
|---|
getTransactionKey |
| Constructor Detail |
|---|
public InvocationManagedRuntime()
| Method Detail |
|---|
public java.lang.String getTransactionManagerMethod()
TransactionManager.
public void setTransactionManagerMethod(java.lang.String methodName)
TransactionManager.
E.g.: com.ibm.ejs.jts.jta.JTSXA.getTransactionManager
public javax.transaction.TransactionManager getTransactionManager()
throws java.lang.Exception
ManagedRuntime
getTransactionManager in interface ManagedRuntimejava.lang.Exceptionpublic void setConfiguration(Configuration conf)
setConfiguration in interface Configurablepublic void startConfiguration()
startConfiguration in interface Configurablepublic void endConfiguration()
endConfiguration in interface Configurable
public void setRollbackOnly(java.lang.Throwable cause)
throws java.lang.Exception
ManagedRuntime
setRollbackOnly in interface ManagedRuntimecause - 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 ManagedRuntimejava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||