org.springframework.transaction.jta
Class JtaTransactionObject
java.lang.Object
org.springframework.transaction.jta.JtaTransactionObject
- All Implemented Interfaces:
- SmartTransactionObject
- public class JtaTransactionObject
- extends Object
- implements SmartTransactionObject
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.
- Since:
- 1.1
- Author:
- Juergen Hoeller
- See Also:
JtaTransactionManager
,
UserTransaction
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JtaTransactionObject
public JtaTransactionObject(UserTransaction userTransaction)
getUserTransaction
public UserTransaction getUserTransaction()
isRollbackOnly
public boolean isRollbackOnly()
- Description copied from interface:
SmartTransactionObject
- Return whether the transaction is internally marked as rollback-only.
Can, for example, check the JTA UserTransaction.
- Specified by:
isRollbackOnly
in interface SmartTransactionObject
- See Also:
UserTransaction.getStatus()
,
Status.STATUS_MARKED_ROLLBACK
Copyright (C) 2003-2004 The Spring Framework Project.