public interface TransactionStatus
Modifier and Type | Interface and Description |
---|---|
static class |
TransactionStatus.IllegalTransactionStatusException
Exception thrown when an operation is performed on a transaction but the transaction is in an illegal status
according to the transaction semantics.
|
static class |
TransactionStatus.TransactionException
Exception related to a transaction operation error.
|
static class |
TransactionStatus.TransactionNotSupportedException
Exception throws when transaction are not actually supported by current implementation and/or driver.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isActive()
Get whether the transaction is active, that is, whether it is started and configured.
|
boolean |
isCompleted()
Get whether this transaction is completed, that is, whether it has already been committed or rolled back.
|
boolean |
isNew()
Return whether this transaction is new.
|
boolean |
isRollbackOnly()
Return whether the transaction has been marked as rollback-only.
|
void |
setRollbackOnly()
Mark this transaction so that the only possible outcome of the transaction is for the transaction to be rolled
back.
|
void setRollbackOnly()
TransactionStatus.IllegalTransactionStatusException
- If the transaction is already completed (that is, committed or rolled
back)boolean isRollbackOnly()
true
if the transaction has been marked as rollback-only, false
otherwiseboolean isActive()
boolean isCompleted()
true
if the transaction is completed, false
otherwiseboolean isNew()
true
if this is a new transaction, false
if participating in an existing
transactionCopyright © 2019 The Holon Platform. All rights reserved.