Chapter 7. Building a generic application 183
7.3.14 Processing search results: CMBSearchResults
CMBSearchResults manages the results generated by the CMBQueryService
and CMBSearchTemplate beans. It has methods for returning arrays of CMBItem
beans, each bean representing an item that matched the search criteria. It has its
own sort method that you may supply a particular attribute to sort on.
As mentioned in the previous section, for asynchronous searches,
CMBSearchResults listens to CMBSearchReplyEvents from CMBQueryService
or CMBSearchTemplate. Alternatively, for synchronous searches, results can be
obtained from getResults() method of CMBQueryService.
Here are some of the CMBSearchResults methods:
int getCount() — Get the total hit coun ...