public interface

SmartTransactionObject

org.springframework.transaction.support.SmartTransactionObject
Known Indirect Subclasses

Class Overview

Interface to be implemented by transaction objects that are able to return an internal rollback-only marker, typically from a another transaction that has participated and marked it as rollback-only.

Autodetected by DefaultTransactionStatus, to always return a current rollbackOnly flag even if not resulting from the current TransactionStatus.

See Also

Summary

Public Methods
abstract void flush()
Flush the underlying sessions to the datastore, if applicable: for example, all affected Hibernate/JPA sessions.
abstract boolean isRollbackOnly()
Return whether the transaction is internally marked as rollback-only.

Public Methods

public abstract void flush ()

Flush the underlying sessions to the datastore, if applicable: for example, all affected Hibernate/JPA sessions.

public abstract boolean isRollbackOnly ()

Return whether the transaction is internally marked as rollback-only. Can, for example, check the JTA UserTransaction.