Spring LDAP Framework

org.springframework.transaction.compensating.support
Class CompensatingTransactionUtils

java.lang.Object
  extended by org.springframework.transaction.compensating.support.CompensatingTransactionUtils

public class CompensatingTransactionUtils
extends Object

Common methods for use with compensating transactions.

Since:
1.2
Author:
Mattias Hellborg Arthursson

Method Summary
static void performOperation(Object synchronizationKey, Object target, Method method, Object[] args)
          Perform the specified operation, storing the state prior to the operation in order to enable commit/rollback later.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

performOperation

public static void performOperation(Object synchronizationKey,
                                    Object target,
                                    Method method,
                                    Object[] args)
                             throws Throwable
Perform the specified operation, storing the state prior to the operation in order to enable commit/rollback later. If no transaction is currently active, proceed with the original call on the target.

Parameters:
synchronizationKey - the transaction synchronization key we are operating on (typically something similar to a DataSource).
target - the actual target resource that should be used for invoking the operation on should no transaction be active.
method - name of the method to be invoked.
args - arguments with which the operation is invoked.
Throws:
Throwable

Spring LDAP Framework

Copyright © 2005-2010 The Spring LDAP Framework. All Rights Reserved.