01: // You can redistribute this software and/or modify it under the terms of
02: // the Ozone Core License version 1 published by ozone-db.org.
03: //
04: // The original code and portions created by SMB are
05: // Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
06: //
07: // $Id: DbTransaction.java,v 1.1 2001/12/18 10:31:30 per_nyfelt Exp $
08:
09: package org.ozoneDB.core.DbRemote;
10:
11: import org.ozoneDB.core.*;
12:
13: /**
14: * @author <a href="http://www.softwarebuero.de/">SMB</a>
15: * @version $Revision: 1.1 $Date: 2001/12/18 10:31:30 $
16: */
17: public class DbTransaction extends DbCommand {
18:
19: public final static int MODE_BEGIN = 1;
20: public final static int MODE_PREPARE = 2;
21: public final static int MODE_COMMIT_ONEPHASE = 3;
22: public final static int MODE_COMMIT_TWOPHASE = 4;
23: public final static int MODE_CHECKPOINT = 5;
24: public final static int MODE_ABORT = 6;
25: public final static int MODE_STATUS = 7;
26:
27: private int mode;
28:
29: public DbTransaction(int _mode) {
30: mode = _mode;
31: }
32:
33: public int mode() {
34: return mode;
35: }
36:
37: public void perform(Transaction ta) throws Exception {
38: //this command will be catched by the TransactionManager
39: }
40: }
|