Class IDOFObjectPersistor.QueryResult

java.lang.Object
org.eclnt.ccaddons.dof.IDOFObjectPersistor.QueryResult
Enclosing interface:
IDOFObjectPersistor

public static class IDOFObjectPersistor.QueryResult extends Object
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.
  • Constructor Details

    • QueryResult

      public QueryResult()
    • QueryResult

      public QueryResult(List<DOFObject> objects, int totalCount)
  • Method Details

    • getObjects

      public List<DOFObject> getObjects()
      The list of data objects matching the query.
    • setObjects

      public void setObjects(List<DOFObject> objects)
    • getTotalCount

      public int getTotalCount()
      Total number of matching objects.
    • setTotalCount

      public void setTotalCount(int totalCount)