| org.ow2.easybeans.persistence.openjpa.EasyBeansManagedRuntime
EasyBeansManagedRuntime | public class EasyBeansManagedRuntime extends AbstractManagedRuntime implements ManagedRuntime(Code) | | This class manages the specific features required for OpenJPA : the link to
the Transaction manager.
author: Florent Benoit |
Method Summary | |
public Throwable | getRollbackCause() Returns the Throwable that caused the current transaction to be marked
for rollback, provided that any exists. | public TransactionManager | getTransactionManager() the TransactionManager for the managed runtime. | public void | setRollbackOnly(Throwable cause) Sets the rollback only flag on the current transaction. |
getRollbackCause | public Throwable getRollbackCause() throws Exception(Code) | | Returns the Throwable that caused the current transaction to be marked
for rollback, provided that any exists.
the Throwable cause, or null if none throws: Exception - if problems |
getTransactionManager | public TransactionManager getTransactionManager() throws Exception(Code) | | the TransactionManager for the managed runtime. This manager isused to register synchronization listeners, to map transactionalPersistenceManagers to the current transaction, and possibly toenlist XA resources. throws: Exception - if the transactionManager cannot be found. |
setRollbackOnly | public void setRollbackOnly(Throwable cause) throws Exception(Code) | | Sets the rollback only flag on the current transaction. If the
TransactionManager is capable of tracking the cause of the rollback-only
flag, it will also pass along cause information.
Parameters: cause - the Throwable that caused the transaction to be marked forrollback, or null of none is known throws: Exception - if the transactionManager cannot be found. |
|
|