org.prevayler.baptism
Class GoodTransaction

java.lang.Object
  extended by org.prevayler.baptism.GoodTransaction
All Implemented Interfaces:
Serializable, Transaction<org.prevayler.baptism.MyPrevalentSystem>

public class GoodTransaction
extends Object
implements Transaction<org.prevayler.baptism.MyPrevalentSystem>

Simple transaction that demonstrates how to avoid the baptism problem.

Since:
Apr 6, 2004
Author:
Carlos Villela
See Also:
Serialized Form

Constructor Summary
GoodTransaction(String id, long millis)
           
 
Method Summary
 void executeOn(org.prevayler.baptism.MyPrevalentSystem prevalentSystem, Date executionTime)
          This method is called by Prevayler.execute(Transaction) to execute this Transaction on the given Prevalent System.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoodTransaction

public GoodTransaction(String id,
                       long millis)
Method Detail

executeOn

public void executeOn(org.prevayler.baptism.MyPrevalentSystem prevalentSystem,
                      Date executionTime)
Description copied from interface: Transaction
This method is called by Prevayler.execute(Transaction) to execute this Transaction on the given Prevalent System. See org.prevayler.demos for usage examples.

Specified by:
executeOn in interface Transaction<org.prevayler.baptism.MyPrevalentSystem>
Parameters:
prevalentSystem - The system on which this Transaction will execute.
executionTime - The time at which this Transaction 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.


Copyright © 2001-2013. All Rights Reserved.