Some of my 
notes: 
http://code.google.com/p/gwt-examples/wiki/DemoGAEMultiFileBlobUpload#Querying_WHERE
 
- I don't specifically mention the date, but you could add it to the filter.

Brandon Donnelson
http://gwt-examples.googlecode.com

 Entity[] entities = null;
    try {
      DatastoreService datastore = 
DatastoreServiceFactory.getDatastoreService();
      Query q = new Query("__BlobInfo__");

      if (filter.getBlobKey() != null) { // -> filter is my object I use to 
drill the blobkey
        Key key = KeyFactory.createKey("__BlobInfo__", filter.getBlobKey());
        q.addFilter("__key__", Query.FilterOperator.EQUAL, key);
      }

      PreparedQuery pq = datastore.prepare(q);
      List<Entity> entList = 
pq.asList(FetchOptions.Builder.withLimit(limit).offset(offset));

      entities = new Entity[entList.size()];
      entList.toArray(entities);
      
    } catch (Exception e) {
      e.printStackTrace();
    } finally {
    }

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to