Class PagingDataSetIterator<ID extends Serializable,​T extends AbstractEntity<ID>>

  • Type Parameters:
    ID - the type of the primary key of the entity
    T - the type of the entity
    All Implemented Interfaces:
    DataSetIterator<ID,​T>

    public abstract class PagingDataSetIterator<ID extends Serializable,​T extends AbstractEntity<ID>>
    extends Object
    implements DataSetIterator<ID,​T>
    An iterator for traversing large data sets without loading them all into memory
    Author:
    bas.rutten
    • Constructor Detail

      • PagingDataSetIterator

        public PagingDataSetIterator​(List<ID> idList)
        Constructor
        Parameters:
        idList - the IDs of the relevant records
      • PagingDataSetIterator

        public PagingDataSetIterator​(List<ID> idList,
                                     int pageSize)
        Constructor
        Parameters:
        idList - the IDs of the relevant records
        pageSize - the page size