org.prevayler.contrib.facade
Class ProxyTransactionWithQuery

java.lang.Object
  extended by org.prevayler.contrib.facade.AbstractProxy
      extended by org.prevayler.contrib.facade.ProxyTransactionWithQuery
All Implemented Interfaces:
Serializable, TransactionWithQuery<Serializable,Object>

public class ProxyTransactionWithQuery
extends AbstractProxy
implements TransactionWithQuery<Serializable,Object>

Proxy representation of a Prevayler TransactionWithQuery

Since:
0_1
Author:
Jay Sachs [jay@contravariant.org], Jacob Kjome [hoju@visi.com]
See Also:
Serialized Form

Constructor Summary
ProxyTransactionWithQuery(Method p_method, Object[] p_args, TransactionHint p_hint)
           
 
Method Summary
 Object executeAndQuery(Serializable p_prevalentSystem, Date p_timestamp)
          Performs the necessary modifications on the given prevalentSystem and also returns an object or throws an Exception.
 
Methods inherited from class org.prevayler.contrib.facade.AbstractProxy
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyTransactionWithQuery

public ProxyTransactionWithQuery(Method p_method,
                                 Object[] p_args,
                                 TransactionHint p_hint)
Since:
0_2
Method Detail

executeAndQuery

public Object executeAndQuery(Serializable p_prevalentSystem,
                              Date p_timestamp)
                       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<Serializable,Object>
Parameters:
p_prevalentSystem - The system on which this TransactionWithQuery will execute.
p_timestamp - 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.