public interface CompensatingTransactionOperationExecutor
CompensatingTransactionOperationRecorder
objects, 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
entry.
Modifier and Type | Method and Description |
---|---|
void |
commit()
Commit the operation.
|
void |
performOperation()
Perform the operation.
|
void |
rollback()
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.
|
void rollback()
void commit()
void performOperation()