public class DefaultPagerImpl<T> extends AbstractPagerImpl<T>
count, currentIndex, firstRecord, indices, LABEL_DIVIDER, lastRecord, MAX_PAGE_LABELS, nextIndex, pageNumbers, pagesAvailable, pageSize, prevIndex, records, suggestion
Constructor and Description |
---|
DefaultPagerImpl(java.lang.Integer currentIndex,
java.lang.Integer count,
java.lang.Integer pageSize,
java.util.List<T> records)
Deprecated.
The Hibernate
count function returns Long values!
This constructor only supports total result counts to Integer.MAX_VALUE u
use DefaultPagerImpl(Integer currentIndex, Long count, Integer pageSize, List
instead |
DefaultPagerImpl(java.lang.Integer currentIndex,
java.lang.Integer count,
java.lang.Integer pageSize,
java.util.List<T> records,
java.lang.String suggestion)
Deprecated.
This constructor only supports total result counts to
Integer.MAX_VALUE u
use DefaultPagerImpl(Integer currentIndex, Integer count, Integer pageSize, List
instead |
DefaultPagerImpl(java.lang.Integer currentIndex,
java.lang.Long count,
java.lang.Integer pageSize,
java.util.List<T> records)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
createLabel(java.lang.String s1,
java.lang.String s2) |
java.lang.String |
toString() |
getCount, getCurrentIndex, getFirstRecord, getIndices, getLabel, getLastRecord, getNextIndex, getPageNumber, getPagesAvailable, getPageSize, getPrevIndex, getRecords, getSuggestion, hasResultsInRange, hasResultsInRange, limitStartforRange, limitStartforRange
@Deprecated public DefaultPagerImpl(java.lang.Integer currentIndex, java.lang.Integer count, java.lang.Integer pageSize, java.util.List<T> records)
count
function returns Long
values!
This constructor only supports total result counts to Integer.MAX_VALUE
u
use DefaultPagerImpl(Integer currentIndex, Long count, Integer pageSize, List records, String suggestion)
insteadcurrentIndex
- the page of this result set (0-based), can be nullcount
- the total number of results available for this querypageSize
- The size of pages (can be null or 0 if all results should be returned if available)records
- A list of objects in this page (can be empty if there were no results)public DefaultPagerImpl(java.lang.Integer currentIndex, java.lang.Long count, java.lang.Integer pageSize, java.util.List<T> records)
currentIndex
- the page of this result set (0-based), can be nullcount
- the total number of results available for this querypageSize
- The size of pages (can be null or 0 if all results should be returned if available)records
- A list of objects in this page (can be empty if there were no results)@Deprecated public DefaultPagerImpl(java.lang.Integer currentIndex, java.lang.Integer count, java.lang.Integer pageSize, java.util.List<T> records, java.lang.String suggestion)
Integer.MAX_VALUE
u
use DefaultPagerImpl(Integer currentIndex, Integer count, Integer pageSize, List records, String suggestion)
insteadcurrentIndex
- the page of this result set (0-based), can be nullcount
- the total number of results available for this querypageSize
- The size of pages (can be null if all results should be returned if available)records
- A list of objects in this page (can be empty if there were no results)suggestion
- a suggested query that would improve the search (only applicable for free-text / lucene queries)protected java.lang.String createLabel(java.lang.String s1, java.lang.String s2)
createLabel
in class AbstractPagerImpl<T>
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2007-2020 EDIT. All Rights Reserved.