接口 SmartTransactionObject
- 所有超级接口:
Flushable
public interface SmartTransactionObject extends Flushable
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.
- 从以下版本开始:
- 1.1
- 作者:
- Juergen Hoeller
- 另请参阅:
AbstractTransactionStatus.isRollbackOnly()
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
flush()
Flush the underlying sessions to the datastore, if applicable: for example, all affected Hibernate/JPA sessions.boolean
isRollbackOnly()
Return whether the transaction is internally marked as rollback-only.
方法详细资料
isRollbackOnly
boolean isRollbackOnly()
Return whether the transaction is internally marked as rollback-only. Can, for example, check the JTA UserTransaction.