IBM WebSphere Application ServerTM
Release 7

com.ibm.websphere.sdo.mediator
Interface CountingPager

All Superinterfaces:
Pager, java.io.Serializable

public interface CountingPager
extends Pager

A CountingPager provides advanced paging support


Method Summary
 boolean isFirstPage(JDBCMediator mediator)
          Returns true if the current page is the first page
 boolean isLastPage(JDBCMediator mediator)
          Returns true if the current page is the last page
 commonj.sdo.DataObject page(int pageNumber, JDBCMediator mediator)
          Returns the root DataObject from the specified page number
 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

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

IBM WebSphere Application ServerTM
Release 7