com.khubla.pragmatach.framework.dao
Class PagerImpl<T,I>

java.lang.Object
  extended by com.khubla.pragmatach.framework.dao.PagerImpl<T,I>
All Implemented Interfaces:
Pager<T>

public class PagerImpl<T,I>
extends Object
implements Pager<T>

Author:
tome

Constructor Summary
PagerImpl(DAO<T,I> dao, int batchsize)
          ctor
 
Method Summary
 int getBatchsize()
           
 boolean hasNext()
           
 List<T> next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PagerImpl

public PagerImpl(DAO<T,I> dao,
                 int batchsize)
          throws PragmatachException
ctor

Throws:
PragmatachException
Method Detail

getBatchsize

public int getBatchsize()

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Pager<T>

next

public List<T> next()
             throws PragmatachException
Specified by:
next in interface Pager<T>
Throws:
PragmatachException


Copyright © 2014 khubla.com. All rights reserved.