|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.transaction.jta.JtaTransactionObject
public class JtaTransactionObject
JTA transaction object, representing a UserTransaction. Used as transaction object by JtaTransactionManager.
Note: This is an SPI class, not intended to be used by applications.
JtaTransactionManager
,
UserTransaction
Constructor Summary | |
---|---|
JtaTransactionObject(UserTransaction userTransaction)
Create a new JtaTransactionObject for the given JTA UserTransaction. |
Method Summary | |
---|---|
UserTransaction |
getUserTransaction()
Return the JTA UserTransaction object for the current transaction. |
boolean |
isRollbackOnly()
This implementation checks the UserTransaction's rollback-only flag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JtaTransactionObject(UserTransaction userTransaction)
userTransaction
- the JTA UserTransaction for the current transaction
(either a shared object or retrieved through a fresh per-transaction lookuip)Method Detail |
---|
public UserTransaction getUserTransaction()
public boolean isRollbackOnly()
isRollbackOnly
in interface SmartTransactionObject
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |