com.ibm.websphere.sdo.mediator

Interface CountingPager

All Superinterfaces:
Pager, java.io.Serializable

  1. public interface CountingPager
  2. extends Pager
A CountingPager provides advanced paging support

Method Summary

Modifier and Type Method and Description
  1. boolean
isFirstPage(JDBCMediator mediator)
Returns true if the current page is the first page
  1. boolean
isLastPage(JDBCMediator mediator)
Returns true if the current page is the last page
  1. commonj.sdo.DataObject
page(int pageNumber,JDBCMediator mediator)
Returns the root DataObject from the specified page number
  1. int
pageCount(JDBCMediator mediator)
Returns the number of pages
Methods inherited from interface com.ibm.websphere.sdo.mediator.Pager
getPageSize, next, previous

Method Detail

isFirstPage

  1. boolean isFirstPage(JDBCMediator mediator)
  2. 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:

isLastPage

  1. boolean isLastPage(JDBCMediator mediator)
  2. 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:

page

  1. commonj.sdo.DataObject page(int pageNumber,
  2. JDBCMediator mediator)
  3. throws MediatorException
Returns the root DataObject from the specified page number
Parameters:
pageNumber -
mediator -
Returns:
the data object
Throws:

pageCount

  1. int pageCount(JDBCMediator mediator)
  2. throws MediatorException
Returns the number of pages
Parameters:
mediator -
Returns:
the page count
Throws: