com.esri.core.tasks.ags.query
Class Query

java.lang.Object
  extended by com.esri.core.tasks.TaskParameters
      extended by com.esri.core.tasks.ags.query.Query
All Implemented Interfaces:
Serializable

public class Query
extends TaskParameters

See Also:
Serialized Form

Nested Class Summary
static class Query.SpatialRelationship
           
 
Field Summary
 
Fields inherited from class com.esri.core.tasks.TaskParameters
url
 
Constructor Summary
Query()
           
Query(String layerurl)
           
 
Method Summary
static String arrayJoin(int[] array, String with)
           
static
<T> String
arrayJoin(T[] array, String with)
           
 boolean equals(Object obj)
           
 HashMap<String,String> generateRequestParams()
          Generates the input parameter used by this class
 Geometry getGeometry()
           
 SpatialReference getInSpatialReference()
           
 double getMaxAllowableOffset()
           
 int[] getObjectIds()
           
 String[] getOutFields()
           
 SpatialReference getOutSpatialReference()
           
 Query.SpatialRelationship getSpatialRelationship()
           
 String getText()
           
 String getWhere()
           
 int hashCode()
           
static boolean isEmptyArray(int[] array)
           
static
<T> boolean
isEmptyArray(T[] array)
           
static boolean isEmptyMap(Map<?,?> map)
           
static boolean isEmptyString(String s)
           
 boolean isReturnGeometry()
           
 boolean isReturnIdsOnly()
           
 void setGeometry(Geometry geometry)
           
 void setInSpatialReference(SpatialReference inSpatialReference)
           
 void setMaxAllowableOffset(double maxAllowableOffset)
           
 void setObjectIds(int[] objectIds)
           
 Query setOutFields(String[] outFields)
           
 Query setOutSpatialReference(SpatialReference outSpatialReference)
           
 Query setReturnGeometry(boolean returnGeometry)
           
 Query setReturnIdsOnly(boolean returnIdsOnly)
           
 Query setSpatialRelationship(Query.SpatialRelationship spatialRelationship)
           
 Query setText(String text)
           
 Query setWhere(String where)
           
 boolean validate()
           
 
Methods inherited from class com.esri.core.tasks.TaskParameters
getUrl, setUrl
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Query

public Query(String layerurl)

Query

public Query()
Method Detail

getObjectIds

public int[] getObjectIds()

setObjectIds

public void setObjectIds(int[] objectIds)

getWhere

public String getWhere()

setWhere

public Query setWhere(String where)

getText

public String getText()

setText

public Query setText(String text)

getMaxAllowableOffset

public double getMaxAllowableOffset()

setMaxAllowableOffset

public void setMaxAllowableOffset(double maxAllowableOffset)

getSpatialRelationship

public Query.SpatialRelationship getSpatialRelationship()

setSpatialRelationship

public Query setSpatialRelationship(Query.SpatialRelationship spatialRelationship)

getOutSpatialReference

public SpatialReference getOutSpatialReference()

setOutSpatialReference

public Query setOutSpatialReference(SpatialReference outSpatialReference)

isReturnGeometry

public boolean isReturnGeometry()

setReturnGeometry

public Query setReturnGeometry(boolean returnGeometry)

isReturnIdsOnly

public boolean isReturnIdsOnly()

setReturnIdsOnly

public Query setReturnIdsOnly(boolean returnIdsOnly)

getOutFields

public String[] getOutFields()

setOutFields

public Query setOutFields(String[] outFields)

getInSpatialReference

public SpatialReference getInSpatialReference()

setInSpatialReference

public void setInSpatialReference(SpatialReference inSpatialReference)

generateRequestParams

public HashMap<String,String> generateRequestParams()
Description copied from class: TaskParameters
Generates the input parameter used by this class

Specified by:
generateRequestParams in class TaskParameters
Returns:
a Map containing the input parameters

getGeometry

public Geometry getGeometry()

setGeometry

public void setGeometry(Geometry geometry)

isEmptyString

public static boolean isEmptyString(String s)

isEmptyMap

public static boolean isEmptyMap(Map<?,?> map)

isEmptyArray

public static <T> boolean isEmptyArray(T[] array)

isEmptyArray

public static boolean isEmptyArray(int[] array)

arrayJoin

public static <T> String arrayJoin(T[] array,
                                   String with)

arrayJoin

public static String arrayJoin(int[] array,
                               String with)

hashCode

public int hashCode()
Overrides:
hashCode in class TaskParameters

equals

public boolean equals(Object obj)
Overrides:
equals in class TaskParameters

validate

public boolean validate()
Specified by:
validate in class TaskParameters


Copyright © 2010. All Rights Reserved.