| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DBObjectHandler
Internal object handler for the MemoryDatabase
| Method Summary | |
|---|---|
|  boolean | checkExists(ID objectId) | 
|  ID | createObject(ClientId clientId,
             ClassId classId)Creates a new object with the given class type. | 
|  StoredListObject | getListObject(ID objectId)Returns the stored jemm list object referred to by 'id' | 
|  StoredMapObject | getMapObject(ID objectId)Returns the stored jemm map object referred to by 'id' | 
|  int | getNoLocksHeld()Debug method to return the number of locks currently held | 
|  StoredObject | getObject(ID objectId) | 
|  int | getObjectCount() | 
|  StoredSetObject | getSetObject(ID objectId)Returns the stored jemm set object referred to by 'id' | 
|  StoredUserObject | getUserObject(ID objectId)Returns the stored user object referred to by 'id' | 
|  void | registerType(ClassId typeClassId,
             TypeHandler handler)Register a type handler for the given type class. | 
|  void | release(StoredObject object) | 
|  void | removeObject(ID id)Remote the object with the given id. | 
|  void | setObjectStatusListener(ObjectStatusListener objectStatusListener)Sets the object status listener. | 
|  ObjectSyncResp | synchroniseObject(ID objectId,
                  ObjectSyncData syncData) | 
|  void | update(StoredObject object)Update the given stored object, persisting its state. | 
| Methods inherited from interface org.sourceforge.jemm.database.ObjectAccessor | 
|---|
| getObjectChildren, idIterator | 
| Method Detail | 
|---|
void setObjectStatusListener(ObjectStatusListener objectStatusListener)
objectStatusListener - The new object status listener to use.StoredObject getObject(ID objectId)
getObject in interface ObjectAccessorvoid update(StoredObject object)
object - The object to updateStoredUserObject getUserObject(ID objectId)
getUserObject in interface ObjectAccessorobjectId - The id of the object to retrieve.
java.lang.IllegalArgumentException - If 'id' is null.
java.lang.IllegalStateException - If the object is not in the database (an internal error), or the type
         of the retrieved object is not a user object.StoredListObject getListObject(ID objectId)
ObjectAccessor
getListObject in interface ObjectAccessorStoredSetObject getSetObject(ID objectId)
ObjectAccessor
getSetObject in interface ObjectAccessorobjectId - The id of the set to retrieve.StoredMapObject getMapObject(ID objectId)
ObjectAccessor
getMapObject in interface ObjectAccessorobjectId - The id of the map to retrieve.
ID createObject(ClientId clientId,
                ClassId classId)
N.b. Once initialisation is complete - caller should call objectAccessor.initialisationFinished on the returned id.
createObject in interface ObjectAccessorclassId - The classId of the new object.
ObjectSyncResp synchroniseObject(ID objectId,
                                 ObjectSyncData syncData)
objectId - The id of the object being synchronizedsyncData - The synchronisation data, containing updated fields and current client version.
void removeObject(ID id)
removeObject in interface ObjectAccessorid - The id of the object to remove.int getObjectCount()
boolean checkExists(ID objectId)
checkExists in interface ObjectAccessorvoid release(StoredObject object)
release in interface ObjectAccessorint getNoLocksHeld()
void registerType(ClassId typeClassId,
                  TypeHandler handler)
typeClassId - The class id of the type class being handled.handler - The registered handler.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||