com.crystaldecisions.sdk.occa.infostore
Interface IPagingQuery

All Superinterfaces:
IPagingQueryBase

public interface IPagingQuery
extends IPagingQueryBase

This interface provides information about a paged result set.

The underlying implementation caches certain information to maintain the state of pages across page reloads. While it manages cache use, it must also optimize query efficiency and memory use. When you use this interface, ensure that you do the following:


Method Summary
 IInfoObjects getPage()
           Gets the current page content as an IInfoObjects collection.
 void setParameters(java.lang.String tables, int propSet, SearchPattern pattern, SortType sortBy)
           Sets the parameters for a paging query.
 
Methods inherited from interface com.crystaldecisions.sdk.occa.infostore.IPagingQueryBase
getCurrPageNumber, getItemsPerPage, getPagesPerRange, getRangeFirstPageNumber, getRangeLastPageNumber, hasNextPage, hasNextRange, hasPrevPage, hasPrevRange, moveToFirstPage, moveToLastPage, moveToNextPage, moveToNextRange, moveToPreviousPage, moveToPreviousRange, setCurrPageNumber, setItemsPerPage, setPagesPerRange
 

Method Detail

setParameters

public void setParameters(java.lang.String tables,
                          int propSet,
                          SearchPattern pattern,
                          SortType sortBy)
                   throws SDKException

Sets the parameters for a paging query.

Parameters:
tables - The String that specifies the table in the CMS for the query. Choose from CI_INFOOBJECTS, CI_SYSTEMOBJECTS and CI_APPOBJECTS to construct the query. Most queries will require CI_INFOOBJECTS and CI_SYSTEMOBJECTS.
propSet - The int that specifies the PropertySet that defines the set of objects that are returned from the repository.
pattern - The SearchPattern that specifies the search pattern for the query.
sortBy - The SortType that specifies the sort type for the query.
Throws:
SDKException - This is thrown if the process is unsuccessful.

getPage

public IInfoObjects getPage()
                     throws SDKException

Gets the current page content as an IInfoObjects collection.

Returns:
The IInfoObjects colletion in the current page.
Throws:
SDKException - This is thrown if the process is unsuccessful.