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

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


  @Override
  public Result execute() {
    LOGGER.log(Level.FINER, "Executing query: {0}", this);
    final DestroyableResource root = new DCATRootResource(context, info);
    Result r = new CommonResult(new LimitedLengthResourcesAdapter(root,criteria.getMaxRecords())) {
        @Override
        public void destroy() {
          root.destroy();
          info.destroy();
        }
View Full Code Here


      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) {
        count++;
      }
View Full Code Here

    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) {
      count++;
    }
View Full Code Here

      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) {
        count++;
      }
View Full Code Here

}

  @Override
public Result execute()  {
  LOGGER.finer("Executing query: "+this);
  Result r = new CommonResult(new AtomFolders(context, info, proxy, criteria)) {
    @Override
    public void destroy() {
      info.destroy();
    }
  };
View Full Code Here

      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) {
        count++;
      }
View Full Code Here

  @Override
  public Result execute() {
    LOGGER.log(Level.FINER, "Executing query: {0}", this);
    final DestroyableResource rootFolder = new TFolder(context, info, proxy, criteria, new HashSet<String>());
    Result r = new CommonResult(new LimitedLengthResourcesAdapter(rootFolder,criteria.getMaxRecords())) {
        @Override
        public void destroy() {
          rootFolder.destroy();
          info.destroy();
        }
View Full Code Here

}

  @Override
public Result execute()  {
  LOGGER.finer("Executing query: "+this);
  Result r = new CommonResult(new OaiFolders(context, info, proxy, criteria)) {
    @Override
    public void destroy() {
      info.destroy();
    }
  };
View Full Code Here

  this.criteria = criteria;
}

public Result execute() {
  LOGGER.finer("Executing query: "+this);
  Result r = new CommonResult(new ArcImsRecords(context,proxy,criteria));
  LOGGER.finer("Completed query execution: "+this);
  return r;
}
View Full Code Here

public Result execute() {
  LOGGER.log(Level.FINER, "Executing query: {0}", this);
  final DestroyableResource rootFolder = info.getUrl().toLowerCase().startsWith("ftp://") || info.getUrl().toLowerCase().startsWith("ftps://")?
          new FtpRootFolder(context, info, criteria):
          new WafFolderQuick(context, info, proxy, new HashSet<String>(), info.getUrl(), criteria);
  Result r = new CommonResult(new LimitedLengthResourcesAdapter(rootFolder,criteria.getMaxRecords())) {
      @Override
      public void destroy() {
        rootFolder.destroy();
        info.destroy();
      }
View Full Code Here

TOP

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

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.