|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.silverpeas.persistence.repository.PaginationCriterion
public class PaginationCriterion
A pagination criterion. This criterion is aimed to a query for persisted entities in order to limit the number of return of such entities.
| Field Summary | |
|---|---|
static PaginationCriterion |
NO_PAGINATION
This instance represents no pagination. |
| Constructor Summary | |
|---|---|
PaginationCriterion(int page,
int count)
Constructs a new pagination criterion from the specified page number and count of items this page has to gather. |
|
| Method Summary | |
|---|---|
int |
getItemCount()
The maximum number of items the page has to contain. |
int |
getPageNumber()
The page number. |
boolean |
isDefined()
Is this pagination criterion defined. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final PaginationCriterion NO_PAGINATION
| Constructor Detail |
|---|
public PaginationCriterion(int page,
int count)
page - the page number. It identifies in a pagination the page of items.count - the number of items to return within the page.| Method Detail |
|---|
public int getPageNumber()
public int getItemCount()
public boolean isDefined()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||