Last night we released a new version including improved GQL dynamic
parser.
Operators != and IN are supported now and also several bugs were
fixed.
More info at http://audao.spoledge.com/doc-gae-features.html#gqlparser

Vaclav


On Feb 24, 11:00 pm, David Lam <[email protected]> wrote:
> On Wed, Feb 24, 2010 at 1:37 AM, vbart <[email protected]> wrote:
> > I can offer only listing solution, based on our free GQL dynamic
> > parser -http://audao.spoledge.com/download.jsp
> > The full JSP you can find here:
>
> >http://vaclavb.blogspot.com/2010/02/google-app-engine-data-viewer-gql...
>
> > The GQL parser (class GqlDynamic) converts GQL queries into low-level
> > datastore API calls, so the basic code of fetching entities can be:
>
> >  import com.google.appengine.api.datastore.DatastoreServiceFactory;
> >  import com.google.appengine.api.datastore.Entity;
> >  import com.spoledge.audao.parser.gql.GqlDynamic;
> >  import java.util.List;
> >  ...
> >  GqlDynamic gqld = new GqlDynamic();
>
> > gqld.setDatastoreService( DatastoreServiceFactory.getDatastoreService());
>
> >  String gql = "SELECT * FROM MyEntity WHERE prop1='test' ORDER BY
> > prop2 LIMIT 10";
> >  List<Entity> result =
> > gqld.prepareQuery( gql ).asList( gqld.getFetchOptions());
>
> > Then you just need to render the result in a JSP page.
>
> > The GQL parser currently does not support operators '!=' and 'IN', but
> > we are going to launch a new version in a few days which will support
> > all GQL features.
>
> > Vaclav
>
> hmm thanks for the tip!  i actually was unaware the way to do something like
> this was to build a google datastore.Query to represent the GQL statement...

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

Reply via email to