Dekoh platform API

dekoh.portal.fwk.persistence
Class Page

java.lang.Object
  extended by dekoh.portal.fwk.persistence.Page

public class Page
extends Object

Return value for a paginated ResultSet of DigitalObjects that match a query.

An instance of this class is returned by DIOEntityManager's paginate() method.

Since:
Jan 29, 2007

Field Summary
static int PAGE_DEFAULT_SIZE
           
static String PAGE_NUMBER_PARAM
           
static String PAGE_SIZE_PARAM
           
static String PAGE_TOTAL_PARAM
           
 
Constructor Summary
Page()
           
Page(int pageNumber)
           
Page(int pageNumber, int pageSize)
           
 
Method Summary
 List getDigitalObjects()
           
 int getPageNumber()
           
 int getPageSize()
           
 int getTotalDios()
           
 boolean hasNext()
           
 boolean hasPrevious()
           
 int nextPage()
           
 int previouPage()
           
 void setDigitalObjects(List digitalObjects)
           
 void setPageNumber(int pageNumber)
           
 void setPageSize(int pageSize)
           
 void setTotalDios(int totalDios)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PAGE_NUMBER_PARAM

public static final String PAGE_NUMBER_PARAM
See Also:
Constant Field Values

PAGE_SIZE_PARAM

public static final String PAGE_SIZE_PARAM
See Also:
Constant Field Values

PAGE_TOTAL_PARAM

public static final String PAGE_TOTAL_PARAM
See Also:
Constant Field Values

PAGE_DEFAULT_SIZE

public static final int PAGE_DEFAULT_SIZE
See Also:
Constant Field Values
Constructor Detail

Page

public Page()

Page

public Page(int pageNumber,
            int pageSize)

Page

public Page(int pageNumber)
Method Detail

getPageNumber

public int getPageNumber()

setPageNumber

public void setPageNumber(int pageNumber)

getPageSize

public int getPageSize()

setPageSize

public void setPageSize(int pageSize)

getTotalDios

public int getTotalDios()

setTotalDios

public void setTotalDios(int totalDios)

getDigitalObjects

public List getDigitalObjects()

setDigitalObjects

public void setDigitalObjects(List digitalObjects)

hasPrevious

public boolean hasPrevious()

hasNext

public boolean hasNext()

nextPage

public int nextPage()

previouPage

public int previouPage()

toString

public String toString()
Overrides:
toString in class Object

Dekoh platform API

© 2009 Pramati Technologies - Dekoh - Portal for Developers