public class LimitOffsetPagination extends java.lang.Object implements PaginationRule
Constructor and Description |
---|
LimitOffsetPagination(int limit,
int offset)
Constructor specifying limit and offset
|
Modifier and Type | Method and Description |
---|---|
int |
getFirstResultIndex()
Get the absolute index of the first result on this page
|
int |
getRowLimit()
Get the maximum number of rows to return
|
public LimitOffsetPagination(int limit, int offset)
limit
- The maximum number of rows to returnoffset
- The index of the first row to returnpublic int getFirstResultIndex()
getFirstResultIndex
in interface PaginationRule
public int getRowLimit()
getRowLimit
in interface PaginationRule