|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.baka.tools.jpa.Paging
@Immutable public final class Paging
Paging criteria.
| Field Summary | |
|---|---|
int |
firstResult
the start position of the first result, numbered from 0. |
int |
maxResults
the maximum number of results to retrieve. |
| Constructor Summary | |
|---|---|
Paging(int firstResult,
int maxResults)
Creates new paging results criteria. |
|
| Method Summary | |
|---|---|
javax.persistence.Query |
apply(javax.persistence.Query query)
Applies the paging criteria to given query. |
boolean |
equals(Object obj)
|
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final int firstResult
public final int maxResults
| Constructor Detail |
|---|
public Paging(int firstResult,
int maxResults)
firstResult - the start position of the first result, numbered from 0.maxResults - the maximum number of results to retrieve.| Method Detail |
|---|
public javax.persistence.Query apply(javax.persistence.Query query)
query - the query
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||