public String buildPagingQuery ( int inPageIndex ) { this . setPageIndex ( inPageIndex ) ; String pageFilter = "\npage:\n" + " size: " + pageSize + "\n" + " start: " + pageIndex ; this . setPagingQuery ( this . getBasicQuery ( ) + pageFilter ) ; return this . getPagingQuery ( ) ; }
Creates a query on demand based on a given basic query and a specified page index value . It is recommended to use this method in a loop to ensure all pages are covered .