| java.lang.Object org.compass.core.transaction.UserTransactionAdapter
UserTransactionAdapter | public class UserTransactionAdapter implements UserTransaction(Code) | | Adapter for a JTA UserTransaction handle, taking a JTA TransactionManager
reference and creating a JTA UserTransaction handle for it.
The JTA UserTransaction interface is an exact subset of the JTA
TransactionManager interface. Unfortunately, it does not serve as
super-interface of TransactionManager, though, which requires an
adapter such as this class to be used when intending to talk to
a TransactionManager handle through the UserTransaction interface.
author: Wayne Robinson author: kimchy |
Constructor Summary | |
public | UserTransactionAdapter(TransactionManager transactionManager) Create a new UserTransactionAdapter. |
UserTransactionAdapter | public UserTransactionAdapter(TransactionManager transactionManager) throws CompassException(Code) | | Create a new UserTransactionAdapter.
Parameters: transactionManager - the JTA TransactionManager |
begin | public void begin() throws NotSupportedException, SystemException(Code) | | |
getStatus | public int getStatus() throws SystemException(Code) | | |
getTransactionManager | public TransactionManager getTransactionManager()(Code) | | Return the JTA TransactionManager that this adapter delegates to.
|
setTransactionTimeout | public void setTransactionTimeout(int timeout) throws SystemException(Code) | | |
|
|