public class

LayerQuery

extends Object
java.lang.Object
   ↳ com.esri.core.tasks.geodatabase.LayerQuery

Class Overview

This class is used to define a filter for a single layer in a geodatabase.

Summary

Public Methods
static LayerQuery createRelatedFeatures(int layerId)
Creates a query that returns features in the given layer that are related to features in other layers in the geodatabase.
static LayerQuery createReturnAll(int layerId)
Creates a query that returns all the features in the given layer.
static LayerQuery createReturnNone(int layerId)
Creates a query that returns no features for the given layer.
static LayerQuery createUsingFilter(int layerId, String where, boolean useGeometry)
Creates a query using a where clause for the given layer.
boolean equals(Object obj)
static LayerQuery fromJson(int id, JsonParser jsonParser)
Create an instance of this class from a JSON string.
int hashCode()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static LayerQuery createRelatedFeatures (int layerId)

Creates a query that returns features in the given layer that are related to features in other layers in the geodatabase.

Parameters
layerId int: the layer id
Returns
LayerQuery the layer query

public static LayerQuery createReturnAll (int layerId)

Creates a query that returns all the features in the given layer.

Parameters
layerId int: the layer id
Returns
LayerQuery the layer query

public static LayerQuery createReturnNone (int layerId)

Creates a query that returns no features for the given layer. Use this method if you only want to upload new features to the service without having any features for this layer in the geodatabase.

Parameters
layerId int: the layer id
Returns
LayerQuery the layer query

public static LayerQuery createUsingFilter (int layerId, String where, boolean useGeometry)

Creates a query using a where clause for the given layer.

Parameters
layerId int: the layer id
where String: the where clause
useGeometry boolean: true to return features that intersect the geometry used to create the geodatabase
Returns
LayerQuery the layer query

public boolean equals (Object obj)

Parameters
obj Object
Returns
boolean

public static LayerQuery fromJson (int id, JsonParser jsonParser)

Create an instance of this class from a JSON string.

Parameters
id int: id of layer that this instance will be querying
jsonParser JsonParser: parsed JSON
Returns
LayerQuery instance of this class for the given layer id
Throws
Exception

public int hashCode ()

Returns
int