Spring LDAP Framework

org.springframework.ldap.transaction.compensating
Class RenameOperationRecorder

java.lang.Object
  extended by org.springframework.ldap.transaction.compensating.RenameOperationRecorder
All Implemented Interfaces:
CompensatingTransactionOperationRecorder

public class RenameOperationRecorder
extends Object
implements CompensatingTransactionOperationRecorder

A CompensatingTransactionOperationRecorder for keeping track of rename operations. Creates RenameOperationExecutor objects for rolling back.

Since:
1.2
Author:
Mattias Hellborg Arthursson

Constructor Summary
RenameOperationRecorder(LdapOperations ldapOperations)
          Constructor.
 
Method Summary
 CompensatingTransactionOperationExecutor recordOperation(Object[] args)
          Record information about the operation performed and return a corresponding CompensatingTransactionOperationExecutor to be used if the operation would need to be rolled back.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenameOperationRecorder

public RenameOperationRecorder(LdapOperations ldapOperations)
Constructor.

Parameters:
ldapOperations - The LdapOperations to supply to the created RebindOperationExecutor objects.
Method Detail

recordOperation

public CompensatingTransactionOperationExecutor recordOperation(Object[] args)
Description copied from interface: CompensatingTransactionOperationRecorder
Record information about the operation performed and return a corresponding CompensatingTransactionOperationExecutor to be used if the operation would need to be rolled back.

Specified by:
recordOperation in interface CompensatingTransactionOperationRecorder
Parameters:
args - The arguments that have been sent to the operation.
Returns:
A CompensatingTransactionOperationExecutor to be used if the recorded operation should need to be rolled back.

Spring LDAP Framework

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