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

java.lang.Object
  extended by com.esri.core.tasks.ags.query.QueryTask

public class QueryTask
extends Object

The Class QueryTask.


Constructor Summary
QueryTask(String url)
          Instantiates a new query task.
QueryTask(String url, UserCredentials credentials)
          Instantiates a new query task.
 
Method Summary
 FeatureSet execute(Query query)
          Execute the query.
 void executeAsync(Query query, CallbackListener<FeatureSet> callback)
          Execute the query asynchronously.
 Map<Integer,FeatureSet> executeRelationshipQuery(QueryRelatedRecordsParameters query)
          Execute relationship query.
 void executeRelationshipQueryAsync(QueryRelatedRecordsParameters query, CallbackListener<Map<Integer,FeatureSet>> callback)
          Execute relationship query asynchronously.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryTask

public QueryTask(String url)
Instantiates a new query task.

Parameters:
url - the URL

QueryTask

public QueryTask(String url,
                 UserCredentials credentials)
          throws EsriSecurityException
Instantiates a new query task.

Parameters:
url - the url
credentials - the user credentials
Throws:
EsriSecurityException - the esri security exception
Method Detail

execute

public FeatureSet execute(Query query)
                   throws Exception
Execute the query.

Parameters:
query - the query
Returns:
the feature set
Throws:
Exception

executeAsync

public void executeAsync(Query query,
                         CallbackListener<FeatureSet> callback)
Execute the query asynchronously.

Parameters:
query - the query
callback - the call back

executeRelationshipQuery

public Map<Integer,FeatureSet> executeRelationshipQuery(QueryRelatedRecordsParameters query)
                                                 throws Exception
Execute relationship query.

Parameters:
query - the query
Returns:
the related record set
Throws:
Exception

executeRelationshipQueryAsync

public void executeRelationshipQueryAsync(QueryRelatedRecordsParameters query,
                                          CallbackListener<Map<Integer,FeatureSet>> callback)
Execute relationship query asynchronously.

Parameters:
query - the query
callback - the call back


Copyright © 2012. All Rights Reserved.