|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.prevayler.util.memento.MementoManagerCommand
public class MementoManagerCommand
This transaction manages the mementos and restores them in case of a failure.
Constructor Summary | |
---|---|
MementoManagerCommand(MementoTransaction transaction)
Create a memento manager transaction. |
Method Summary | |
---|---|
void |
addMemento(Memento memento)
Add a memento to the memento collection. |
Account |
executeAndQuery(Bank prevalentSystem,
Date timestamp)
Executes this transaction on the received system. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MementoManagerCommand(MementoTransaction transaction)
transaction
- The actual transaction to execute.Method Detail |
---|
public Account executeAndQuery(Bank prevalentSystem, Date timestamp) throws Exception
executeAndQuery
in interface TransactionWithQuery<Bank,Account>
prevalentSystem
- The prevalent system on which to execute the transaction.timestamp
- The time at which this TransactionWithQuery is being executed. Every Transaction executes completely within a single moment in time. Logically, a Prevalent System's time does not pass during the execution of a Transaction.
Exception
public void addMemento(Memento memento)
addMemento
in interface MementoCollector
memento
- The memento to add.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |