public class

QueryTask

extends Object
java.lang.Object
   ↳ com.esri.core.tasks.ags.query.QueryTask

Class Overview

Class executing a query on the server.

Summary

Public Constructors
QueryTask(String url)
Instantiates a new query task.
QueryTask(String url, UserCredentials credentials)
Instantiates a new query task.
Public Methods
FeatureSet execute(Query query)
Execute the Query defined for this QueryTask and returns a FeatureSet containing the results.
Map<IntegerFeatureSet> executeRelationshipQuery(RelationshipQuery query)
Executes the RelationshipQuery defined for this QueryTask and returns a Map object, in which key represents the object ID of the feature and value represents the FeatureSet related to this feature.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public QueryTask (String url)

Instantiates a new query task.

Parameters
url the URL

public QueryTask (String url, UserCredentials credentials)

Instantiates a new query task.

Parameters
url the url
credentials the user credentials
Throws
EsriSecurityException the esri security exception

Public Methods

public FeatureSet execute (Query query)

Execute the Query defined for this QueryTask and returns a FeatureSet containing the results.

Parameters
query the query
Returns
Throws
Exception the exception

public Map<IntegerFeatureSet> executeRelationshipQuery (RelationshipQuery query)

Executes the RelationshipQuery defined for this QueryTask and returns a Map object, in which key represents the object ID of the feature and value represents the FeatureSet related to this feature.

Parameters
query specifies the criteria of the Query.
Returns
  • a map object in which key represents the object ID while value represents the related FeatureSet.
Throws
Exception the exception