01: package org.polepos.teams.prevayler.sepang;
02:
03: import java.util.*;
04:
05: import org.prevayler.*;
06:
07: public class TreeCreationTransaction implements Transaction {
08:
09: private final int _treeDepth;
10:
11: TreeCreationTransaction(int treeDepth) {
12: _treeDepth = treeDepth;
13: }
14:
15: public void executeOn(Object sepangSystem, Date ignored) {
16: ((SepangSystem) sepangSystem).createTree(_treeDepth);
17: }
18:
19: private static final long serialVersionUID = 1L;
20: }
|