| org.prevayler.Command
All known Subclasses: org.nthx.pat.GenericCommand, org.nthx.pat.BOStorageCommand,
Command | public interface Command extends Serializable(Code) | | An atomic transaction to be executed on a PrevalentSystem. Any operation which changes the observable state of a PrevalentSystem must be encapsulated as a Command.
|
execute | public Serializable execute(PrevalentSystem system) throws Throwable(Code) | | Executes this command on the received system. See org.prevayler.demos for examples. The returned object has to be Serializable in preparation for future versions of Prevayler that will provide fault-tolerance through system replicas.
The object returned by the execution of this command. Most commands simply return null. |
|
|