com.ibm.websphere.sdo.mediator
Interface CountingPager
-
-
Method Summary
Methods Modifier and Type Method and Description boolean
isFirstPage(JDBCMediator mediator)
Returns true if the current page is the first pageboolean
isLastPage(JDBCMediator mediator)
Returns true if the current page is the last pagecommonj.sdo.DataObject
page(int pageNumber, JDBCMediator mediator)
Returns the root DataObject from the specified page numberint
pageCount(JDBCMediator mediator)
Returns the number of pages-
Methods inherited from interface com.ibm.websphere.sdo.mediator.Pager
getPageSize, next, previous
-
-
-
-
Method Detail
-
isFirstPage
boolean isFirstPage(JDBCMediator mediator) throws MediatorException
Returns true if the current page is the first page- Parameters:
mediator
-- Returns:
- true if the current page is the first page
- Throws:
MediatorException
-
isLastPage
boolean isLastPage(JDBCMediator mediator) throws MediatorException
Returns true if the current page is the last page- Parameters:
mediator
-- Returns:
- true if the current page is the last page
- Throws:
MediatorException
-
page
commonj.sdo.DataObject page(int pageNumber, JDBCMediator mediator) throws MediatorException
Returns the root DataObject from the specified page number- Parameters:
pageNumber
-mediator
-- Returns:
- the data object
- Throws:
MediatorException
-
pageCount
int pageCount(JDBCMediator mediator) throws MediatorException
Returns the number of pages- Parameters:
mediator
-- Returns:
- the page count
- Throws:
MediatorException
-
-