org.deegree.feature.persistence.cache
Interface FeatureStoreCache

All Known Implementing Classes:
SimpleFeatureStoreCache

public interface FeatureStoreCache

Cache for persistent GMLObject instances that are stored in a FeatureStore.

Version:
$Revision: 31639 $, $Date: 2011-08-24 21:02:10 +0200 (Wed, 24 Aug 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $
See Also:
FeatureStore

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).
 

Method Detail

get

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

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

add

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

Parameters:
obj - object, must not be null

remove

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

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



Copyright © 2011. All Rights Reserved.