Hi all,  

I am actually  a bit surprised after realized that no query language is 
supported on datastore low level API directly. So I spend some time to 
migrate GQL to Java SDK and just deployed one version to 
http://code.google.com/p/gql4j/

Here is the usage

 DatastoreService? <http://code.google.com/p/gql4j/w/edit/DatastoreService> 
datastore = DatastoreServiceFactory? 
<http://code.google.com/p/gql4j/w/edit/DatastoreServiceFactory>.getDatastoreService();
 GqlQuery? <http://code.google.com/p/gql4j/w/edit/GqlQuery> gql = new GqlQuery? 
<http://code.google.com/p/gql4j/w/edit/GqlQuery>("SELECT * WHERE ANCESTOR IS 
KEY(:1, :2) LIMIT 100 OFFSET 1000", "Person", "Amy");
 Iterable<Entity> result = 
datastore.prepare(gql.query()).asIterable(gql.fetchOptions());


Simply download jar to your project and try it! No maven repo is setup for 
this one but there is a workaround documented on project homepage. 

Any feedback is welcome!

Cheers, 
Max

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

Reply via email to