org.prevayler.baptism
Class BadTransaction
java.lang.Object
org.prevayler.baptism.BadTransaction
- All Implemented Interfaces:
- Serializable, Transaction<org.prevayler.baptism.MyPrevalentSystem>
public class BadTransaction
- extends Object
- implements Transaction<org.prevayler.baptism.MyPrevalentSystem>
Simple transaction that demonstrates how to fall into the baptism problem.
- Since:
- Apr 6, 2004
- Author:
- Carlos Villela
- See Also:
- Serialized Form
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 |
BadTransaction
public BadTransaction(Calendar calendar,
long millis)
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.