|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResultList<T>
List with extensions to provide more information about the operation result.
This interface is intended to be used as a result of search or list operations. It contains the results as a normal list would contain, but it also provides more information about the result. E.g. It may return the total number of results that matched the query. The list itself may contain only subset of all objects, e.g. when constrained by paging request. This list result also total count, therefore appropriate GUI controls or progress bars can be displayed.
Method Summary | |
---|---|
java.lang.Integer |
getTotalResultCount()
Returns total number of all objects that matched a search/list criteria. |
void |
setTotalResultCount(java.lang.Integer count)
Sets total number of all objects that matched a search/list criteria. |
Methods inherited from interface java.util.List |
---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
Method Detail |
---|
java.lang.Integer getTotalResultCount()
Returns total number of all objects that matched a search/list criteria.
It may be different from the list size e.g. if paging control was used in the request.
totalResultCount may be null. This means that repository cannot determine the total number of results. Negative value must not be used.
void setTotalResultCount(java.lang.Integer count)
Sets total number of all objects that matched a search/list criteria.
It may be different from the list size e.g. if paging control was used in the request.
totalResultCount may be null. This means that repository cannot determine the total number of results. Negative value must not be used.
count
- total number of all objects that matched a search/list criteria (or null).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |