org.vrspace.server
Class PassiveDBObject

java.lang.Object
  extended byjava.util.Observable
      extended byorg.vrspace.server.VRObject
          extended byorg.vrspace.server.DBObject
              extended byorg.vrspace.server.PassiveDBObject
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
Add, Transaction

public class PassiveDBObject
extends DBObject

Passive DBObject - cannot send nor receive events. If does, generates RequestException.


Field Summary
 
Fields inherited from class org.vrspace.server.DBObject
db
 
Fields inherited from class org.vrspace.server.VRObject
db_id, primitiveMap, primitives
 
Constructor Summary
PassiveDBObject()
           
 
Method Summary
 void sendEvent(Request r)
          Forwards request r to other clients, listeners added by Dispatcher.
 
Methods inherited from class org.vrspace.server.DBObject
delete, get, put, put
 
Methods inherited from class org.vrspace.server.VRObject
arrayToString, canRead, canWrite, clone, equals, fieldToText, fromString, fromText, getClassName, getField, getFields, getId, getID, getMemebers, hasField, hasMethod, isNew, newInstance, sendResponse, setField, setField, setField, setFields, setFields, setValue, stringToArray, toString, toText, toText, toText
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PassiveDBObject

public PassiveDBObject()
Method Detail

sendEvent

public void sendEvent(Request r)
               throws RequestException
Description copied from class: DBObject
Forwards request r to other clients, listeners added by Dispatcher. Sets the field r.eventName to r.eventValue. I field does not exist, forwards event anyway. Stores itself into the database if one is set. Throws RequestException if request target is another object, or if database exception occured. Calls setValue() method which actualy forwards the event.

Overrides:
sendEvent in class DBObject
Throws:
RequestException