public class

JtaTransactionObject

extends Object
implements SmartTransactionObject
java.lang.Object
   ↳ org.springframework.transaction.jta.JtaTransactionObject

Class Overview

JTA transaction object, representing a javax.transaction.UserTransaction. Used as transaction object by Spring's JtaTransactionManager.

Note: This is an SPI class, not intended to be used by applications.

See Also

Summary

Public Constructors
JtaTransactionObject(UserTransaction userTransaction)
Create a new JtaTransactionObject for the given JTA UserTransaction.
Public Methods
void flush()
This implementation triggers flush callbacks, assuming that they will flush all affected ORM sessions.
final UserTransaction getUserTransaction()
Return the JTA UserTransaction object for the current transaction.
boolean isRollbackOnly()
This implementation checks the UserTransaction's rollback-only flag.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.transaction.support.SmartTransactionObject

Public Constructors

public JtaTransactionObject (UserTransaction userTransaction)

Create 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 lookuip)

Public Methods

public void flush ()

This implementation triggers flush callbacks, assuming that they will flush all affected ORM sessions.

See Also

public final UserTransaction getUserTransaction ()

Return the JTA UserTransaction object for the current transaction.

public boolean isRollbackOnly ()

This implementation checks the UserTransaction's rollback-only flag.