Mercurial > hg > blitz_condensed
comparison src/org/dancres/blitz/txn/CommitCommand.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 org.prevayler.Command; | |
6 import org.prevayler.PrevalentSystem; | |
7 | |
8 /** | |
9 Command to issue commit against transaction held in TxnManagerState | |
10 */ | |
11 class CommitCommand implements Command { | |
12 static final long serialVersionUID = 347070110605931202L; | |
13 | |
14 private TxnId theId; | |
15 | |
16 CommitCommand(TxnId anId) { | |
17 theId = anId; | |
18 } | |
19 | |
20 public Serializable execute(PrevalentSystem aSystem) throws Exception { | |
21 TxnManagerState mySystem = (TxnManagerState) aSystem; | |
22 | |
23 mySystem.commit(theId); | |
24 | |
25 return null; | |
26 } | |
27 | |
28 public String toString() { | |
29 return " CM : " + theId; | |
30 } | |
31 } |