|
Spring LDAP Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.transaction.compensating.support.DefaultCompensatingTransactionOperationManager
public class DefaultCompensatingTransactionOperationManager
Default implementation of CompensatingTransactionOperationManager.
Manages a stack of CompensatingTransactionOperationExecutor objects
and performs rollback of these in the reverse order.
| Constructor Summary | |
|---|---|
DefaultCompensatingTransactionOperationManager(CompensatingTransactionOperationFactory operationFactory)
Set the CompensatingTransactionOperationFactory to use. |
|
| Method Summary | |
|---|---|
void |
commit()
Commit all recorded operations. |
protected Stack |
getOperationExecutors()
Get the rollback operations. |
void |
performOperation(Object resource,
String operation,
Object[] args)
Indicates that the supplied operation (method name) is to be performed. |
void |
rollback()
Rollback all recorded operations by performing each of the recorded rollback operations. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCompensatingTransactionOperationManager(CompensatingTransactionOperationFactory operationFactory)
CompensatingTransactionOperationFactory to use.
operationFactory - the CompensatingTransactionOperationFactory.| Method Detail |
|---|
public void performOperation(Object resource,
String operation,
Object[] args)
CompensatingTransactionOperationManager
performOperation in interface CompensatingTransactionOperationManagerresource - the target resource to perform the operation on.operation - The method to be invoked.args - Arguments supplied to the method.public void rollback()
CompensatingTransactionOperationManager
rollback in interface CompensatingTransactionOperationManagerprotected Stack getOperationExecutors()
public void commit()
CompensatingTransactionOperationManager
commit in interface CompensatingTransactionOperationManager
|
Spring LDAP Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||