|
||||||||||
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 | |
---|---|
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 TransactionManager for the managed runtime. |
void |
setRollbackOnly(Throwable cause)
Sets the rollback only flag on the current transaction. |
Method Detail |
---|
TransactionManager getTransactionManager() throws Exception
Exception
void setRollbackOnly(Throwable cause) throws Exception
cause
- the Throwable that caused the transaction to be
marked for rollback, or null of none is known
Exception
Throwable getRollbackCause() throws Exception
Exception
Object getTransactionKey() throws Exception, SystemException
Exception
SystemException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |