Mercurial > hg > blitz_condensed
comparison src/org/dancres/blitz/txn/AbortAllCommand.java @ 0:3dc0c5604566
Initial checkin of blitz 2.0 fcs - no installer yet.
author | Dan Creswell <dan.creswell@gmail.com> |
---|---|
date | Sat, 21 Mar 2009 11:00:06 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3dc0c5604566 |
---|---|
1 package org.dancres.blitz.txn; | |
2 | |
3 import java.io.Serializable; | |
4 | |
5 import java.util.logging.Level; | |
6 | |
7 import net.jini.core.transaction.UnknownTransactionException; | |
8 | |
9 import org.prevayler.Command; | |
10 import org.prevayler.PrevalentSystem; | |
11 | |
12 /** | |
13 Command to issue abort against transaction held in TxnManagerState | |
14 */ | |
15 class AbortAllCommand implements Command { | |
16 AbortAllCommand() { | |
17 } | |
18 | |
19 public Serializable execute(PrevalentSystem aSystem) throws Exception { | |
20 TxnManagerState mySystem = (TxnManagerState) aSystem; | |
21 | |
22 mySystem.abortAll(); | |
23 | |
24 return null; | |
25 } | |
26 | |
27 public String toString() { | |
28 return " AA"; | |
29 } | |
30 } |