Mercurial > hg > blitz_condensed
comparison src/org/dancres/blitz/entry/ForcedCommit.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.entry; | |
2 | |
3 import java.io.IOException; | |
4 | |
5 import org.dancres.blitz.txn.TxnOp; | |
6 import org.dancres.blitz.txn.TxnState; | |
7 | |
8 class ForcedCommit implements TxnOp { | |
9 private OpInfo theInfo; | |
10 | |
11 ForcedCommit(OpInfo anInfo) { | |
12 theInfo = anInfo; | |
13 } | |
14 | |
15 public void restore(TxnState aState) throws IOException { | |
16 theInfo.restore(); | |
17 } | |
18 | |
19 public void commit(TxnState aState) throws IOException { | |
20 theInfo.commit(aState); | |
21 } | |
22 | |
23 public void abort(TxnState aState) throws IOException { | |
24 theInfo.abort(aState); | |
25 } | |
26 | |
27 public String toString() { | |
28 return " FC : " + theInfo; | |
29 } | |
30 } |