站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.0.5 API 文档英文版

SmartTransactionObject (Spring Framework API 2.0) - Spring Framework 2.0.5 API 文档英文版

The Spring Framework

org.springframework.transaction.support
Interface SmartTransactionObject

All Known Implementing Classes:
JdbcTransactionObjectSupport, JtaTransactionObject

public interface SmartTransactionObject

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.

Since:
1.1
Author:
Juergen Hoeller
See Also:
AbstractTransactionStatus.isRollbackOnly()

Method Summary
 boolean isRollbackOnly()
          Return whether the transaction is internally marked as rollback-only.
 

Method Detail

isRollbackOnly

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

See Also:
UserTransaction.getStatus(), Status.STATUS_MARKED_ROLLBACK

The Spring Framework

Copyright © 2002-2007 The Spring Framework.