Can anyone provide me with an example for pagination using ibatis,
I saw one example as below:-
It is has mentioned that queryForPaginatedList is deprecated,what is to be used for , can anyone give any example.Code:PaginatedList list = sqlMap.queryForPaginatedList("getContacts", null, 2); while (true) { Iterator listIterator = list.iterator(); while (listIterator.hasNext()) { System.out.println( ((Contact)listIterator.next()).getContactId()); } if( list.isNextPageAvailable()) list.nextPage(); else break; }


Reply With Quote