com.sage.orion.sdata.servlet
Class IndexedPagingInfo

java.lang.Object
  extended by com.sage.orion.sdata.servlet.PagingInfo
      extended by com.sage.orion.sdata.servlet.IndexedPagingInfo

public class IndexedPagingInfo
extends PagingInfo

The implementation of PagingInfo for IndexedPaging links


Field Summary
 
Fields inherited from class com.sage.orion.sdata.servlet.PagingInfo
resourceSetURL
 
Constructor Summary
IndexedPagingInfo(int pageSize, int startIndex, int currentPageSize, int totalRecords)
          Create a paging information structure with the given data.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexedPagingInfo

public IndexedPagingInfo(int pageSize,
                         int startIndex,
                         int currentPageSize,
                         int totalRecords)
Create a paging information structure with the given data.

Parameters:
pageSize - the number of records in each page. This should be the page size specified by the SData consumer (using the count parameter), or the default page size if the consumer did not specify a count.
startIndex - the 1-based index of the first record
currentPageSize - the number of records in the feed page being returned, which might be different from the pageSize. For example the last page may well contain less.
totalRecords - the total number of records in the whole set (including those not yet returned)


Copyright © 2011 Sage Software, Inc. All rights reserved.