Something in the lines of
m4ktub
Woa… I think you may be getting near to the level of .Net's LINQ with that OQL query (OQL is not and should not be new to me, but I just could no resist throwing that one).
Read
.Net's LINQ for some examples (thanks Mr.
<censored> for that).
From what I read, you created a collection of pages (as in page 1, records 1-10, page 2, records 11-20 and so on). Then you materialize the elements by iterating the page elements? Am I understanding correctly?
If so, wouldn't it be better to have a
Query.pagedExecute(Class c, String query, int begin, int offset, Object… params);
Does this really makes sense? Shouldn't be the persistence framework a small set of operations and then you would create more complex operations - such as paging - around it?
pabrantes
My € 0,02 is that paging is something you will be wanting to do at database level…