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

org.deegree.feature.persistence.query
Class Query

java.lang.Object
  extended by org.deegree.feature.persistence.query.Query

public class Query
extends Object

Encapsulates the parameter of a query to a FeatureStore.

Version:
$Revision: 21815 $, $Date: 2010-01-07 15:19:53 +0100 (Do, 07 Jan 2010) $
Author:
Markus Schneider, last edited by: $Author: rbezema $

Nested Class Summary
static class Query.QueryHint
          Names for hints and additional parameters that a FeatureStore implementation may take into account to increase efficient query processing.
 
Constructor Summary
Query(IdFilter filter, String featureVersion, CRS srsName, SortProperty[] sortBy)
          Creates a new Query instance that selects features based on an IdFilter.
Query(QName ftName, Envelope looseBbox, Filter filter, boolean withGeometries, int scale)
          Creates a new Query instance.
Query(TypeName[] typeNames, Filter filter, String featureVersion, CRS srsName, SortProperty[] sortBy)
          Creates a new Query instance.
 
Method Summary
 Filter getFilter()
           
 Object getHint(Query.QueryHint code)
           
 SortProperty[] getSortProperties()
           
 TypeName[] getTypeNames()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Query

public Query(QName ftName,
             Envelope looseBbox,
             Filter filter,
             boolean withGeometries,
             int scale)
Creates a new Query instance.

Parameters:
ftName - name of the requested feature type, must not be null
looseBbox - bounding box used for pre-filtering the features, can be null (no pre-filtering) Query.QueryHint.HINT_LOOSE_BBOX
filter - additional filter constraints, may be null
withGeometries - if false, the feature store may omit the geometry property values in the result Query.QueryHint.HINT_NO_GEOMETRIES
scale - if scale is positive, a scale query hint will be used

Query

public Query(TypeName[] typeNames,
             Filter filter,
             String featureVersion,
             CRS srsName,
             SortProperty[] sortBy)
Creates a new Query instance.

Parameters:
typeNames - feature type names to be queried, must not be null and contain at least one entry
filter - filter to be applied, can be null
featureVersion - specific feature version to be returned, can be null
srsName - SRS for the returned geometries, can be null
sortBy - sort criteria to be applied, can be null

Query

public Query(IdFilter filter,
             String featureVersion,
             CRS srsName,
             SortProperty[] sortBy)
Creates a new Query instance that selects features based on an IdFilter.

Parameters:
filter - filter to be applied, must not be null
featureVersion - specific feature version to be returned, can be null
srsName - SRS for the returned geometries, can be null
sortBy - sort criteria to be applied, can be null
Method Detail

getHint

public Object getHint(Query.QueryHint code)

getTypeNames

public TypeName[] getTypeNames()

getFilter

public Filter getFilter()

getSortProperties

public SortProperty[] getSortProperties()

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

]]>