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

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

public class RelationshipQuery
extends Object

Defines parameters of a query to be executed on the server that fetches related records.


Constructor Summary
RelationshipQuery()
          Default constructor
 
Method Summary
 String getDefintionExpression()
          Gets the definition expression.
 double getMaxAllowableOffset()
          Gets the maximum allowable offset, which is used to generalize the geometry in the returned features.
 int[] getObjectIds()
          Gets the object IDs to be queried.
 String[] getOutFields()
          Gets the array of fields to be included in the returned result set.
 SpatialReference getOutSpatialReference()
          Gets the spatial reference of the returned geometry.
 int getRelationshipId()
          Gets the ID of the relationship that this query is based on.
 boolean isReturnGeometry()
          Returns true if the result features include geometry.
 void setDefinitionExpression(String defintionExpression)
          Sets the definition expression.
 void setMaxAllowableOffset(double offset)
          Sets the maximum allowable offset, which is used to generalize the geometry in the returned features.
 void setObjectIds(int[] objectIds)
          Sets the object IDs to be queried.
 void setOutFields(String[] outFields)
          Sets the array of fields to be included in the returned result set.
 void setOutSpatialReference(SpatialReference outSR)
          Sets the spatial reference of the returned geometry.
 void setRelationshipId(int id)
          Sets the ID of the relationship that this query is based on.
 void setReturnGeometry(boolean returnGeometry)
          Sets if the result features should include geometry.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationshipQuery

public RelationshipQuery()
Default constructor

Method Detail

setObjectIds

public void setObjectIds(int[] objectIds)
Sets the object IDs to be queried.

Parameters:
objectIds -

getObjectIds

public int[] getObjectIds()
Gets the object IDs to be queried.

Returns:
object IDs.

setRelationshipId

public void setRelationshipId(int id)
Sets the ID of the relationship that this query is based on.

Parameters:
id - relationship ID.

getRelationshipId

public int getRelationshipId()
Gets the ID of the relationship that this query is based on.

Returns:
relationship ID.

setOutFields

public void setOutFields(String[] outFields)
Sets the array of fields to be included in the returned result set. A wildcard "*" means that all fields are included.

Parameters:
outFields - an array of field names.

getOutFields

public String[] getOutFields()
Gets the array of fields to be included in the returned result set. A wildcard "*" means that all fields are included.

Returns:
an array of field names.

setMaxAllowableOffset

public void setMaxAllowableOffset(double offset)
Sets the maximum allowable offset, which is used to generalize the geometry in the returned features.

Parameters:
offset - maximum allowable offset.

getMaxAllowableOffset

public double getMaxAllowableOffset()
Gets the maximum allowable offset, which is used to generalize the geometry in the returned features.

Returns:
maximum allowable offset.

getOutSpatialReference

public SpatialReference getOutSpatialReference()
Gets the spatial reference of the returned geometry.

Returns:
spatial reference of the returned geometry.

setOutSpatialReference

public void setOutSpatialReference(SpatialReference outSR)
Sets the spatial reference of the returned geometry.

Parameters:
outSR - spatial reference of the returned geometry.

setReturnGeometry

public void setReturnGeometry(boolean returnGeometry)
Sets if the result features should include geometry.

Parameters:
returnGeometry - true for the result features to include geometry.

isReturnGeometry

public boolean isReturnGeometry()
Returns true if the result features include geometry.

Returns:
true if the result features include geometry.

setDefinitionExpression

public void setDefinitionExpression(String defintionExpression)
Sets the definition expression.

Parameters:
defintionExpression - definition expression.

getDefintionExpression

public String getDefintionExpression()
Gets the definition expression.

Returns:
definition expression.


Copyright © 2012. All Rights Reserved.