|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.csdn.jpa.model.Model.JPAQuery
public static class Model.JPAQuery
| Field Summary | |
|---|---|
javax.persistence.Query |
query
|
String |
sq
|
| Constructor Summary | |
|---|---|
Model.JPAQuery(javax.persistence.Query query)
|
|
Model.JPAQuery(String sq,
javax.persistence.Query query)
|
|
| Method Summary | ||
|---|---|---|
Model.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 |
|
Model.JPAQuery |
setParameter(String name,
Object param)
Set a named parameter for this query. |
|
| 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 Model.JPAQuery(String sq,
javax.persistence.Query query)
public Model.JPAQuery(javax.persistence.Query query)
| Method Detail |
|---|
public <T> T first()
public Model.JPAQuery bind(String name,
Object param)
public Model.JPAQuery setParameter(String name,
Object param)
public <T> List<T> fetch()
public <T> List<T> fetch(int max)
max - Max results to fetch
public <T> Model.JPAQuery from(int position)
position - Position of the first element
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 | |||||||||