comparison src/org/dancres/blitz/remote/nio/TransactionOp.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.remote.nio;
2
3 import net.jini.core.transaction.server.TransactionManager;
4
5 /**
6 */
7 public class TransactionOp implements Operation {
8 static final int PREPARE = 10;
9 static final int ABORT = 11;
10 static final int COMMIT = 12;
11 static final int PREPARE_COMMIT = 13;
12
13 private TransactionManager _mgr;
14 private long _id;
15 private int _op;
16
17 TransactionOp(int anOp, TransactionManager aMgr, long anId) {
18 _op = anOp;
19 _mgr = aMgr;
20 _id = anId;
21 }
22
23 int getOperation() {
24 return _op;
25 }
26
27 TransactionManager getMgr() {
28 return _mgr;
29 }
30
31 long getId() {
32 return _id;
33 }
34 }