public class SearchResult<T> extends Object implements Serializable
searchAndCount()
operations. It has just two properties: the results and the search and the
total (unpaged) count of the search.| Modifier and Type | Field and Description |
|---|---|
protected List<T> |
result |
protected int |
totalCount |
| Constructor and Description |
|---|
SearchResult() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public int getTotalCount()
public void setTotalCount(int totalCount)
Copyright © 2008-2013. All Rights Reserved.