treeder / simplejpa

Automatically exported from code.google.com/p/simplejpa
0 stars 0 forks source link

[PATCH] Implement Query.setFirstResult() #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
SimpleDB does not natively support offsetting the result set, but similar 
behavior can be emulated by using the nextToken from a count query. From the 
article "Query 101: Building Amazon SimpleDB Queries" 
(http://aws.amazon.com/articles/1231):

"The next token returned by count(*) and select are interchangeable as long as 
the where and order by clauses match."

The attached patch implements setFirstResult() using this approach and seems to 
be working as expected so far.

Original issue reported on code.google.com by HebnerN@gmail.com on 20 Feb 2011 at 8:15

Attachments: