java.lang.Object
java.util.Observable
org.vrspace.server.VRObject
org.vrspace.server.DBObject
org.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.
| Fields inherited from class org.vrspace.server.DBObject |
db |
|
Method Summary |
void |
sendEvent(Request r)
Forwards request r to other clients, listeners added by Dispatcher. |
| 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, lock, lockClass, newInstance, sendResponse, setField, setField, setField, setFields, setFields, setValue, stringToArray, toString, toText, toText, toText, unlock, unlockClass |
PassiveDBObject
public PassiveDBObject()
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