T - type of record, usually an Entitypublic interface Pagination<T>
extends java.lang.Iterable<T>, java.io.Closeable
The Pagination object will be associated with a database connection. You must iterate through all results to close the connection.
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getCurrentOffset() |
java.lang.Long |
getMaxNbRecords()
Total number of records in the complete data set, regardless of paging and filtering
The implementation doesn't have to guarantee accuracy.
|
java.lang.Long |
getNextOffset() |
java.lang.Long |
getTotalNbRecords()
Total number of records in the data set, regardless of paging, but including filtering
The implementation doesn't have to guarantee accuracy.
|
java.lang.Long getCurrentOffset()
java.lang.Long getNextOffset()
java.lang.Long getMaxNbRecords()
java.lang.Long getTotalNbRecords()
Copyright © 2010-2019. All Rights Reserved.