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-java.html

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

On Feb 23, 7:17 am, David Lam <[email protected]> wrote:
> Kind of an appengine noob here... is there something like the datastore
> viewer (i.e.http://localhost:8080/_ah/admin/datastore), but instead lets
> you try out arbitrary GQL by typing it in?

-- 
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