Example usage for Java org.springframework.transaction.support DefaultTransactionStatus fields, constructors, methods, implement or subclass
The text is from its open source code.
DefaultTransactionStatus(@Nullable Object transaction, boolean newTransaction, boolean newSynchronization, boolean readOnly, boolean debug, @Nullable Object suspendedResources) Create a new DefaultTransactionStatus instance. |
void | createAndHoldSavepoint() Create a savepoint and hold it for the transaction. |
void | flush() Delegate the flushing to the transaction object, provided that the latter implements the SmartTransactionObject interface. |
Object | getSuspendedResources() Return the holder for resources that have been suspended for this transaction, if any. |
Object | getTransaction() Return the underlying transaction object. |
boolean | hasSavepoint() |
boolean | hasTransaction() Return whether there is an actual transaction active. |
boolean | isCompleted() |
boolean | isDebug() Return whether the progress of this transaction is debugged. |
boolean | isGlobalRollbackOnly() Determine the rollback-only flag via checking the transaction object, provided that the latter implements the SmartTransactionObject interface. |
boolean | isLocalRollbackOnly() Determine the rollback-only flag via checking this TransactionStatus. |
boolean | isNewSynchronization() Return if a new transaction synchronization has been opened for this transaction. |
boolean | isNewTransaction() |
boolean | isReadOnly() Return if this transaction is defined as read-only transaction. |
boolean | isRollbackOnly() Determine the rollback-only flag via checking both the local rollback-only flag of this TransactionStatus and the global rollback-only flag of the underlying transaction, if any. |
boolean | isTransactionSavepointManager() Return whether the underlying transaction implements the SavepointManager interface and therefore supports savepoints. |
void | releaseHeldSavepoint() Release the savepoint that is held for the transaction. |
void | rollbackToHeldSavepoint() Roll back to the savepoint that is held for the transaction and release the savepoint right afterwards. |
void | setCompleted() Mark this transaction as completed, that is, committed or rolled back. |
void | setRollbackOnly() |