Package com.esri.gpt.framework.resource.query

Examples of com.esri.gpt.framework.resource.query.Query


  return capabilities;
}

public Query newQuery(Criteria crt) {
  OaiProxy proxy = new OaiProxy(info);
  Query q = new OaiQuery(context, info, proxy, crt);
  LOGGER.finer("Query created: " + q);
  return q;
}
View Full Code Here


* Executes query.
* @return result
*/
private Result executeQuery() {
  if (ProtocolInvoker.getUpdateContent(unit.getRepository().getProtocol())) {
    Query query = unit.getQuery();
    return query!=null?
      query.execute():
      new CommonResult(new ArrayList<Resource>());
  } else if (ProtocolInvoker.getUpdateDefinition(unit.getRepository().getProtocol())) {
    return new CommonResult(Arrays.asList(new Resource[]{unit.getNative()}));
  } else {
    return new CommonResult(new ArrayList<Resource>());
View Full Code Here

  return capabilities;
}

public Query newQuery(Criteria crt) {
  CswProxy proxy = new CswProxy(info, catalog);
  Query q = new CswQuery(context, proxy, crt);
  LOGGER.finer("Query created: " + q);
  return q;
}
View Full Code Here

  public Capabilities getCapabilities() {
    return capabilities;
  }

  public Query newQuery(Criteria crt) {
    Query q = new AgpQuery(context, info, crt);
    LOGGER.log(Level.FINER, "Query created: {0}", q);
    return q;
  }
View Full Code Here

        public void onIterationException(Exception ex) {
          LOGGER.log(Level.SEVERE, "Error iterating through AGS resources.", ex);
        }
      }, source);
     
      Query newQuery = qb.newQuery(new CommonCriteria());
      Result result = newQuery.execute();

      this.destination.getConnection().generateToken();
     
      Iterable<IServiceInfoProvider> records = new ServiceInfoProviderAdapter(new FlatResourcesAdapter(result.getResources()));
      for (IServiceInfoProvider r: records) {
View Full Code Here

}

@Override
public Query newQuery(Criteria crt) {
  WafProxy proxy = new WafProxy(info, crt);
  Query q = new WafQuery(context, info, proxy, crt);
  LOGGER.log(Level.FINER, "Query created: {0}", q);
  return q;
}
View Full Code Here

        statWriter.writeElement("sortOption",String.valueOf(criteria.getSortOption()),false,false);
        addSpaces(sb,5);
        String[] dc = criteria.getDataCategory();
        sb.append("},");
        addSpaces(sb,5);     
        Query qry = eu.getQuery();
    //    JSONObject qjso = new JSONObject();
    //    qjso.put("criteria", qry.toString());
       // sb.append("\"query\":" +  Val.escapeStrForJson(qry.toString()) + ",");
       // addSpaces(sb,4);
        Set<String> restrictions = eu.getRestrictions();
View Full Code Here

@Test
public void testNewQuery() {
      System.out.println("newQuery");
      CommonCriteria crt = new CommonCriteria();
      crt.setMaxRecords(5);
      Query query = instance.newQuery(crt);
      assertNotNull(query);
      Result result = query.execute();
      assertNotNull(result);
      Iterable<Resource> resources = result.getResources();
      assertNotNull(resources);
      int count = 0;
      for (Resource resource : resources) {
View Full Code Here

TOP

Related Classes of com.esri.gpt.framework.resource.query.Query

Copyright © 2018 www.massapicom. 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.