KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > core > DbRemote > DbTransaction


1 // You can redistribute this software and/or modify it under the terms of
2
// the Ozone Core License version 1 published by ozone-db.org.
3
//
4
// The original code and portions created by SMB are
5
// Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
6
//
7
// $Id: DbTransaction.java,v 1.2 2002/08/27 08:32:26 per_nyfelt Exp $
8

9 package org.ozoneDB.core.DbRemote;
10
11 import org.ozoneDB.core.*;
12
13
14 /**
15  * @author <a HREF="http://www.softwarebuero.de/">SMB</a>
16  * @version $Revision: 1.2 $Date: 2002/08/27 08:32:26 $
17  */

18 public class DbTransaction extends DbCommand {
19
20     public final static int MODE_BEGIN = 1;
21     public final static int MODE_PREPARE = 2;
22     public final static int MODE_COMMIT_ONEPHASE = 3;
23     public final static int MODE_COMMIT_TWOPHASE = 4;
24     public final static int MODE_CHECKPOINT = 5;
25     public final static int MODE_ABORT = 6;
26     public final static int MODE_STATUS = 7;
27
28     private int mode;
29
30
31     public DbTransaction( int _mode ) {
32         mode = _mode;
33     }
34
35
36     public int mode() {
37         return mode;
38     }
39
40
41     public void perform( Transaction ta ) throws Exception JavaDoc {
42     //this command will be catched by the TransactionManager
43
}
44 }
45
Popular Tags