19 package org.turro.jpa.iterator;
21 import java.util.List;
22 import org.turro.elephant.db.WhereClause;
23 import org.turro.jpa.Dao;
38 private int _page = 10, _curr = -1;
64 return dao.getResultList(wc);
72 value = (value * _page) - _page;
87 return (
int) Math.ceil((_curr) / (_page + 0.0d));
94 return (
int) Math.ceil((
_total + 0.0d) / (_page + 0.0d));
127 private void setWhereClause() {
128 if(this.wc ==
null) {
135 private void setCountClause() {
136 if(this.cwc ==
null) {
142 private void loadItems() {
143 items =
dao.getResultList(wc, _curr, _page);
Object getSingleResult(WhereClause wc)
abstract WhereClause getCountClause()
abstract WhereClause getWhereClause()
List< E > getTotalItems()