Interface InternalTransaction<T>

Type Parameters:
T - The transaction type
All Superinterfaces:
TransactionExecution, TransactionStatus<T>
All Known Implementing Classes:
AbstractInternalTransaction, DefaultTransactionStatus

@Internal public interface InternalTransaction<T> extends TransactionStatus<T>
The internal transaction representation.
Since:
4.0.0
Author:
Denis Stepanov
  • Method Details

    • isNestedTransaction

      boolean isNestedTransaction()
      Check if the current TX is nested.
      Returns:
      true if is nested transaction
      Since:
      4.1.0
    • isLocalRollbackOnly

      boolean isLocalRollbackOnly()
      Determine the rollback-only flag via checking this TransactionStatus.

      Will only return "true" if the application called setRollbackOnly on this TransactionStatus object.

      Returns:
      Whether is local rollback
    • isGlobalRollbackOnly

      boolean isGlobalRollbackOnly()
      Template method for determining the global rollback-only flag of the underlying transaction, if any.

      This implementation always returns false.

      Returns:
      Whether is global rollback
    • suspend

      default void suspend()
    • resume

      default void resume()
    • triggerBeforeCommit

      void triggerBeforeCommit()
    • triggerAfterCommit

      void triggerAfterCommit()
    • triggerBeforeCompletion

      void triggerBeforeCompletion()
    • triggerAfterCompletion

      void triggerAfterCompletion(TransactionSynchronization.Status status)
    • cleanupAfterCompletion

      void cleanupAfterCompletion()