|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.trg.search.SearchResult<T>
public class SearchResult<T>
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.
| 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 |
|---|
protected java.util.List<T> result
protected int totalCount
| Constructor Detail |
|---|
public SearchResult()
| Method Detail |
|---|
public java.util.List<T> getResult()
public void setResult(java.util.List<T> results)
public int getTotalCount()
public void setTotalCount(int totalCount)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||