|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.jbp.common.repository.Page
public final class Page
This class represents paging information for use in object repositories. The page is represented using the begin position and the length of the page.
Many object retrieval methods may use pagination. Page coordinates are thus passed as parameters to these methods. As these coordinates belong together, it's better to have one single argument representing the page concept than having two separate arguments.
A Page instance may be instantiated like this:
Page.newPage().begin(30).length(10);
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
Page |
firstResult(int firstResultParam)
|
int |
getFirstResult()
|
int |
getMaxResults()
|
int |
hashCode()
|
Page |
maxResults(int maxResultsParam)
|
static Page |
newPage()
Returns a new Page instance. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static Page newPage()
Page instance.
public final Page firstResult(int firstResultParam)
public final boolean equals(Object obj)
equals in class Objectpublic final int getFirstResult()
public final int getMaxResults()
public final int hashCode()
hashCode in class Objectpublic final Page maxResults(int maxResultsParam)
public final String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||