public class QueryTask
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Class and Description |
---|---|
static class |
QueryTask.Options |
Modifier and Type | Method and Description |
---|---|
void |
addCompleteHandler(QueryTaskCompleteHandler handler)
Add handler for when complete event fires.
|
void |
addErrorHandler(ErrorHandler handler)
Add handler for when error event fires.
|
void |
addExecuteForCountCompleteHandler(QueryTaskCountHandler handler)
Add handler for when count complete event fires.
|
void |
addExecuteForIdsCompleteHandler(QueryTaskIdsHandler handler)
Add handler for when execute for ids complete event fires.
|
void |
addExecuteRelationshipQueryCompleteHandler(QueryTaskRelationshipHandler handler)
Add handler for when execute relationship query complete event fires.
|
static QueryTask |
create(java.lang.String url)
Creates a new QueryTask object used to execute a query on the layer resource identified by the url
|
static QueryTask |
create(java.lang.String url,
QueryTask.Options options)
Creates a new QueryTask object used to execute a query on the layer resource identified by the url
|
Deferred |
execute(Query query)
Executes a Query against an ArcGIS Server map layer.
|
Deferred |
execute(Query query,
QueryTaskCallback callback)
Executes a Query against an ArcGIS Server map layer.
|
Deferred |
executeForCount(Query query)
Get a count of the number of features that satisfy the input query.
|
Deferred |
executeForCount(Query query,
QueryTaskCountCallback callback)
Get a count of the number of features that satisfy the input query.
|
Deferred |
executeForIds(Query parameters)
Executes a Query against an ArcGIS Server map layer.
|
Deferred |
executeForIds(Query parameters,
QueryTaskIdsCallback callback)
Executes a Query against an ArcGIS Server map layer.
|
Deferred |
executeRelationshipQuery(Query parameters)
Executes a Query against an ArcGIS Server map layer.
|
Deferred |
executeRelationshipQuery(Query parameters,
QueryTaskRelationshipCallback callback)
Executes a Query against an ArcGIS Server map layer.
|
java.lang.String |
getUrl()
URL to the ArcGIS Server REST resource that represents a map service layer.
|
public static QueryTask create(java.lang.String url)
url
- - URL to the ArcGIS Server REST resource that represents a layer in a servicepublic static QueryTask create(java.lang.String url, QueryTask.Options options)
url
- - URL to the ArcGIS Server REST resource that represents a layer in a serviceoptions
- - Optional parameters.public final java.lang.String getUrl()
public final Deferred execute(Query query, QueryTaskCallback callback)
query
- - Specifies the attributes and spatial filter of the query.callback
- - handler to be fired upon server response.public final Deferred execute(Query query)
query
- - Specifies the attributes and spatial filter of the query.public final Deferred executeForCount(Query query, QueryTaskCountCallback callback)
query
- - Specify the input query object.callback
- - handler to be fired upon server response.public final Deferred executeForCount(Query query)
query
- - Specify the input query object.public final Deferred executeForIds(Query parameters, QueryTaskIdsCallback callback)
parameters
- - Specifies the attributes and spatial filter of the query.callback
- - handler to be fired upon server response.public final Deferred executeForIds(Query parameters)
parameters
- - Specifies the attributes and spatial filter of the query.public final Deferred executeRelationshipQuery(Query parameters, QueryTaskRelationshipCallback callback)
parameters
- - Specifies the attributes and spatial filter of the query.callback
- - handler to be fired upon server response.public final Deferred executeRelationshipQuery(Query parameters)
parameters
- - Specifies the attributes and spatial filter of the query.public final void addCompleteHandler(QueryTaskCompleteHandler handler)
handler
- - Fires when the query operation is complete.public final void addErrorHandler(ErrorHandler handler)
handler
- - Fires when an error occurs when executing the task.public final void addExecuteForCountCompleteHandler(QueryTaskCountHandler handler)
handler
- - Fires when the query for the count is complete. This event is only available
for layers published using ArcGIS Server 10 SP1 or later.public final void addExecuteForIdsCompleteHandler(QueryTaskIdsHandler handler)
handler
- - Fires when the query on IDs is complete.public final void addExecuteRelationshipQueryCompleteHandler(QueryTaskRelationshipHandler handler)
handler
- - Fires when the executeRelationshipQuery is complete