|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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. |
Object |
executeAndQuery(Object 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 Object executeAndQuery(Object prevalentSystem, Date timestamp) throws Exception
executeAndQuery
in interface TransactionWithQuery
system
- The prevalent system on which to execute the 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 |