public interface CompensatingTransactionOperationExecutor
CompensatingTransactionOperationRecorderobjects, supplying them with the information necessary for the respective operations.
The actual operations performed by the respective methods of this class might
not be what would originally be expected. E.g. one would expect that the
performOperation() method of a
CompensatingTransactionOperationExecutor implementation would actually delete
the entry, leaving it for the
rollback() method to recreate it using
data from the original entry. However, this will not always be possible. In
an LDAP system, for instance, it might not be possible to retrieve all the
stored data from the original entry. In that case, the
performOperation() method will instead move the entry to a temporary
location and leave it for the
commit() method to actually remove the
|Modifier and Type||Method and Description|
Commit the operation.
Perform the operation.
Rollback the operation, restoring state of the target as it was before the operation was performed using the information supplied on creation of this instance.