public class

QueryTask

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

This class is deprecated.
10.2.4. Use 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<Integer, FeatureSet> 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 String: the URL

public QueryTask (String url, UserCredentials credentials)

Instantiates a new query task.

Parameters
url String: the url
credentials UserCredentials: 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 Query: the query
Returns
FeatureSet the FeatureSet containing the results
Throws
Exception the exception

public Map<Integer, FeatureSet> 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 RelationshipQuery: specifies the criteria of the Query.
Returns
Map<Integer, FeatureSet> a map object in which key represents the object ID while value represents the related FeatureSet.
Throws
Exception the exception