com.googlecode.genericdao.search
Class SearchResult<T>

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

public class SearchResult<T>
extends Object
implements 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  List<T> result
           
protected  int totalCount
           
 
Constructor Summary
SearchResult()
           
 
Method Summary
 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.
 void setResult(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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

result

protected List<T> result

totalCount

protected int totalCount
Constructor Detail

SearchResult

public SearchResult()
Method Detail

getResult

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


setResult

public void setResult(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-2011. All Rights Reserved.