Class AbstractPagingItemReader<T>

All Implemented Interfaces:
ItemReader<T>, ItemStream, ItemStreamReader<T>, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
HibernatePagingItemReader, JdbcPagingItemReader, JpaPagingItemReader

public abstract class AbstractPagingItemReader<T> extends AbstractItemCountingItemStreamItemReader<T> implements org.springframework.beans.factory.InitializingBean
Abstract ItemStreamReader for to extend when reading database records in a paging fashion.

Implementations should execute queries using paged requests of a size specified in setPageSize(int). Additional pages are requested when needed as method is called, returning an object corresponding to current position.

This reader is not thread-safe.
Thomas Risberg, Dave Syer, Mahmoud Ben Hassine