Class AbstractPagingItemReader<T>

    • Field Detail

      • logger

        protected org.apache.commons.logging.Log logger
      • results

        protected volatile java.util.List<T> results
    • Constructor Detail

      • AbstractPagingItemReader

        public AbstractPagingItemReader()
    • Method Detail

      • getPage

        public int getPage()
        The current page number.
        Returns:
        the current page
      • getPageSize

        public int getPageSize()
        The page size configured for this reader.
        Returns:
        the page size
      • setPageSize

        public void setPageSize​(int pageSize)
        The number of rows to retrieve at a time.
        Parameters:
        pageSize - the number of rows to fetch per page
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Check mandatory properties.
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
        See Also:
        InitializingBean.afterPropertiesSet()
      • doReadPage

        protected abstract void doReadPage()
      • doJumpToPage

        protected abstract void doJumpToPage​(int itemIndex)