|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ManagedRuntime
This interface must be implemented by concrete plugins to application servers in order to integrate the OpenJPA runtime in a managed environment.
| Method Summary | |
|---|---|
java.lang.Throwable |
getRollbackCause()
Returns the Throwable that caused the current transaction to be marked for rollback, provided that any exists. |
java.lang.Object |
getTransactionKey()
Returns a transaction key that can be used to associate transactions and Brokers. |
javax.transaction.TransactionManager |
getTransactionManager()
Return the TransactionManager for the managed runtime. |
void |
setRollbackOnly(java.lang.Throwable cause)
Sets the rollback only flag on the current transaction. |
| Method Detail |
|---|
javax.transaction.TransactionManager getTransactionManager()
throws java.lang.Exception
java.lang.Exception
void setRollbackOnly(java.lang.Throwable cause)
throws java.lang.Exception
cause - the Throwable that caused the transaction to be
marked for rollback, or null of none is known
java.lang.Exception
java.lang.Throwable getRollbackCause()
throws java.lang.Exception
java.lang.Exception
java.lang.Object getTransactionKey()
throws java.lang.Exception,
javax.transaction.SystemException
java.lang.Exception
javax.transaction.SystemException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||