public final class CompensatingTransactionUtils extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
public static void performOperation(Object synchronizationKey, Object target, Method method, Object[] args) throws Throwable
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.Throwable