org.ow2.orchestra.facade.criteria
Class PagedResult<T>

java.lang.Object
  extended by org.ow2.orchestra.facade.criteria.PagedResult<T>
All Implemented Interfaces:
Serializable

public class PagedResult<T>
extends Object
implements Serializable

This class represents a page of ProcessInstances corresponding to a requested Criteria.

Author:
Loic Albertin
See Also:
Serialized Form

Constructor Summary
PagedResult()
           
PagedResult(List<T> elements, int totalElementsCount)
           
 
Method Summary
 List<T> getElements()
           
 long getTotalElementsCount()
           
 void setTotalElementsCount(long totalElementsCount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PagedResult

public PagedResult()

PagedResult

public PagedResult(List<T> elements,
                   int totalElementsCount)
Parameters:
elements - Returned set of ProcessInstances for this page
totalElementsCount -
Method Detail

getElements

public final List<T> getElements()
Returns:
Returns the set of ProcessInstances for this page

getTotalElementsCount

public final long getTotalElementsCount()
Returns:
Returns the total number of elements corresponding to requested Criteria restrictions.

setTotalElementsCount

public final void setTotalElementsCount(long totalElementsCount)
Parameters:
totalElementsCount - The totalElementsCount to set


Copyright © 2011 OW2 Consortium. All Rights Reserved.