org.prevayler.demos.memento.commands
Class AccountCreation
java.lang.Object
org.prevayler.util.memento.MementoTransaction
org.prevayler.demos.memento.commands.AccountCreation
- All Implemented Interfaces:
- Serializable
public class AccountCreation
- extends MementoTransaction
- See Also:
- Serialized Form
Field Summary |
protected Bank |
bank
Set by findObjects(...) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bank
protected transient Bank bank
- Set by findObjects(...)
AccountCreation
public AccountCreation(String holder)
findObjects
protected void findObjects(Bank prevalentSystem)
- Description copied from class:
MementoTransaction
- Find the objects this command modifies.
- Specified by:
findObjects
in class MementoTransaction
- Parameters:
prevalentSystem
- The prevalent system in which to find the objects.
checkPrecondition
protected void checkPrecondition()
- Description copied from class:
MementoTransaction
- Check the precondition.
- Specified by:
checkPrecondition
in class MementoTransaction
createMementos
protected void createMementos(MementoCollector collector)
- Description copied from class:
MementoTransaction
- Create mementos for all objects which (possibly) get modified.
- Specified by:
createMementos
in class MementoTransaction
- Parameters:
collector
- The memento collector to which to add the mementos.
execute
protected Account execute(MementoCollector collector)
throws Account.InvalidHolder
- Description copied from class:
MementoTransaction
- Execute the actual command.
- Specified by:
execute
in class MementoTransaction
- Parameters:
collector
- The memento collector which can be used to execute subcommands.
- Returns:
- The object returned by the execution of this command. Most commands simply return null.
- Throws:
Account.InvalidHolder
Copyright © 2001-2013. All Rights Reserved.