Tuscany DAS for Relational Databases

org.apache.tuscany.das.rdb.impl
Class PagerImpl

java.lang.Object
  extended by org.apache.tuscany.das.rdb.impl.PagerImpl
All Implemented Interfaces:
Pager

public class PagerImpl
extends Object
implements Pager


Constructor Summary
PagerImpl(Command command, int size)
           
 
Method Summary
 DataObject getPage(int page)
          Return a specific identified page.
 DataObject next()
          Get the next page of data
 DataObject previous()
          Get the page prior to the last page returned
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PagerImpl

public PagerImpl(Command command,
                 int size)
Method Detail

next

public DataObject next()
Description copied from interface: Pager
Get the next page of data

Specified by:
next in interface Pager
Returns:
the next page of data

getPage

public DataObject getPage(int page)
Description copied from interface: Pager
Return a specific identified page.

Specified by:
getPage in interface Pager
Parameters:
page - The number of the page to return
Returns:
the indicated page

previous

public DataObject previous()
Description copied from interface: Pager
Get the page prior to the last page returned

Specified by:
previous in interface Pager
Returns:
the previous page

Tuscany DAS for Relational Databases

-