ozone core API

org.ozoneDB.core.DbRemote
Class DbCommand

java.lang.Object
  extended byorg.ozoneDB.DxLib.DxObject
      extended byorg.ozoneDB.core.DbRemote.DbCommand
All Implemented Interfaces:
java.lang.Cloneable, DxCompatible, java.io.Serializable
Direct Known Subclasses:
DbCacheChunk, DbCloseConn, DbCopyObj, DbCreateObj, DbDeleteObj, DbInvoke, DbModTimes, DbNameObj, DbNextID, DbObjectNames, DbObjForHandle, DbObjForName, DbOpen, DbProxyDeath, DbReloadClasses, DbTransaction, DbXMLForObj

public abstract class DbCommand
extends DxObject

This is the base class for command that can be send to an ozone server.

Version:
$Revision: 1.6 $Date: 2002/09/18 06:54:15 $
Author:
SMB
See Also:
Serialized Form

Field Summary
 Env env
          Environment of this object.
protected  ProxyObjectGate proxyObjectGate
          The database client proxy object gate which proxy objects leaving the database must be signed on.
 java.lang.Object result
          Result of the command.
 
Fields inherited from class org.ozoneDB.DxLib.DxObject
 
Constructor Summary
DbCommand()
           
 
Method Summary
protected  ProxyObjectGate getProxyObjectGate()
          Returns database client proxy object gate which proxy objects leaving the database must be signed on.
abstract  void perform(Transaction ta)
          Perform whatever has to be done for this command.
 void setProxyObjectGate(ProxyObjectGate proxyObjectGate)
           
 boolean shouldResultBeSentToClient()
          Returns wether a result should be sent to the client.
 java.lang.String 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

env

public transient Env env
Environment of this object. Will be set by InvokeServer.


result

public transient java.lang.Object result
Result of the command. This will only be used on the server side.


proxyObjectGate

protected transient ProxyObjectGate proxyObjectGate
The database client proxy object gate which proxy objects leaving the database must be signed on. This field is valid during the call of perform(org.ozoneDB.core.Transaction).

Constructor Detail

DbCommand

public DbCommand()
Method Detail

perform

public abstract void perform(Transaction ta)
                      throws java.lang.Exception
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.

Throws:
java.lang.Exception

toString

public java.lang.String toString()

setProxyObjectGate

public void setProxyObjectGate(ProxyObjectGate proxyObjectGate)

getProxyObjectGate

protected ProxyObjectGate getProxyObjectGate()
Returns database client proxy object gate which proxy objects leaving the database must be signed on. The return value is valid during the call of perform(org.ozoneDB.core.Transaction).


shouldResultBeSentToClient

public boolean shouldResultBeSentToClient()
Returns wether a result should be sent to the client.


ozone core API

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