Package org.eclnt.ccaddons.dof
Class IDOFObjectPersistor.QueryResult
java.lang.Object
org.eclnt.ccaddons.dof.IDOFObjectPersistor.QueryResult
- Enclosing interface:
- IDOFObjectPersistor
In principle the result of a query is a list of data objects.
But: in case of managing "big" amounts of data the query logic may not
pass back all objects but only "some" objects.
Example: a query without any filter definition against an article database may return millions of items. The result: there is some potential danger that the server operations will consume quite some memory. - As consequence the query might only return back e.g. 500 items + the information that the total count of matching items is e.g. 1.000.000. THe user interface as consequence will show the user the 500 items - together with the information that only a partial view of the data is shown.
Example: a query without any filter definition against an article database may return millions of items. The result: there is some potential danger that the server operations will consume quite some memory. - As consequence the query might only return back e.g. 500 items + the information that the total count of matching items is e.g. 1.000.000. THe user interface as consequence will show the user the 500 items - together with the information that only a partial view of the data is shown.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe list of data objects matching the query.int
Total number of matching objects.void
setObjects
(List<DOFObject> objects) void
setTotalCount
(int totalCount)
-
Constructor Details
-
QueryResult
public QueryResult() -
QueryResult
-
-
Method Details
-
getObjects
The list of data objects matching the query. -
setObjects
-
getTotalCount
public int getTotalCount()Total number of matching objects. -
setTotalCount
public void setTotalCount(int totalCount)
-