| java.lang.Object org.springframework.transaction.jta.UserTransactionAdapter
UserTransactionAdapter | public class UserTransactionAdapter implements UserTransaction(Code) | | Adapter for a JTA UserTransaction handle, taking a JTA
javax.transaction.TransactionManager reference and creating
a JTA
javax.transaction.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.
Used internally by Spring's
JtaTransactionManager for certain
scenarios. Not intended for direct use in application code.
author: Juergen Hoeller since: 1.1.5 |
Constructor Summary | |
public | UserTransactionAdapter(TransactionManager transactionManager) Create a new UserTransactionAdapter for the given TransactionManager. |
UserTransactionAdapter | public UserTransactionAdapter(TransactionManager transactionManager)(Code) | | Create a new UserTransactionAdapter for the given TransactionManager.
Parameters: transactionManager - the JTA TransactionManager to wrap |
begin | public void begin() throws NotSupportedException, SystemException(Code) | | |
getStatus | public int getStatus() throws SystemException(Code) | | |
getTransactionManager | final public TransactionManager getTransactionManager()(Code) | | Return the JTA TransactionManager that this adapter delegates to.
|
setTransactionTimeout | public void setTransactionTimeout(int timeout) throws SystemException(Code) | | |
|
|