Class MappedPagedList<T,D>
java.lang.Object
io.ebeaninternal.server.querydefn.MappedPagedList<T,D>
- All Implemented Interfaces:
io.ebean.PagedList<D>
PagedList adapter backing query.mapTo(dtoType).findPagedList().
Delegates all page metadata (total count, page index, hasNext()/hasPrev(), ...)
straight through to the underlying entity-typed PagedList unchanged - paging is a
property of the query, not of the DTO shape. Only getList() differs: it maps the
delegate's entity list to the target DTO list (once, cached) via the given DtoMapper.
-
Constructor Summary
ConstructorsConstructorDescriptionMappedPagedList(io.ebean.PagedList<T> delegate, io.ebean.DtoMapper<T, D> mapper) -
Method Summary
-
Constructor Details
-
MappedPagedList
-
-
Method Details
-
loadCount
public void loadCount()- Specified by:
loadCountin interfaceio.ebean.PagedList<T>
-
getFutureCount
-
getList
-
getTotalCount
public int getTotalCount()- Specified by:
getTotalCountin interfaceio.ebean.PagedList<T>
-
getTotalPageCount
public int getTotalPageCount()- Specified by:
getTotalPageCountin interfaceio.ebean.PagedList<T>
-
getPageSize
public int getPageSize()- Specified by:
getPageSizein interfaceio.ebean.PagedList<T>
-
getPageIndex
public int getPageIndex()- Specified by:
getPageIndexin interfaceio.ebean.PagedList<T>
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceio.ebean.PagedList<T>
-
hasPrev
public boolean hasPrev()- Specified by:
hasPrevin interfaceio.ebean.PagedList<T>
-
getDisplayXtoYofZ
-