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

Nested Class Summary
static class PageResult.Status
           
 
Field Summary
static String REVISION
           
 
Constructor Summary
PageResult()
          Builds a new empty PageResults
PageResult(int totalSize, LinkedHashMap<E,Float> resultMap)
           
PageResult(int totalSize, LinkedHashMap<E,Float> resultMap, PageResult.Status status)
           
PageResult(int totalSize, List<E> resultList)
           
PageResult(int totalSize, List<E> resultList, PageResult.Status status)
           
PageResult(int totalSize, PageResult.Status status)
           
 
Method Summary
 List<E> getResultList()
           
 float getScore(E obj)
           
 PageResult.Status getStatus()
           
 int getTotalSize()
           
 void setResultList(List<E> resultList)
           
 void setStatus(PageResult.Status status)
           
 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,
                  PageResult.Status status)

PageResult

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

PageResult

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

PageResult

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

PageResult

public PageResult(int totalSize,
                  LinkedHashMap<E,Float> resultMap,
                  PageResult.Status status)
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)

setStatus

public void setStatus(PageResult.Status status)

getStatus

public PageResult.Status getStatus()


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