|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hdpagination.dataaccess.orm.jpa.JPAQueryTemplate
public class JPAQueryTemplate
The type of QueryTemplate to run a pagination based query against JPA.
| Constructor Summary | |
|---|---|
JPAQueryTemplate(javax.persistence.EntityManagerFactory emFactory)
|
|
| Method Summary | |
|---|---|
int |
countRows(QueryCallback callback)
query total number of records for this search |
java.util.List |
query(QueryCallback callback,
int pageSize,
int pageNo)
execute query and return only one page of data |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JPAQueryTemplate(javax.persistence.EntityManagerFactory emFactory)
emFactory - | Method Detail |
|---|
public java.util.List query(QueryCallback callback,
int pageSize,
int pageNo)
QueryTemplate
query in interface QueryTemplatepageSize - number of records per pagepageNo - index of current page,index begins with 0.
public int countRows(QueryCallback callback)
QueryTemplate
countRows in interface QueryTemplate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||