Example usage for org.springframework.transaction.support TransactionSynchronizationUtils invokeAfterCompletion

List of usage examples for org.springframework.transaction.support TransactionSynchronizationUtils invokeAfterCompletion

Introduction

In this page you can find the example usage for org.springframework.transaction.support TransactionSynchronizationUtils invokeAfterCompletion.

Prototype

public static void invokeAfterCompletion(@Nullable List<TransactionSynchronization> synchronizations,
        int completionStatus) 

Source Link

Document

Actually invoke the afterCompletion methods of the given Spring TransactionSynchronization objects.

Usage

From source file:org.springframework.transaction.support.AbstractPlatformTransactionManager.java

/**
 * Actually invoke the {@code afterCompletion} methods of the
 * given Spring TransactionSynchronization objects.
 * <p>To be called by this abstract manager itself, or by special implementations
 * of the {@code registerAfterCompletionWithExistingTransaction} callback.
 * @param synchronizations List of TransactionSynchronization objects
 * @param completionStatus the completion status according to the
 * constants in the TransactionSynchronization interface
 * @see #registerAfterCompletionWithExistingTransaction(Object, java.util.List)
 * @see TransactionSynchronization#STATUS_COMMITTED
 * @see TransactionSynchronization#STATUS_ROLLED_BACK
 * @see TransactionSynchronization#STATUS_UNKNOWN
 *///from w  ww.  j  av  a 2  s  .co  m
protected final void invokeAfterCompletion(List<TransactionSynchronization> synchronizations,
        int completionStatus) {
    TransactionSynchronizationUtils.invokeAfterCompletion(synchronizations, completionStatus);
}