|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--arlut.csd.ganymede.client.objectCache
Implements an information cache for the client. Client code can store information about objects on the server here and can use it wherever.
objectCache maintains a mapping between hash keys (typically
Short values corresponding to object type ids on the server) and
objectList objects
which track status of objects for that hash key.
| Field Summary | |
(package private) static boolean |
debug
|
(package private) java.util.Hashtable |
idMap
|
| Constructor Summary | |
objectCache()
|
|
| Method Summary | |
void |
augmentList(java.lang.Object key,
arlut.csd.ganymede.QueryResult qr)
This method is intended to augment an existing list with non-editable object handles. |
void |
clearCaches()
|
boolean |
containsList(java.lang.Object key)
|
boolean |
containsNonEditable(java.lang.Object key)
This method returns true if the specified list contains any non-editable handles. |
arlut.csd.ganymede.ObjectHandle |
getInvidHandle(java.lang.Object key,
arlut.csd.ganymede.Invid invid)
This method retrieves an object handle matching the given invid from the specified object list. |
java.util.Vector |
getLabels(java.lang.Object key,
boolean includeInactives)
This method returns a sorted Vector of object labels. |
java.util.Vector |
getLabels(java.lang.Object key,
boolean includeInactives,
boolean includeNonEditables)
This method returns a sorted Vector of object labels. |
arlut.csd.ganymede.client.objectList |
getList(java.lang.Object key)
|
java.util.Vector |
getListHandles(java.lang.Object key,
boolean includeInactives)
This method returns a sorted Vector of listHandles for the cache for <key>. |
java.util.Vector |
getListHandles(java.lang.Object key,
boolean includeInactives,
boolean includeNonEditables)
This method returns a sorted Vector of listHandles for the cache for <key>. |
void |
putList(java.lang.Object key,
arlut.csd.ganymede.client.objectList list)
|
void |
putList(java.lang.Object key,
arlut.csd.ganymede.QueryResult qr)
|
void |
removeList(java.lang.Object key)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static final boolean debug
java.util.Hashtable idMap
| Constructor Detail |
public objectCache()
| Method Detail |
public boolean containsList(java.lang.Object key)
public arlut.csd.ganymede.client.objectList getList(java.lang.Object key)
public boolean containsNonEditable(java.lang.Object key)
public java.util.Vector getListHandles(java.lang.Object key,
boolean includeInactives)
includeInactives - if false, the list returned will not include entries
for any inactive objects
public java.util.Vector getListHandles(java.lang.Object key,
boolean includeInactives,
boolean includeNonEditables)
includeInactives - if false, the list returned will not include entries
for any inactive objectsincludeNonEditables - if false, the list returned will not
include entries for any non-editable objects
public java.util.Vector getLabels(java.lang.Object key,
boolean includeInactives)
includeInactives - if false, the list returned will not
include entries for any inactive objects
public java.util.Vector getLabels(java.lang.Object key,
boolean includeInactives,
boolean includeNonEditables)
includeInactives - if false, the list returned will not
include entries for any inactive objectsincludeNonEditables - if false, the list returned will not
include entries for any non-editable objects
public arlut.csd.ganymede.ObjectHandle getInvidHandle(java.lang.Object key,
arlut.csd.ganymede.Invid invid)
This method retrieves an object handle matching the given invid from the specified object list.
This isn't the fastest operation, but hopefully won't be too bad.
public void putList(java.lang.Object key,
arlut.csd.ganymede.QueryResult qr)
public void augmentList(java.lang.Object key,
arlut.csd.ganymede.QueryResult qr)
public void putList(java.lang.Object key,
arlut.csd.ganymede.client.objectList list)
public void removeList(java.lang.Object key)
public void clearCaches()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||