Hello,

See 
http://groups.google.com/group/google-appengine-java/browse_thread/thread/e19b792042b2ff9b

and 
http://groups.google.com/group/google-appengine-java/tree/browse_frm/month/2010-04/8de23dea7100c586

didier

On Oct 5, 2:38 pm, Maxim Veksler <[email protected]> wrote:
> Hi,
>
> Can I do something like this:
>
> public class LowLevelDataStore {
> private static DatastoreService datastore;
>  private static FetchOptions LIMIT_1 = FetchOptions.Builder.withLimit(1);
> static {
>  datastore = DatastoreServiceFactory.getDatastoreService(withReadPolicy(new
> ReadPolicy(Consistency.EVENTUAL)));
>
> }
>
> public static Iterable<Entity> getFOO(...) {
> Query query... =
>  new Query("...")
> .addFilter("...", FilterOperator.EQUAL, ...)
>  .addSort("...", SortDirection.ASCENDING);
>  return datastore.prepare(query...).asIterable();
>  }
>
> }
>
> Assuming I won't be using transactions ?
> Assuming I will be using transactions?
>
> Couldn't find any clues in the javadoc / googling does not give meaningful
> results as well.
>
> Thank you,
> Maxim.

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