|
Spring LDAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CompensatingTransactionOperationExecutor
Responsible for executing a single recorded operation as well as committing
or rolling it back, depending on the transaction outcome. Instances of this
interface are constructed by 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.
Method Summary | |
---|---|
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. |
Method Detail |
---|
void rollback()
void commit()
void performOperation()
|
Spring LDAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |