View Javadoc
1 package org.neuclear.ledger.prevalent; 2 3 4 import org.neuclear.ledger.*; 5 6 import java.util.Date; 7 8 9 /*** 10 * Created by IntelliJ IDEA. 11 * User: pelleb 12 * Date: Mar 20, 2004 13 * Time: 1:31:57 PM 14 * To change this template use File | Settings | File Templates. 15 */ 16 public class CancelHeldTransaction implements org.prevayler.Transaction{ 17 18 final PostedHeldTransaction tran; 19 20 21 CancelHeldTransaction(PostedHeldTransaction tran) { 22 this.tran = tran; 23 } 24 25 26 /*** 27 * This method is called by Prevayler.execute(Transaction) to execute this Transaction on the given Prevalent System. See org.prevayler.demos for usage examples. 28 * 29 * @param prevalentSystem The system on which this Transaction will execute. 30 * @param 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. 31 */ 32 public void executeOn(Object prevalentSystem, Date executionTime) { 33 LedgerSystem system=(LedgerSystem) prevalentSystem; 34 HoldTable table=system.getHoldTable(); 35 System.out.println("Execute Cancel"); 36 table.expire(tran); 37 } 38 }

This page was automatically generated by Maven