Class RelatedNodesCache

  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byorg.mmbase.util.LRUHashtable
              extended byorg.mmbase.cache.Cache
                  extended byorg.mmbase.cache.QueryResultCache
                      extended byorg.mmbase.cache.RelatedNodesCache
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map,, SizeMeasurable

public class RelatedNodesCache
extends QueryResultCache

Query result cache used for getRelatedNodes from MMObjectNodes. Entries are invalidated on the normal QueryResultCache way, but also if the one node from which the related nodes were requested is removed from the Node Cache itself.

$Id:,v 1.3 2003/08/29 12:12:27 keesj Exp $
Michiel Meeuwissen
See Also:
MMObjectNode.getRelatedNodes(), Serialized Form

Nested Class Summary
Nested classes inherited from class org.mmbase.util.LRUHashtable
LRUHashtable.LRUEntry, LRUHashtable.LRUEntrySet, LRUHashtable.LRUEntrySetIterator
Field Summary
Fields inherited from class org.mmbase.cache.Cache
Method Summary
static RelatedNodesCache getCache()
 java.lang.String getDescription()
          Gives a description for this cache type.
 java.lang.String getName()
          Returns a name for this cache type.
 java.lang.Object put(SearchQuery query, java.util.List queryResult)
          Puts a search result in this cache.
 java.lang.Object remove(java.lang.Object key)
          Removes an object from the cache.
Methods inherited from class org.mmbase.cache.QueryResultCache
invalidateAll, put, toString
Methods inherited from class org.mmbase.cache.Cache
get, getByteSize, getByteSize, getCache, getCaches, getDefaultMaxEntrySize, getMaxEntrySize, getTotalByteSize, isActive, main, putCache, putCache, setActive
Methods inherited from class org.mmbase.util.LRUHashtable
clear, clone, elements, entrySet, getCount, getHits, getMisses, getOrderedElements, getOrderedElements, getOrderedEntries, getOrderedEntries, getPuts, getRatio, getSize, getStats, keySet, setSize, size, toString, values
Methods inherited from class java.util.Hashtable
contains, containsKey, containsValue, equals, hashCode, isEmpty, keys, putAll, rehash
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait

Method Detail


public static RelatedNodesCache getCache()


public java.lang.String getName()
Description copied from class: Cache
Returns a name for this cache type. Default it is the class name, but this normally will be overriden.

getName in class Cache


public java.lang.String getDescription()
Description copied from class: Cache
Gives a description for this cache type. This can be used in cache overviews.

getDescription in class Cache


public java.lang.Object put(SearchQuery query,
                            java.util.List queryResult)
Description copied from class: QueryResultCache
Puts a search result in this cache.

put in class QueryResultCache


public java.lang.Object remove(java.lang.Object key)
Description copied from class: QueryResultCache
Removes an object from the cache. It alsos remove the watch from the observers which are watching this entry.

Specified by:
remove in interface java.util.Map
remove in class QueryResultCache
key - A SearchQuery object.

MMBase build