com.jalios.jcms.db
Class PageResult<E>

java.lang.Object
  extended by com.jalios.jcms.db.PageResult<E>
Type Parameters:
E - any object type

public class PageResult<E>
extends Object

This class contains the result of a paged query (i.e. the sliced result list and total size of the query).

Since:
jcms-6.0.0
Author:
Olivier Dedieu

Field Summary
static String REVISION
           
 
Constructor Summary
PageResult()
          Builds a new empty PageResults
PageResult(int totalSize, LinkedHashMap<E,Float> resultMap)
           
PageResult(int totalSize, List<E> resultList)
           
 
Method Summary
 List<E> getResultList()
           
 float getScore(E obj)
           
 int getTotalSize()
           
 void setResultList(List<E> resultList)
           
 void setTotalSize(int totalSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Constructor Detail

PageResult

public PageResult()
Builds a new empty PageResults


PageResult

public PageResult(int totalSize,
                  List<E> resultList)

PageResult

public PageResult(int totalSize,
                  LinkedHashMap<E,Float> resultMap)
Method Detail

getTotalSize

public int getTotalSize()

setTotalSize

public void setTotalSize(int totalSize)

getResultList

public List<E> getResultList()

setResultList

public void setResultList(List<E> resultList)

getScore

public float getScore(E obj)


Copyright © 2001-2007 Jalios SA. All Rights Reserved.