|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Representation of the status of a transaction, consisting of a transaction object and some status flags.
Transactional code can use this to retrieve status information, and to programmatically request a rollback (instead of throwing an exception that causes an implicit rollback).
PlatformTransactionManager
,
TransactionCallback.doInTransaction(org.springframework.transaction.TransactionStatus)
,
TransactionInterceptor.currentTransactionStatus()
,
setRollbackOnly()
Method Summary | |
boolean |
isNewTransaction()
Return if the transaction is new, else participating in an existing transaction. |
boolean |
isRollbackOnly()
Return if the transaction has been set rollback-only. |
void |
setRollbackOnly()
Set the transaction rollback-only. |
Method Detail |
public boolean isNewTransaction()
public void setRollbackOnly()
For transactions managed by TransactionTemplate or TransactionInterceptor. An alternative way to trigger a rollback is throwing an application exception.
TransactionCallback.doInTransaction(org.springframework.transaction.TransactionStatus)
,
TransactionAttribute.rollbackOn(java.lang.Throwable)
public boolean isRollbackOnly()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |