Package com.googlecode.gql4j

Examples of com.googlecode.gql4j.GqlQuery.query()


  @Override
  public List<BlobInfoDTO> load(String filterStr) throws YaacException {
    // step 1 : parse query
    String strQuery = "select * from " + Blobstore.BLOB_INFO_KIND + " " + filterStr;
    GqlQuery gql = new GqlQuery(strQuery);
    Query query = gql.query();
   
    logger.info("loading blobs, filter = " + filterStr);
    logger.info("parsed query = " + strQuery);
   
    // step 2 : validate query
View Full Code Here


      }
    }
   
    // step3 : execute query
    AsyncDatastoreService datastore = DatastoreServiceFactory.getAsyncDatastoreService();
    Iterable<Entity> entities = datastore.prepare(gql.query()).asIterable(gql.fetchOptions());
   
    List<BlobInfoDTO> result = newLinkedList();
    for (Entity e : entities) {
      result.add(new BlobInfoDTO(e.getKey().getName(),
                (Date) e.getProperty(Blobstore.BLOB_INFO_CREATION),
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.