|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.core.tasks.ags.query.Query
public class Query
Class holding the parameters of a query to be executed on the server.
In this class, you can define:
Constructor Summary | |
---|---|
Query()
Default constructor |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Geometry |
getGeometry()
Returns the geometry to apply as the spatial filter. |
SpatialReference |
getInSpatialReference()
Returns the spatial reference of the input geometry. |
double |
getMaxAllowableOffset()
Returns the maximum allowable offset. |
int |
getMaxFeatures()
|
int[] |
getObjectIds()
Returns the object IDs of this layer/table to be queried. |
String[] |
getOutFields()
Returns the array of fields to be included in the returned result set. |
SpatialReference |
getOutSpatialReference()
Returns the spatial reference of the returned geometry. |
SpatialRelationship |
getSpatialRelationship()
Returns the spatial relationship to be applied on the input geometry. |
String |
getText()
Returns the literal search text. |
String |
getWhere()
Returns the where clause for the query. |
int |
hashCode()
|
boolean |
isReturnGeometry()
Returns true if the result set includes the geometry associated with each result. |
boolean |
isReturnIdsOnly()
Returns true if the response only includes an array of object IDs. |
void |
setGeometry(Geometry geometry)
Sets the geometry to apply as the spatial filter. |
void |
setInSpatialReference(SpatialReference inSR)
Sets the spatial reference of the input geometry. |
void |
setMaxAllowableOffset(double maxAllowableOffset)
Sets the maximum allowable offset. |
void |
setMaxFeatures(int maxFeatures)
|
void |
setObjectIds(int[] objectIds)
Sets the object IDs of this layer/table to be queried. |
void |
setOutFields(String[] outFields)
Sets the array of fields to be included in the returned result set. |
void |
setOutSpatialReference(SpatialReference outSR)
Sets the spatial reference of the returned geometry. |
void |
setReturnGeometry(boolean returnGeometry)
Sets if the result set should include the geometry associated with each result |
void |
setReturnIdsOnly(boolean returnIdsOnly)
Sets if the response should only include the object IDs |
void |
setSpatialRelationship(SpatialRelationship spatialRelationship)
Sets the spatial relationship to be applied on the input geometry. |
void |
setText(String text)
Sets the literal search text. |
void |
setWhere(String where)
Sets the where clause for the query. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Query()
Method Detail |
---|
public String getWhere()
public void setWhere(String where)
where
- the where clause to setpublic String getText()
public void setText(String text)
text
- the literal search textpublic Geometry getGeometry()
public void setGeometry(Geometry geometry)
geometry
- the geometry to apply as the spatial filterpublic SpatialRelationship getSpatialRelationship()
spatial relationship
to be applied on the input geometry.
public void setSpatialRelationship(SpatialRelationship spatialRelationship)
spatial relationship
to be applied on the input geometry.
spatialRelationship
- the spatial relationshippublic SpatialReference getOutSpatialReference()
public void setOutSpatialReference(SpatialReference outSR)
outSR
- the spatial reference of the returned geometry.public SpatialReference getInSpatialReference()
public void setInSpatialReference(SpatialReference inSR)
inSR
- the spatial reference of the input geometrypublic void setReturnGeometry(boolean returnGeometry)
returnGeometry
- true for the result set to include the geometry associated with each resultpublic boolean isReturnGeometry()
public void setOutFields(String[] outFields)
outFields
- an array of field namespublic String[] getOutFields()
public void setObjectIds(int[] objectIds)
objectIds
- an array of ObjectIdspublic int[] getObjectIds()
public void setReturnIdsOnly(boolean returnIdsOnly)
returnIdsOnly
- true for the response only to include the object IDspublic boolean isReturnIdsOnly()
public void setMaxAllowableOffset(double maxAllowableOffset)
maxAllowableOffset
- public double getMaxAllowableOffset()
public void setMaxFeatures(int maxFeatures)
maxFeatures
- the maxFeatures to setpublic int getMaxFeatures()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |