deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.feature.persistence.cache
Class FeatureStoreCache

java.lang.Object
  extended by org.deegree.feature.persistence.cache.FeatureStoreCache

public class FeatureStoreCache
extends Object

Cache for persistent GMLObject instances stored in a FeatureStore based on Java's SoftReference.

Version:
$Revision: 22192 $, $Date: 2010-01-25 20:00:06 +0100 (Mo, 25 Jan 2010) $
Author:
Markus Schneider, last edited by: $Author: mschneider $
See Also:
FeatureStore

Constructor Summary
FeatureStoreCache(int maxEntries)
           
 
Method Summary
 void add(GMLObject obj)
          Adds the given object to the cache.
 void clear()
          Clears the cache, removing all objects.
 GMLObject get(String id)
          Returns the object with the specified id (if it exists in the cache).
 void remove(String id)
          Removes the object with the specified id from the cache (if it exists).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureStoreCache

public FeatureStoreCache(int maxEntries)
Parameters:
maxEntries -
Method Detail

get

public GMLObject get(String id)
Returns the object with the specified id (if it exists in the cache).

Parameters:
id - id of the object
Returns:
the object with the specified id, or null if it is not present in the cache

add

public void add(GMLObject obj)
Adds the given object to the cache.

Parameters:
obj - object, must not be null

remove

public void remove(String id)
Removes the object with the specified id from the cache (if it exists).

Parameters:
id - id of the object, must not be null

clear

public void clear()
Clears the cache, removing all objects.


deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>