|
Prevayler™
The Free Software Prevalence Layer |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Transaction that also returns a result or throws an Exception after executing.
A "PersonCreation" Transaction, for example, may return the Person it created. Without this, to retrieve the newly created Person, the caller would have to issue a Query like: "What was the last Person I created?".
Looking at the Prevayler demos is by far the best way to learn how to use this class.
Transaction
Method Summary | |
java.lang.Object |
executeAndQuery(java.lang.Object prevalentSystem,
java.util.Date executionTime)
Performs the necessary modifications on the given prevalentSystem and also returns an Object or throws an Exception. |
Method Detail |
public java.lang.Object executeAndQuery(java.lang.Object prevalentSystem, java.util.Date executionTime) throws java.lang.Exception
prevalentSystem
- The system on which this TransactionWithQuery will execute.executionTime
- 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.
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |