|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.db.jpa.GenericModel.JPAQuery
public static class GenericModel.JPAQuery
A JPAQuery
Field Summary | |
---|---|
Query |
query
|
java.lang.String |
sq
|
Constructor Summary | |
---|---|
GenericModel.JPAQuery(Query query)
|
|
GenericModel.JPAQuery(java.lang.String sq,
Query query)
|
Method Summary | ||
---|---|---|
GenericModel.JPAQuery |
bind(java.lang.String name,
java.lang.Object param)
Bind a JPQL named parameter to the current query. |
|
|
fetch()
Retrieve all results of the query |
|
|
fetch(int max)
Retrieve results of the query |
|
|
fetch(int page,
int length)
Retrieve a page of result |
|
|
first()
|
|
|
from(int position)
Set the position to start |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Query query
public java.lang.String sq
Constructor Detail |
---|
public GenericModel.JPAQuery(java.lang.String sq, Query query)
public GenericModel.JPAQuery(Query query)
Method Detail |
---|
public <T> T first()
public GenericModel.JPAQuery bind(java.lang.String name, java.lang.Object param)
public <T> java.util.List<T> fetch()
public <T> java.util.List<T> fetch(int max)
max
- Max results to fetch
public <T> GenericModel.JPAQuery from(int position)
position
- Position of the first element
public <T> java.util.List<T> fetch(int page, int length)
page
- Page number (start at 1)length
- (page length)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |