Simone Gianni wrote:
Hi Leszek,
Leszek Gawron wrote:
What about:
- goto a specific page action
- change page size action
The goto a specific page action already exist in some preliminary form,
we should solve the page to index conversion problem before actually
have a working one.
I would like to propose something else:
public interface ValueListProvider() {
public List getRows( SomeContextForFilteringAndSorting context, long
offset, long rowCount );
public long getTotalRowCount( SomeContextForFilteringAndSorting
context );
}
Actually we decided to use the List interface for it, and on the test
project we have a List implementation that actually works on a Hibernate
Criteria in a way that it's able to retrieve blocks of records from
hibernate and ask directly to the database the size, only implementing
some basic methods of the List interface.
Does it fetch a whole page or a "window" with predefined size?
Would you be willing to make it public?
--
Leszek Gawron [EMAIL PROTECTED]
IT Manager MobileBox sp. z o.o.
+48 (61) 855 06 67 http://www.mobilebox.pl
mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65