Hi James and Jeff,
>
> 1) Create query, fetch with limit of 21 items
> 2) Iterate through 20 items
> 3) Get cursor to be used for next page (if necessary)
> 4) Iterate to 21st item just to check for existence
>
This is exactly what Slim3 supports.
http://sites.google.com/site/slim3appengine/slim3-datastore/queries-and-indexes/query-cursors

The following code may help you, see 236 lines(ModelQuery#asQueryResultList):
http://code.google.com/p/slim3/source/browse/trunk/slim3/src/main/java/org/slim3/datastore/ModelQuery.java

Hope this helps,

Yasuo Higa

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