| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vfny.geoserver.requests.Query
Provides an internal, generic representation of a query component to a Feature request. Note that Feature requests can contain multiple query components and that the 'version' inside the query component is different than the 'version' of the GetFeature request.
| Field Summary | |
protected  boolean | 
allRequested
Flags whether or not all properties were requested  | 
protected  org.geotools.filter.Filter | 
filter
The filter for the query  | 
protected  java.lang.String | 
handle
The user-specified name for the query.  | 
protected  java.util.List | 
propertyNames
The property names requested  | 
protected  java.lang.String | 
typeName
The feature type name requested.  | 
protected  java.lang.String | 
version
The version of the feature to request - current implementation ignores entirely.  | 
| Constructor Summary | |
Query()
Empty constructor.  | 
|
| Method Summary | |
 void | 
addFilter(org.geotools.filter.Filter filter)
Sets the filter for the query.  | 
 void | 
addPropertyName(java.lang.String propertyName)
Adds a requested property name to the query.  | 
 boolean | 
allRequested()
Return boolean for all requested types.  | 
 boolean | 
equals(java.lang.Object obj)
Override of equals.  | 
 org.geotools.data.Query | 
getDataSourceQuery(int maxFeatures)
Gets this query as a geotools Query object.  | 
 org.geotools.filter.Filter | 
getFilter()
Gets the filter for this query.  | 
 java.lang.String | 
getHandle()
Gets the user-defined 'handle' for the query.  | 
 java.util.List | 
getPropertyNames()
Gets the requested property names as a list.  | 
 java.lang.String | 
getTypeName()
Gets the feature type name for this query.  | 
 java.lang.String | 
getVersion()
Gets the 'version' of features to retrieve.  | 
 int | 
hashCode()
Override of hashCode.  | 
 void | 
setHandle(java.lang.String handle)
Sets the user-defined 'handle' for the query.  | 
 void | 
setTypeName(java.lang.String typeName)
Sets the feature type name for this query.  | 
 void | 
setVersion(java.lang.String version)
Sets the 'version' of features to retrieve.  | 
 org.geotools.data.Query | 
toDataQuery(int maxFeatures)
Get this query as a geotools Query.  | 
 java.lang.String | 
toString()
Override of toString.  | 
| Methods inherited from class java.lang.Object | 
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
protected java.lang.String handle
protected java.lang.String version
protected java.lang.String typeName
protected java.util.List propertyNames
protected org.geotools.filter.Filter filter
protected boolean allRequested
| Constructor Detail | 
public Query()
| Method Detail | 
public java.util.List getPropertyNames()
public void setTypeName(java.lang.String typeName)
typeName - The featureType to query.public java.lang.String getTypeName()
public void addPropertyName(java.lang.String propertyName)
propertyName - The name of a property to return.public boolean allRequested()
public void setHandle(java.lang.String handle)
handle - The mnemonic handle to associate with this query.public java.lang.String getHandle()
public void setVersion(java.lang.String version)
version - The feature version to retrieve.public java.lang.String getVersion()
public void addFilter(org.geotools.filter.Filter filter)
filter - The ogc filter to narrow the results.public org.geotools.filter.Filter getFilter()
public org.geotools.data.Query getDataSourceQuery(int maxFeatures)
maxFeatures - The max number of Features to return.
public org.geotools.data.Query toDataQuery(int maxFeatures)
if maxFeatures is a not positive value DefaultQuery.DEFAULT_MAX will be used.
The method name is changed to toDataStoreQuery since this is a one way conversion.
maxFeatures - number of features, or 0 for DefaultQuery.DEFAULT_MAX
public java.lang.String toString()
public boolean equals(java.lang.Object obj)
obj - the object to compare against.
public int hashCode()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||