Class Overview
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.
Summary
Public Constructors |
|
UserTransactionAdapter(TransactionManager transactionManager)
Create a new UserTransactionAdapter for the given TransactionManager.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
javax.transaction.UserTransaction
abstract
void
|
begin()
|
abstract
void
|
commit()
|
abstract
int
|
getStatus()
|
abstract
void
|
rollback()
|
abstract
void
|
setRollbackOnly()
|
abstract
void
|
setTransactionTimeout(int arg0)
|
|
Public Constructors
public
UserTransactionAdapter
(TransactionManager transactionManager)
Create a new UserTransactionAdapter for the given TransactionManager.
Parameters
transactionManager
| the JTA TransactionManager to wrap
|
Public Methods
public
void
begin
()
Throws
NotSupportedException
| |
SystemException
| |
public
void
commit
()
Throws
HeuristicMixedException
| |
HeuristicRollbackException
| |
RollbackException
| |
SecurityException
| |
SystemException
| |
public
final
TransactionManager
getTransactionManager
()
Return the JTA TransactionManager that this adapter delegates to.
public
void
setRollbackOnly
()
public
void
setTransactionTimeout
(int timeout)