fr.paris.lutece.plugins.stock.commons.dao
Class PaginationPropertiesImpl

java.lang.Object
  extended by fr.paris.lutece.plugins.stock.commons.dao.PaginationPropertiesImpl
All Implemented Interfaces:
PaginationProperties

public class PaginationPropertiesImpl
extends java.lang.Object
implements PaginationProperties

Bean used for storing pagination properties (first and last result requested)

Author:
abataille

Constructor Summary
PaginationPropertiesImpl()
          Creates a new PaginationPropertiesImpl.java object.
PaginationPropertiesImpl(int firstResult, int pageSize)
          Creates a new PaginationPropertiesImpl.java object.
 
Method Summary
 int getFirstResult()
          Returns index of the first result requested.
 int getPageSize()
          Returns number of results per page requested.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaginationPropertiesImpl

public PaginationPropertiesImpl()
Creates a new PaginationPropertiesImpl.java object.


PaginationPropertiesImpl

public PaginationPropertiesImpl(int firstResult,
                                int pageSize)
Creates a new PaginationPropertiesImpl.java object.

Parameters:
firstResult - the first result
pageSize - the page size
Method Detail

getFirstResult

public int getFirstResult()
Returns index of the first result requested.

Specified by:
getFirstResult in interface PaginationProperties
Returns:
index of the first result requested

getPageSize

public int getPageSize()
Returns number of results per page requested.

Specified by:
getPageSize in interface PaginationProperties
Returns:
number of results per page requested


Copyright © 2012 Mairie de Paris. All Rights Reserved.