Package org.springframework.transaction
Interface TransactionExecution
- All Known Subinterfaces:
- ReactiveTransaction,- TransactionStatus
- All Known Implementing Classes:
- AbstractTransactionStatus,- DefaultTransactionStatus,- GenericReactiveTransaction,- SimpleTransactionStatus
public interface TransactionExecution
Common representation of the current state of a transaction.
 Serves as base interface for 
TransactionStatus as well as
 ReactiveTransaction.- Since:
- 5.2
- Author:
- Juergen Hoeller
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturn whether this transaction is completed, that is, whether it has already been committed or rolled back.booleanReturn whether the present transaction is new; otherwise participating in an existing transaction, or potentially not running in an actual transaction in the first place.booleanReturn whether the transaction has been marked as rollback-only (either by the application or by the transaction infrastructure).voidSet the transaction rollback-only.
- 
Method Details- 
isNewTransactionboolean isNewTransaction()Return whether the present transaction is new; otherwise participating in an existing transaction, or potentially not running in an actual transaction in the first place.
- 
setRollbackOnlyvoid setRollbackOnly()Set the transaction rollback-only. This instructs the transaction manager that the only possible outcome of the transaction may be a rollback, as alternative to throwing an exception which would in turn trigger a rollback.
- 
isRollbackOnlyboolean isRollbackOnly()Return whether the transaction has been marked as rollback-only (either by the application or by the transaction infrastructure).
- 
isCompletedboolean isCompleted()Return whether this transaction is completed, that is, whether it has already been committed or rolled back.
 
-