com.trg.search
Class SearchResult<T>

java.lang.Object
  extended by com.trg.search.SearchResult<T>
All Implemented Interfaces:
java.io.Serializable

public class SearchResult<T>
extends java.lang.Object
implements java.io.Serializable

This class is used to return the results of searchAndCount() operations. It has just two properties: the results and the search and the total (unpaged) count of the search.

Author:
dwolverton
See Also:
Serialized Form

Field Summary
protected  java.util.List<T> result
           
protected  int totalCount
           
 
Constructor Summary
SearchResult()
           
 
Method Summary
 java.util.List<T> getResult()
          The results of the search.
 int getTotalCount()
          The total number of results that would have been returned if no maxResults had been specified. (-1 means unspecified.)
 void setResult(java.util.List<T> results)
          The results of the search.
 void setTotalCount(int totalCount)
          The total number of results that would have been returned if no maxResults had been specified. (-1 means unspecified.)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

result

protected java.util.List<T> result

totalCount

protected int totalCount
Constructor Detail

SearchResult

public SearchResult()
Method Detail

getResult

public java.util.List<T> getResult()
The results of the search.


setResult

public void setResult(java.util.List<T> results)
The results of the search.


getTotalCount

public int getTotalCount()
The total number of results that would have been returned if no maxResults had been specified. (-1 means unspecified.)


setTotalCount

public void setTotalCount(int totalCount)
The total number of results that would have been returned if no maxResults had been specified. (-1 means unspecified.)



Copyright © 2008-2010 eBM WebSourcing. All Rights Reserved.