|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.adf.web.data.query.RelateCriteria
public class RelateCriteria
A source table or layer may participate in one or more relationships with one or more target tables or layers. Each relationship is identified by a unique ID.
RelateCriteria is in queries to fetch related records. When using RelateCriteria with WebQuery
, pass in a
single WebLayerInfo
of the source table/layer whose related records you want to fetch.
WebQuery query = ...; WebLayerInfo sourceLayerInfo = ...; //The source table or layer List<WebLayerInfo> newInfo = new ArrayList<WebLayerInfo>(1); newInfo.add(sourceLayerInfo); RelateCriteria criteria = new RelateCriteria(); criteria.setSourceOIDs(new int[]{0,1,2}); //The IDs of features whose related records need to be fetched criteria.setRelationshipId(3); //The relationship that the source and target participate in query.query(criteria, newInfo);
Field Summary | |
---|---|
static String |
CRITERIA_TYPE
Criteria Type: "Relate" |
Constructor Summary | |
---|---|
RelateCriteria()
|
Method Summary | |
---|---|
String |
getCriteriaType()
A String representing the query type e.g. |
String |
getDisplayFieldName()
Gets the field name which can be used in the query result as a result node title. |
List<? extends LayerDefinition> |
getLayerDefinitions()
Returns the list of LayerDefinition objects that will be used to customize how the related records are
displayed. |
int |
getMaxRecordCount()
Gets the maximum number of returning records in one query. |
int |
getRelationshipId()
Returns the ID of the relationship that the source & target tables/layers participate in. |
int[] |
getSourceOIDs()
Returns the ID of the features whose related records need to be fetched. |
boolean |
isFetchResultDetails()
Returns true if all the feature details e.g. |
void |
setDisplayFieldName(String displayFieldName)
Sets the field name which can be used in the query result as a result node title. |
void |
setFetchResultDetails(boolean fetchResultDetails)
Sets to true to return all the feature details e.g. |
void |
setLayerDefinitions(List<? extends LayerDefinition> layerDefinitions)
Sets the LayerDefinition objects that will be used to customize how the related records are displayed. |
void |
setMaxRecordCount(int maxRecordCount)
Sets the maximum number of returning records in one query. |
void |
setRelationshipId(int relationshipId)
Sets the ID of the relationship that the source & target tables/layers participate in. |
void |
setSourceOIDs(int[] ids)
Sets the ID of the features whose related records need to be fetched. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CRITERIA_TYPE
Constructor Detail |
---|
public RelateCriteria()
Method Detail |
---|
public String getCriteriaType()
QueryCriteria
getCriteriaType
in interface QueryCriteria
public String getDisplayFieldName()
QueryCriteria
getDisplayFieldName
in interface QueryCriteria
public void setDisplayFieldName(String displayFieldName)
QueryCriteria
setDisplayFieldName
in interface QueryCriteria
public boolean isFetchResultDetails()
QueryCriteria
isFetchResultDetails
in interface QueryCriteria
public void setFetchResultDetails(boolean fetchResultDetails)
QueryCriteria
setFetchResultDetails
in interface QueryCriteria
public int getMaxRecordCount()
QueryCriteria
getMaxRecordCount
in interface QueryCriteria
public void setMaxRecordCount(int maxRecordCount)
QueryCriteria
setMaxRecordCount
in interface QueryCriteria
maxRecordCount
- the new value.public int[] getSourceOIDs()
public void setSourceOIDs(int[] ids)
public void setRelationshipId(int relationshipId)
public int getRelationshipId()
public void setLayerDefinitions(List<? extends LayerDefinition> layerDefinitions)
LayerDefinition
objects that will be used to customize how the related records are displayed. The
LayerDefinition should be based on the target table/layer in the relationship.
layerDefinitions
- the list of layer definition objectspublic List<? extends LayerDefinition> getLayerDefinitions()
LayerDefinition
objects that will be used to customize how the related records are
displayed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |