ozone core API

org.ozoneDB.core.DbRemote
Class DbTransaction

java.lang.Object
  |
  +--org.ozoneDB.DxLib.DxObject
        |
        +--org.ozoneDB.core.DbRemote.DbCommand
              |
              +--org.ozoneDB.core.DbRemote.DbTransaction
All Implemented Interfaces:
java.lang.Cloneable, DxCompatible, java.io.Serializable

public class DbTransaction
extends DbCommand

Version:
$Revision: 1.1 $Date: 2001/12/18 10:31:30 $
Author:
SMB
See Also:
Serialized Form

Field Summary
private  int mode
           
static int MODE_ABORT
           
static int MODE_BEGIN
           
static int MODE_CHECKPOINT
           
static int MODE_COMMIT_ONEPHASE
           
static int MODE_COMMIT_TWOPHASE
           
static int MODE_PREPARE
           
static int MODE_STATUS
           
 
Fields inherited from class org.ozoneDB.core.DbRemote.DbCommand
env, proxyObjectGate, result
 
Fields inherited from class org.ozoneDB.DxLib.DxObject
 
Constructor Summary
DbTransaction(int _mode)
           
 
Method Summary
 int mode()
           
 void perform(Transaction ta)
          Perform whatever has to be done for this command.
 
Methods inherited from class org.ozoneDB.core.DbRemote.DbCommand
getProxyObjectGate, setProxyObjectGate, shouldResultBeSentToClient, toString
 
Methods inherited from class org.ozoneDB.DxLib.DxObject
clone, isLess
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ozoneDB.DxLib.DxCompatible
equals
 

Field Detail

MODE_BEGIN

public static final int MODE_BEGIN
See Also:
Constant Field Values

MODE_PREPARE

public static final int MODE_PREPARE
See Also:
Constant Field Values

MODE_COMMIT_ONEPHASE

public static final int MODE_COMMIT_ONEPHASE
See Also:
Constant Field Values

MODE_COMMIT_TWOPHASE

public static final int MODE_COMMIT_TWOPHASE
See Also:
Constant Field Values

MODE_CHECKPOINT

public static final int MODE_CHECKPOINT
See Also:
Constant Field Values

MODE_ABORT

public static final int MODE_ABORT
See Also:
Constant Field Values

MODE_STATUS

public static final int MODE_STATUS
See Also:
Constant Field Values

mode

private int mode
Constructor Detail

DbTransaction

public DbTransaction(int _mode)
Method Detail

mode

public int mode()

perform

public void perform(Transaction ta)
             throws java.lang.Exception
Description copied from class: DbCommand
Perform whatever has to be done for this command. This method is called within a transaction, within a thread. The result of the command goes in the result member.

Specified by:
perform in class DbCommand
java.lang.Exception

ozone core API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.