|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.db.jpa.JPASupport.JPAQuery
public static class JPASupport.JPAQuery
A JPAQuery
Field Summary | |
---|---|
javax.persistence.Query |
query
|
java.lang.String |
sq
|
Constructor Summary | |
---|---|
JPASupport.JPAQuery(javax.persistence.Query query)
|
|
JPASupport.JPAQuery(java.lang.String sq,
javax.persistence.Query query)
|
Method Summary | ||
---|---|---|
|
all()
Deprecated. |
|
JPASupport.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 |
|
|
one()
Deprecated. |
|
|
page(int page,
int length)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public javax.persistence.Query query
public java.lang.String sq
Constructor Detail |
---|
public JPASupport.JPAQuery(java.lang.String sq, javax.persistence.Query query)
public JPASupport.JPAQuery(javax.persistence.Query query)
Method Detail |
---|
@Deprecated public <T> T one()
public <T> T first()
public JPASupport.JPAQuery bind(java.lang.String name, java.lang.Object param)
@Deprecated public <T> java.util.List<T> all()
public <T> java.util.List<T> fetch()
public <T> java.util.List<T> fetch(int max)
max
- Max results to fetch
public <T> JPASupport.JPAQuery from(int position)
position
- Position of the first element
@Deprecated public <T> java.util.List<T> page(int page, int length)
public <T> java.util.List<T> fetch(int page, int length)
from
- Page number (start at 1)length
- (page length)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |