com.esri.adf.web.tasks
Class QueryAttributesExpression
java.lang.Object
com.esri.adf.web.tasks.QueryAttributesExpression
- All Implemented Interfaces:
- Serializable
public class QueryAttributesExpression
- extends Object
- implements Serializable
This QueryAttributesExpression class is used to define the expression for Query Attributes task.
- See Also:
QueryAttributesTask.setExpressions(java.util.List)
,
Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryAttributesExpression
public QueryAttributesExpression()
QueryAttributesExpression
public QueryAttributesExpression(String fieldLabel,
String fieldName,
String fieldOperator,
String fieldValue,
String fieldType)
- Construcs a new QueryAttributesExpression class.
For example,
[FIELD_NAME FIELD_OPERATOR FIELD_VALUE] = CITY_NAME LIKE Red%
- Parameters:
fieldLabel
- the label used by the query attributes taskfieldName
- the field name for the expressionfieldOperator
- the operator for the expressionfieldValue
- the default valuefieldType
- the type of default value
QueryAttributesExpression
public QueryAttributesExpression(String fieldLabel,
String fieldName,
String fieldOperator,
Map<String,String> fieldValues,
String fieldType)
getFieldName
public String getFieldName()
setFieldName
public void setFieldName(String fieldName)
getFieldLabel
public String getFieldLabel()
setFieldLabel
public void setFieldLabel(String labelText)
getFieldOperator
public String getFieldOperator()
setFieldOperator
public void setFieldOperator(String operator)
setFieldValue
public void setFieldValue(String fieldValue)
getFieldValue
public String getFieldValue()
setFieldValues
public void setFieldValues(Map<String,String> fieldValues)
getFieldValues
public Map<String,String> getFieldValues()
getFieldType
public String getFieldType()
setFieldType
public void setFieldType(String fieldType)
- Sets the type of the field value. For String and Date types the value will be enclosed in quotes.
For Example,
expression.setFieldName("CITY_NAME");
expression.setFieldOperator("LIKE");
expression.setFieldValue("Red%");
expression.setFieldType(QueryAttributesTask.STRING_TYPE);
Where clause will be CITY_NAME LIKE 'Red%'
- Parameters:
fieldType
- the type of the field value