addCollection (QueryResultsProcessor - Java

Adds a pre-created DocumentCollection or ViewEntryCollection of documents to be included in the sorted and formatted results. The collection can be created by any means.

Defined in



public void addCollection(lotus.domino.Base collection, String referencename)
    throws NotesException


lotus.domino.Base collection

The pre-created DocumentCollection or ViewEntryCollection object to be included in QueryResultsProcessor execution.

String referencename

A unique name (to the QueryResultsProcessor instance) of the input collection. This name is used in returned entries when the origin of results is desired and in addFormula method calls to override the data used to create sorted column values.


QueryResultsProcessor qrp = dbb.createQueryResultsProcessor ();
DominoQuery dq = dbb.createDominoQuery();
qrp.addDominoQuery(dq, “sales_person = ‘Trudi Ayton’”, ‘coll2’);