za.org.coefficient.interfaces
Interface Pager

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
HibernatePager

public interface Pager
extends java.io.Serializable

Title: Project Engine

Description: An interface to a Pager mechanism. The pager maintains some underlying data source in a paged structure, allowing for page by page retrieval of data.

Copyright: Copyright (c) 2002

Company: CSIR

Version:
1.0
Author:
Thomas Fogwill

Method Summary
 java.util.List currentPage()
          Returns the data in the current page.
 boolean hasNextPage()
          Checks whether there is a "next" page of data
 boolean hasPreviousPage()
          Checks whether there is a "previous" page of data
 void next()
          Moves to the next page of data.
 java.util.List nextPage()
          Moves to the next page of data, and returns the data in that page.
 void previous()
          Moves to the previous page of data.
 java.util.List previousPage()
          Moves to the previous page of data, and returns the data in that page.
 

Method Detail

currentPage

java.util.List currentPage()
Returns the data in the current page.


hasNextPage

boolean hasNextPage()
Checks whether there is a "next" page of data


hasPreviousPage

boolean hasPreviousPage()
Checks whether there is a "previous" page of data


next

void next()
Moves to the next page of data.


nextPage

java.util.List nextPage()
Moves to the next page of data, and returns the data in that page.


previous

void previous()
Moves to the previous page of data.


previousPage

java.util.List previousPage()
Moves to the previous page of data, and returns the data in that page.



Copyright CSIR. All Rights Reserved.