public class PagerUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static <E> List<E> |
findLazyPaged(LazyService<E> lazyService,
int offset,
int totalSize,
int pageSize,
String sortField,
org.primefaces.model.SortOrder sortOrder,
Map<String,Object> filters,
Query customQuery)
Queries the DB for entries in paged way.
|
public static <E> List<E> findLazyPaged(LazyService<E> lazyService, int offset, int totalSize, int pageSize, String sortField, org.primefaces.model.SortOrder sortOrder, Map<String,Object> filters, Query customQuery)
lazyService - the concrete lazy service which implements lazy loadingoffset - offset of result before index of the first result to returntotalSize - the maximum size of the query that can be expectedpageSize - the maximum page sizesortField - the field by which to sortsortOrder - ascending/descendingfilters - filters to usecustomQuery - query to addCopyright © 2025 European Spallation Source. All rights reserved.