public interface IPageLoader<T>
PageableController
.
If you wish to manage pagination with Java List
in memory you can use
PageResultLoaderList
.
For better design IPageLoader
should be implemented by the Service
Layer or DAO (Repository) layer. If you wish to manage pagination with JPA,
Spring Data JPA can be very helpful.
http://www.springsource.org/spring-data
Modifier and Type | Method and Description |
---|---|
T |
loadPage(PageableController controller)
Load the paginated list by using the
PageableController
information about pagination (sort, page index etc) and returns a page
result which contains the paginated list and the total elements (ex:
PageResult , Spring Data Page, etc). |
T loadPage(PageableController controller)
PageableController
information about pagination (sort, page index etc) and returns a page
result which contains the paginated list and the total elements (ex:
PageResult
, Spring Data Page, etc).controller
- information about pagination.