|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectplay.db.jpa.JPASupport.JPAQuery
public static class JPASupport.JPAQuery
A JPAQuery
| Field Summary | |
|---|---|
javax.persistence.Query |
query
|
String |
sq
|
| Constructor Summary | |
|---|---|
JPASupport.JPAQuery(javax.persistence.Query query)
|
|
JPASupport.JPAQuery(String sq,
javax.persistence.Query query)
|
|
| Method Summary | ||
|---|---|---|
|
all()
Deprecated. |
|
JPASupport.JPAQuery |
bind(String name,
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 String sq
| Constructor Detail |
|---|
public JPASupport.JPAQuery(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(String name,
Object param)
@Deprecated public <T> List<T> all()
public <T> List<T> fetch()
public <T> 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> List<T> page(int page,
int length)
public <T> 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 | |||||||||