|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FeatureStore
Base interface of the Feature persistence layer, provides access to stored Feature instances.
Note that a FeatureStore instance is always associated with exactly one AppSchema instance.
NOTE: Implementations must be thread-safe, as FeatureStore instances are usually used in multiple threads
concurrently.
| Method Summary | |
|---|---|
FeatureStoreTransaction |
acquireTransaction()
Acquires transactional access to the feature store. |
Envelope |
calcEnvelope(QName ftName)
Recalculates the envelope for all stored features of the given type. |
Envelope |
getEnvelope(QName ftName)
Returns the envelope for all stored features of the given type. |
LockManager |
getLockManager()
Returns the associated LockManager. |
GMLObject |
getObjectById(String id)
Retrieves the stored object with a certain id. |
AppSchema |
getSchema()
Returns the application schema that this FeatureStore serves. |
boolean |
isAvailable()
Returns whether the store is currently able to perform operations. |
FeatureInputStream |
query(Query query)
Performs the given query and returns the matching features as a FeatureInputStream. |
FeatureInputStream |
query(Query[] queries)
Performs the given queries and returns the matching features as a FeatureInputStream. |
int |
queryHits(Query query)
Returns the number of features that are matched by the given query. |
int[] |
queryHits(Query[] queries)
Returns the number of features that are matched by the given queries. |
| Methods inherited from interface org.deegree.commons.config.Resource |
|---|
destroy, init |
| Method Detail |
|---|
boolean isAvailable()
AppSchema getSchema()
FeatureStore serves.
null
Envelope getEnvelope(QName ftName)
throws FeatureStoreException
NOTE: This method may return incorrect (cached) results. Use calcEnvelope(QName) to force the
recalculation of the Envelope.
ftName - name of the feature type, must not be null and must be served by this store
null if the feature type does not have an envelope
(no geometry properties or no instances)
FeatureStoreException
Envelope calcEnvelope(QName ftName)
throws FeatureStoreException
NOTE: This method may potentially be expensive. Depending on the implementation, it may involve fetching all features of the specified type.
ftName - name of the feature type, must not be null and must be served by this store
null if the feature type does not have an envelope
(no geometry properties or no instances)
FeatureStoreException
FeatureInputStream query(Query query)
throws FeatureStoreException,
FilterEvaluationException
FeatureInputStream.
query - query to be performed, must not be null
null
FeatureStoreException - if the query could not be performed
FilterEvaluationException - if the filter contained in the query could not be evaluated
FeatureInputStream query(Query[] queries)
throws FeatureStoreException,
FilterEvaluationException
FeatureInputStream.
queries - queries to be performed, must not be null and contain at least one entry
null
FeatureStoreException - if the query could not be performed
FilterEvaluationException - if the filter contained in the query could not be evaluated
int queryHits(Query query)
throws FeatureStoreException,
FilterEvaluationException
query - query to be performed, must not be null
FeatureStoreException - if the query could not be performed
FilterEvaluationException - if the filter contained in the query could not be evaluated
int[] queryHits(Query[] queries)
throws FeatureStoreException,
FilterEvaluationException
queries - queries to be performed, must not be null and contain at least one entry
FeatureStoreException - if the query could not be performed
FilterEvaluationException - if the filter contained in the query could not be evaluated
GMLObject getObjectById(String id)
throws FeatureStoreException
id - identifier of the object to be retrieved
Feature or a Geometry) or null if no
object with the given id is known
FeatureStoreException - if the query could not be performed
FeatureStoreTransaction acquireTransaction()
throws FeatureStoreException
null
FeatureStoreException - if the transactional access could not be acquired or is not implemented for this FeatureStore
LockManager getLockManager()
throws FeatureStoreException
LockManager.
LockManager instance, or null if the FeatureStore does not
implement locking
FeatureStoreException - if the lock manager could not be acquired
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||