Examples of QueryParam


Examples of com.ctp.cdi.query.QueryParam

        List<Parameter> result = new ArrayList<Parameter>(parameters.length);
        int paramIndex = 1;
        Annotation[][] annotations = method.getParameterAnnotations();
        for (int i = 0; i < parameters.length; i++) {
            if (isParameter(method.getParameterAnnotations()[i])) {
                QueryParam qpAnnotation = extractFrom(annotations[i], QueryParam.class);
                if (qpAnnotation != null) {
                    result.add(new NamedParameter(qpAnnotation.value(), parameters[i], i));
                } else {
                    result.add(new IndexedParameter(paramIndex++, parameters[i], i));
                }
            } else {
                max = extractInt(parameters[i], annotations[i], MaxResults.class, max);
View Full Code Here

Examples of com.gi.engine.carto.QueryParam

          int layerId = Integer.valueOf(layerIds.get(i));
          Layer layer = map.getLayer(i);
          if (layer != null && layer instanceof FeatureLayer) {
            FeatureLayer featureLayer = (FeatureLayer) layer;
            try {
              QueryParam queryParam = new QueryParam();
              queryParam.setWhere(where);
              FeatureCollection<? extends FeatureType, ? extends Feature> layerFeatureCollection = featureLayer
                  .query(queryParam);
              if (layerFeatureCollection != null
                  && !layerFeatureCollection.isEmpty()) {
                for (FeatureIterator<? extends Feature> itr = layerFeatureCollection
View Full Code Here

Examples of com.lichhao.common.util.QueryParam

  // 该方法,写入ie时,中文乱码
  @RequestMapping(value = "/omArea/query")
  public void query(HttpServletRequest request, HttpServletResponse response,
      Model model) throws IOException {

    QueryParam queryParam = new QueryParam(request);
    String json = omAreaService.queryList(queryParam);

    response.setHeader("Pragma", "No-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);
View Full Code Here

Examples of com.lichhao.common.util.QueryParam

  }

  @RequestMapping(value = "/omArea/excel")
  public String excel(HttpServletRequest request, Model model) {

    QueryParam queryParam = new QueryParam(request);

    Query query = new Query();
    if (!StringUtils.isEmpty(queryParam.getQuery())) {
      query.addCriteria(Criteria.where(queryParam.getQtype()).is(
          queryParam.getQuery()));
    }
    query.skip(queryParam.getSkip()).limit(queryParam.getLimit()).sort()
        .on(queryParam.getSortname(), queryParam.getSortorder());

    List<OmAreaBean> list = omAreaService.getOmAreaDao().getMongoTemplate()
        .find(query, OmAreaBean.class);

    // List<OmAreaBean> list =
View Full Code Here

Examples of com.linkedin.restli.server.annotations.QueryParam

  private static Parameter<?> buildQueryParam(final Method method,
                                              final AnnotationSet annotations,
                                              final Class<?> paramType)
  {
    QueryParam queryParam = annotations.get(QueryParam.class);
    Optional optional = annotations.get(Optional.class);
    String paramName = queryParam.value();
    if (INVALID_CHAR_PATTERN.matcher(paramName).find())
    {
      throw new ResourceConfigException("Unsupported character in the parameter name :"
          + paramName);
    }
    Class<? extends TyperefInfo> typerefInfoClass = queryParam.typeref();
    try
    {
      @SuppressWarnings({"unchecked", "rawtypes"})
      Parameter<?> param =
          new Parameter(queryParam.value(),
                        paramType,
                        getDataSchema(paramType, getSchemaFromTyperefInfo(typerefInfoClass)),
                        optional != null,
                        getDefaultValueData(optional),
                        Parameter.ParamType.QUERY,
View Full Code Here

Examples of com.microsoft.windowsazure.services.blob.implementation.SharedKeyUtils.QueryParam

        // 7. Append each query parameter name and value to the string
        // 8. If a query parameter has more than one value, sort all values
        // lexicographically, then include them in a comma-separated list
        for (int i = 0; i < queryParams.size(); i++) {
            QueryParam param = queryParams.get(i);

            List<String> values = param.getValues();
            // Collections.sort(values);

            // 9. Append a new line character (\n) after each name-value pair.
            result += "\n";
            result += param.getName();
            result += ":";
            for (int j = 0; j < values.size(); j++) {
                if (j > 0) {
                    result += ",";
                }
View Full Code Here

Examples of com.tll.criteria.QueryParam

    }
  }

  private void setCredentials(Long pk, String newUsername, String encNewPassword) {
    dao.executeQuery("user.setCredentials", new QueryParam[] {
      new QueryParam(IEntity.PK_FIELDNAME, PropertyType.STRING, pk),
      new QueryParam("username", PropertyType.STRING, newUsername),
      new QueryParam("password", PropertyType.STRING, encNewPassword) });
  }
View Full Code Here

Examples of com.tll.criteria.QueryParam

      break;
    case MERCHANT_LISTING: {
      sorting = new Sorting("dateCreated");
      // find an isp..
      final Isp anIsp = getEntityDao().loadAll(Isp.class).get(0);
      final QueryParam qp = new QueryParam("ispId", PropertyType.STRING, anIsp.getId());
      list.add(qp);
      break;
    }
    case CUSTOMER_LISTING: {
      sorting = new Sorting(new SortColumn("dateCreated", "c"));

      // get the asp (to serve as the parent account)..
      final Asp asp = getEntityDao().loadAll(Asp.class).get(0);
      final QueryParam qp = new QueryParam("accountId", PropertyType.STRING, asp.getId());
      list.add(qp);
      break;
    }
    case INTERFACE_SUMMARY_LISTING:
      sorting = new Sorting(new SortColumn("code", "intf"));
      break;
    case ACCOUNT_INTERFACE_SUMMARY_LISTING: {
      sorting = new Sorting(new SortColumn("code", "intf"));

      list.add(new QueryParam("", PropertyType.STRING, "asp"));
      break;
    }

    // warn of unhandled defined named queries!
    default:
View Full Code Here

Examples of com.tll.criteria.QueryParam

    }
  }

  private void setCredentials(String userId, String newUsername, String encNewPassword) {
    dao.executeQuery("user.setCredentials", new QueryParam[] {
      new QueryParam(IEntity.PK_FIELDNAME, PropertyType.STRING, userId),
      new QueryParam("username", PropertyType.STRING, newUsername),
      new QueryParam("password", PropertyType.STRING, encNewPassword) });
  }
View Full Code Here

Examples of javax.ws.rs.QueryParam

      DefaultValue defaultValue = findAnnotation(annotations, DefaultValue.class);
      boolean encode = findAnnotation(annotations, Encoded.class) != null || injectTarget.isAnnotationPresent(Encoded.class) || type.isAnnotationPresent(Encoded.class);
      String defaultVal = null;
      if (defaultValue != null) defaultVal = defaultValue.value();

      QueryParam query;
      HeaderParam header;
      MatrixParam matrix;
      PathParam uriParam;
      CookieParam cookie;
      FormParam formParam;
      Suspend suspend;


      if ((query = findAnnotation(annotations, QueryParam.class)) != null)
      {
         return new QueryParamInjector(type, genericType, injectTarget, query.value(), defaultVal, encode, annotations, providerFactory);
      }
      else if ((header = findAnnotation(annotations, HeaderParam.class)) != null)
      {
         return new HeaderParamInjector(type, genericType, injectTarget, header.value(), defaultVal, annotations, providerFactory);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.