| org.apache.openjpa.ee.ManagedRuntime
All known Subclasses: org.apache.openjpa.ee.SunOneManagedRuntime, org.apache.openjpa.ee.AbstractManagedRuntime, org.apache.openjpa.ee.WLSManagedRuntime, org.apache.openjpa.kernel.LocalManagedRuntime, org.apache.openjpa.ee.InvocationManagedRuntime, org.apache.openjpa.ee.JNDIManagedRuntime, org.apache.openjpa.ee.RegistryManagedRuntime, org.apache.openjpa.ee.AutomaticManagedRuntime, org.apache.openjpa.ee.WASManagedRuntime,
ManagedRuntime | public interface ManagedRuntime (Code) | | This interface must be implemented by concrete plugins to application
servers in order to integrate the OpenJPA runtime in a managed environment.
author: Abe White |
Method Summary | |
public Throwable | getRollbackCause() Returns the Throwable that caused the current transaction to be
marked for rollback, provided that any exists. | public Object | getTransactionKey() Returns a transaction key that can be used to associate transactions
and Brokers. | public TransactionManager | getTransactionManager() Return 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 |
getTransactionKey | public Object getTransactionKey() throws Exception, SystemException(Code) | | Returns a transaction key that can be used to associate transactions
and Brokers.
the transaction key |
getTransactionManager | public TransactionManager getTransactionManager() throws Exception(Code) | | Return the TransactionManager for the managed runtime. This
manager is used to register synchronization listeners, to
map transactional PersistenceManagers to the current transaction,
and possibly to enlist XA resources.
|
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 bemarked for rollback, or null of none is known |
|
|