// resets offset
if(offset.isActive())
offset.offset=0;
// disables reusable and cludge
if(state.isActive()){
state.passivate();
}
}
public <T> Iterable<T> iterPerPage(Query<T> query, int pageSize) {
((QueryOptionFetchType)query.option(QueryOptionFetchType.ID)).fetchType=QueryOptionFetchType.Type.ITER_PER_PAGE;