Class JtaTransactionObject
java.lang.Object
org.springframework.transaction.jta.JtaTransactionObject
- All Implemented Interfaces:
- Flushable,- SmartTransactionObject
JTA transaction object, representing a 
UserTransaction.
 Used as transaction object by Spring's JtaTransactionManager.
 Note: This is an SPI class, not intended to be used by applications.
- Since:
- 1.1
- Author:
- Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionJtaTransactionObject(UserTransaction userTransaction) Create a new JtaTransactionObject for the given JTA UserTransaction.
- 
Method SummaryModifier and TypeMethodDescriptionvoidflush()This implementation triggers flush callbacks, assuming that they will flush all affected ORM sessions.final UserTransactionReturn the JTA UserTransaction object for the current transaction.booleanThis implementation checks the UserTransaction's rollback-only flag.
- 
Constructor Details- 
JtaTransactionObjectCreate a new JtaTransactionObject for the given JTA UserTransaction.- Parameters:
- userTransaction- the JTA UserTransaction for the current transaction (either a shared object or retrieved through a fresh per-transaction lookup)
 
 
- 
- 
Method Details- 
getUserTransactionReturn the JTA UserTransaction object for the current transaction.
- 
isRollbackOnlypublic boolean isRollbackOnly()This implementation checks the UserTransaction's rollback-only flag.- Specified by:
- isRollbackOnlyin interface- SmartTransactionObject
- See Also:
 
- 
flushpublic void flush()This implementation triggers flush callbacks, assuming that they will flush all affected ORM sessions.- Specified by:
- flushin interface- Flushable
- Specified by:
- flushin interface- SmartTransactionObject
- See Also:
 
 
-