Index

DXResultsDES

Purpose:

The DXResultsDES class represents a results collection for Domino Extended Search (DES).

Methods:

Initialization
init(LPDISPATCH ds);

This method must be called following the creation of a DXResultsDES object (except for methods returning a DXResultsDES object). The method initializes the collection object with the datastore. The input parameter LPDISPATCH pointer contains either a DXDatastoreDES object or a DXDatastoreTS object or a DXDatastoreQBIC object.

cardinality
long cardinality();

Returns the number of elements in the collection.

createIterator
LPDISPATCH createIterator();

Creates an iterator to iterate over a collection. The returned LPDISPATCH pointer contains a DXSequentialIteratorDES object.

addElement
addElement(VARIANT element);

Adds an element to the collection.

retrieveElementAt
VARIANT retrieveElementAt(LPDISPATCH where);

Returns the element the iterator is pointing at.

removeElementAt
removeElementAt(LPDISPATCH where);

Removes the element the iterator is pointing at. The input parameter LPDISPATCH pointer contains a DXSequentialIteratorDES object.

removeAllElements
removeAllElements();

Removes all elements in the collection.

insertElementAt
insertElementAt(VARIANT element, LPDISPATCH where);

Adds a new element, after the element the iterator currently points to. The input parameter LPDISPATCH pointer contains a DXSequentialIteratorDES object.

replaceElementAt
replaceElementAt(VARIANT element, LPDISPATCH where);

Replaces the element the iterator is pointing at. The input parameter LPDISPATCH pointer contains a DXSequentialIteratorDES object.

evaluate
VARIANT evaluate(LPCTSTR query, short ql_type [,VARIANT paramList]);

Evaluates the given query of the given query language type with the optional parameter list of an array of DXNVPairDES objects and returns the results. The value of the returned VARIANT is a DXResultsDES object. Replaces the element the iterator is pointing at. The input parameter LPDISPATCH pointer contains a DXSequentialIteratorDES object.

(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.