org.deegree.feature.persistence.cache
Interface BBoxCache

All Known Implementing Classes:
BBoxPropertiesCache

public interface BBoxCache

Cache for Envelopes of FeatureTypes stored in a FeatureStore.

Version:
$Revision$
Author:
Markus Schneider, last edited by: $Author: mschneider $
See Also:
FeatureStore

Method Summary
 boolean contains(QName ftName)
          Returns true, if the the specified feature type is known to the cache.
 Envelope get(QName ftName)
          Returns the cached envelope for features of the specified type.
 void persist()
          Ensures that the cache is persisted.
 void set(QName ftName, Envelope bbox)
          Updates the envelope for the specified type.
 

Method Detail

get

Envelope get(QName ftName)
Returns the cached envelope for features of the specified type.

Parameters:
ftName - name of the feature type, must not be null
Returns:
the envelope (using the storage CRS), or null, if the feature type does not have an envelope (no geometry properties or no instances)
Throws:
IllegalArgumentException - if the cache does not contain information on the specified feature type

set

void set(QName ftName,
         Envelope bbox)
Updates the envelope for the specified type.

Parameters:
ftName - name of the feature type, must not be null
bbox - new envelope (using the storage CRS), or null, if the feature type does not have an envelope (no geometry properties or no instances)

contains

boolean contains(QName ftName)
Returns true, if the the specified feature type is known to the cache.

Parameters:
ftName - name of the feature type, must not be null
Returns:
true, if the feature type is known, false otherwise

persist

void persist()
             throws IOException
Ensures that the cache is persisted.

Throws:
IOException


Copyright © 2011. All Rights Reserved.