|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.adf.web.tasks.QueryAttributesTask
public class QueryAttributesTask
Field Summary | |
---|---|
static String |
DATE_TYPE
|
static String |
NUMERIC_TYPE
|
static String |
STRING_TYPE
|
Constructor Summary | |
---|---|
QueryAttributesTask()
|
Method Summary | |
---|---|
void |
clearGraphics()
|
void |
destroy()
The cleaup chores (such as releasing held resources) of attributes of a WebContext should be performed in
this method. |
String |
getDisplayFieldName()
Deprecated. As of ArcGIS Java Server 9.3, instead use LayerDefinition.getDisplayFieldName() |
String |
getDisplayName()
|
TaskParamDescriptor[] |
getExpressionParams()
|
List<? extends QueryAttributesExpression> |
getExpressions()
|
String |
getFieldName()
Deprecated. As of ArcGIS Java Server 9.3, instead use QueryAttributesExpression.getFieldName() |
String |
getFieldType()
Deprecated. As of ArcGIS Java Server 9.3, instead use QueryAttributesExpression.getFieldType() |
String |
getFindButtonText()
|
String |
getHelpURL()
|
LayerDefinition |
getLayerDefinition()
Returns the LayerDefinition object. |
int |
getLayerId()
|
int |
getMaxRecordCount()
Deprecated. As of ArcGIS Java Server 9.3, instead use LayerDefinition.getMaxRecordCount() |
String |
getOperator()
Returns the operator used for combining expressions. |
String |
getQueryValue()
Deprecated. As of ArcGIS Java Server 9.3, instead use QueryAttributesExpression.getFieldValue() |
GISResource |
getResource()
Deprecated. As of ArcGIS Java Server 9.3, instead get the resource from WebContext.getResourceById(String)
based on the resource id. |
String |
getResourceId()
|
String |
getReturnFields()
Deprecated. As of ArcGIS Java Server 9.3, instead use LayerDefinition.getReturnFields() |
QueryAttributesTaskConfig |
getTaskConfig()
Deprecated. As of ArcGIS Java Server 9.3, instead use this class to get all properties |
TaskInfo |
getTaskInfo()
|
String |
getToolTip()
|
WebContext |
getWebContext()
|
String |
getWhereClause()
|
void |
init(WebContext webContext)
The initialization chores of attributes of a WebContext should be performed in this method. |
boolean |
isShowInfoWindow()
Returns true if the task result(s) to be shown in the info window. |
void |
query(TaskEvent event)
|
List<QueryResult> |
query(WebContext webContext)
Query features on the map based on the specified context. |
void |
setDisplayFieldName(String displayFieldName)
Deprecated. As of ArcGIS Java Server 9.3, instead use LayerDefinition.setDisplayFieldName(String) |
void |
setDisplayName(String displayName)
|
void |
setExpressions(List<QueryAttributesExpression> expressions)
|
void |
setFieldName(String fieldName)
Deprecated. As of ArcGIS Java Server 9.3, instead use QueryAttributesExpression.setFieldName(String) |
void |
setFieldType(String fieldType)
Deprecated. As of ArcGIS Java Server 9.3, instead use QueryAttributesExpression.setFieldType(String) |
void |
setFindButtonText(String findButtonText)
|
void |
setHelpURL(String helpURL)
|
void |
setLayerDefinition(LayerDefinition layerDefinition)
Sets the LayerDefinition object. |
void |
setLayerId(int layerId)
|
void |
setMaxRecordCount(int count)
Deprecated. As of ArcGIS Java Server 9.3, instead use LayerDefinition.setMaxRecordCount(int) |
void |
setOperator(String operator)
Sets the operator used for combining expressions. |
void |
setQueryValue(String fieldValue)
Deprecated. As of ArcGIS Java Server 9.3, instead use QueryAttributesExpression.setFieldValue(String) |
void |
setResource(GISResource resource)
Deprecated. As of ArcGIS Java Server 9.3, instead use setResourceId(java.lang.String) |
void |
setResourceId(String resourceId)
|
void |
setReturnFields(String returnFields)
Deprecated. As of ArcGIS Java Server 9.3, instead use LayerDefinition.setReturnFields(List) |
void |
setShowInfoWindow(boolean showInfoWindow)
Sets whether the task result(s) to be shown in the info window or not. |
void |
setTaskConfig(QueryAttributesTaskConfig config)
Deprecated. As of ArcGIS Java Server 9.3, instead use this class to set all properties |
void |
setTaskInfo(TaskInfo taskInfo)
|
void |
setToolTip(String toolTip)
|
void |
setWebContext(WebContext webContext)
Deprecated. As of ArcGIS Java Server 9.3, no replacement |
void |
setWhereClause(String whereClause)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String STRING_TYPE
public static final String NUMERIC_TYPE
public static final String DATE_TYPE
Constructor Detail |
---|
public QueryAttributesTask()
Method Detail |
---|
public void init(WebContext webContext)
WebContextInitialize
The initialization chores of attributes of a WebContext
should be performed in this method.
Typically this method is called by the WebContext
when the context itself is initialized. It is important
to note that this method is again called by the context when a GISResource
is dynamically added to or
removed from the context. Classes that implement this method should keep this in mind and adapt the method to react
to the callbacks in these circumstances as well.
A WebContext
attribute is usable only after this method has been called.
init
in interface WebContextInitialize
webContext
- WebContext
- the WebContextWebContext.init(WebContext)
,
WebContext.addResource(String, GISResource, int)
,
WebContext.removeResource(GISResource)
public void destroy()
WebContextInitialize
The cleaup chores (such as releasing held resources) of attributes of a WebContext
should be performed in
this method.
Typically this method is called by the WebContext
when the context itself is destroyed.
The WebContext
attribute is unusable after this method has been called.
destroy
in interface WebContextInitialize
WebContext.destroy()
public WebContext getWebContext()
public void setTaskInfo(TaskInfo taskInfo)
setTaskInfo
in interface TaskInfoBean
public TaskInfo getTaskInfo()
getTaskInfo
in interface TaskInfoBean
public void query(TaskEvent event)
public List<QueryResult> query(WebContext webContext)
webContext
- the context object, passing null will use the context from this object
public void clearGraphics()
public void setWhereClause(String whereClause)
public String getWhereClause()
public String getDisplayName()
public void setDisplayName(String displayName)
public String getHelpURL()
public void setHelpURL(String helpURL)
public String getToolTip()
public void setToolTip(String toolTip)
public String getFindButtonText()
public void setFindButtonText(String findButtonText)
public String getResourceId()
public void setResourceId(String resourceId)
public int getLayerId()
public void setLayerId(int layerId)
public List<? extends QueryAttributesExpression> getExpressions()
public void setExpressions(List<QueryAttributesExpression> expressions)
public String getOperator()
public void setOperator(String operator)
For example,
[expression1 OR expression2]
where
expression1 = "CITY_NAME LIKE 'Red%'"
expression2 = "POP > 10000"
Here "OR" is set using setOperator(String)
operator
- the operator used for combining expressionspublic void setLayerDefinition(LayerDefinition layerDefinition)
LayerDefinition
object.
layerDefinition
- the layer definition objectpublic LayerDefinition getLayerDefinition()
LayerDefinition
object.
public void setShowInfoWindow(boolean showInfoWindow)
showInfoWindow
- if true, info window is shownpublic boolean isShowInfoWindow()
public TaskParamDescriptor[] getExpressionParams()
@Deprecated public void setTaskConfig(QueryAttributesTaskConfig config)
config
- the query attributes task config object@Deprecated public QueryAttributesTaskConfig getTaskConfig()
@Deprecated public void setWebContext(WebContext webContext)
@Deprecated public void setResource(GISResource resource)
setResourceId(java.lang.String)
resource
- the GISResource
object.@Deprecated public GISResource getResource()
WebContext.getResourceById(String)
based on the resource id.
GISResource
object.
GISResource
object@Deprecated public String getDisplayFieldName()
LayerDefinition.getDisplayFieldName()
@Deprecated public void setDisplayFieldName(String displayFieldName)
LayerDefinition.setDisplayFieldName(String)
@Deprecated public String getReturnFields()
LayerDefinition.getReturnFields()
@Deprecated public void setReturnFields(String returnFields)
LayerDefinition.setReturnFields(List)
@Deprecated public int getMaxRecordCount()
LayerDefinition.getMaxRecordCount()
@Deprecated public void setMaxRecordCount(int count)
LayerDefinition.setMaxRecordCount(int)
@Deprecated public String getFieldName()
QueryAttributesExpression.getFieldName()
@Deprecated public void setFieldName(String fieldName)
QueryAttributesExpression.setFieldName(String)
@Deprecated public String getQueryValue()
QueryAttributesExpression.getFieldValue()
@Deprecated public void setQueryValue(String fieldValue)
QueryAttributesExpression.setFieldValue(String)
@Deprecated public String getFieldType()
QueryAttributesExpression.getFieldType()
@Deprecated public void setFieldType(String fieldType)
QueryAttributesExpression.setFieldType(String)
STRING_TYPE
fieldType
- the field type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |