On Apr 1, 3:14 am, Jeff Schnitzer <[email protected]> wrote: > What does Twig do when someone issues a type-less query? > > datastore.find().addFilter("color", EQUAL, "green"). returnResultsNow()
The expression above is actually not possible to enter using the fluent commands. You can only set a filter on the interface that is returned from calling FindCommand.type(Class<?>) It is also illegal according to the datastore docs for a Query with no kind: "Currently the only operations supported on a kind-less query are filter by __key__, ancestor, and order by __key__ ascending" There are two reasons find() takes no class argument: to distinguish the fluent command from the convenience methods. Secondly, to allow typeless ancestor or key range queries to be added in the future without expanding the basic API. In fact originally there was a typeless find method that took a low-level query as a parameter - but it wasn't useful enough to justify keeping. John -- 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.
