mycustomcriteria.java

来自「采用java实现的arcgis server程序」· Java 代码 · 共 59 行

JAVA
59
字号
/*
 * Copyright (c) 2008 ESRI
 *
 * All rights reserved under the copyright laws of the United States
 * and applicable international laws, treaties, and conventions.
 *
 * You may freely redistribute and use this sample code, with or
 * without modification, provided you include the original copyright
 * notice and use restrictions.
 *
 * See use restrictions at <install>/ArcGIS/java/samples/userestrictions.
 */

package com.esri.adf.sample.criteria;

import com.esri.adf.web.data.query.QueryCriteria;

/*
 * Defines common properties of this custom query used by MyAGSCustomQueryFunctionality
 */
public class MyCustomCriteria implements QueryCriteria {

  public static final String CRITERIA_TYPE = "MyCustomCriteria";

  private String displayFieldName = null;

  private int maxRecordCount = -1;

  private boolean fetchResultDetails = true;

  public String getCriteriaType() {
    return MyCustomCriteria.CRITERIA_TYPE;
  }

  public String getDisplayFieldName() {
    return this.displayFieldName;
  }

  public int getMaxRecordCount() {
    return this.maxRecordCount;
  }

  public boolean isFetchResultDetails() {
    return this.fetchResultDetails;
  }

  public void setDisplayFieldName(String displayFieldName) {
    this.displayFieldName = displayFieldName;
  }

  public void setFetchResultDetails(boolean fetchResultDetails) {
    this.fetchResultDetails = fetchResultDetails;
  }

  public void setMaxRecordCount(int maxRecordCount) {
    this.maxRecordCount = maxRecordCount;
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?