public interface TransactionExecution
PlatformTransactionManager
modernizing it
to use enums, Slf4j and decoupling from Spring.
Common representation of the current state of a transaction.
Serves as base interface for TransactionStatus
as well as
ReactiveTransaction
.Modifier and Type | Method and Description |
---|---|
boolean |
isCompleted()
Return whether this transaction is completed, that is,
whether it has already been committed or rolled back.
|
boolean |
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.
|
boolean |
isRollbackOnly()
Return whether the transaction has been marked as rollback-only
(either by the application or by the transaction infrastructure).
|
void |
setRollbackOnly()
Set the transaction rollback-only.
|
boolean isNewTransaction()
void setRollbackOnly()
boolean isRollbackOnly()
boolean isCompleted()