public class PageCriteria extends Object implements Serializable
This class is used to limit a query to a subset of the rows. Indexes starts at 0. This class is immutable
Constructor and Description |
---|
PageCriteria(long pStartIndex,
int pPageSize) |
Modifier and Type | Method and Description |
---|---|
protected PageCriteria |
clone() |
boolean |
equals(Object obj) |
static PageCriteria |
firstPage(int pageSize) |
long |
getEndIndex()
Index of the last element included in the page if the page is full.
|
int |
getPageSize()
Number of element in the page.
|
long |
getStartIndex()
Index of the first element included in the page.
|
int |
hashCode() |
String |
toString() |
public long getStartIndex()
public int getPageSize()
public long getEndIndex()
protected PageCriteria clone()
public static PageCriteria firstPage(int pageSize)
Copyright © 2016. All Rights Reserved.