org.prevayler.implementation
Class AppendTransactionWithQuery

java.lang.Object
  extended by org.prevayler.implementation.AppendTransactionWithQuery
All Implemented Interfaces:
Serializable, TransactionWithQuery<StringBuffer,String>

public class AppendTransactionWithQuery
extends Object
implements TransactionWithQuery<StringBuffer,String>

See Also:
Serialized Form

Field Summary
 String toAdd
           
 
Constructor Summary
AppendTransactionWithQuery(String toAdd)
           
 
Method Summary
 String executeAndQuery(StringBuffer prevalentSystem, Date executionTime)
          Performs the necessary modifications on the given prevalentSystem and also returns an object or throws an Exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

toAdd

public String toAdd
Constructor Detail

AppendTransactionWithQuery

public AppendTransactionWithQuery(String toAdd)
Method Detail

executeAndQuery

public String executeAndQuery(StringBuffer prevalentSystem,
                              Date executionTime)
                       throws Exception
Description copied from interface: TransactionWithQuery
Performs the necessary modifications on the given prevalentSystem and also returns an object or throws an Exception. This method is called by Prevayler.execute(TransactionWithQuery) to execute this TransactionWithQuery on the given Prevalent System. See org.prevayler.demos for usage examples.

Specified by:
executeAndQuery in interface TransactionWithQuery<StringBuffer,String>
Parameters:
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.
Throws:
Exception


Copyright © 2001-2013. All Rights Reserved.