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 google-appengine-j...@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