Index

DXParametricQueryV4

Purpose:

This is the class that is used to represent a parametric query for VisualInfo for AS/400.

Methods:

initialization
        init(LPDISPATCH ds,     LPCTSTR queryString);

This method must be called following the creation of a DXParametricQueryV4 object (except for methods returning a DXParametricQueryV4 object). The method initializes the query object with the datastore and query string. The input parameter LPDISPATCH pointer contains a DXDatastoreV4 object.

datastore
        LPDISPATCH datastore();

Gets the datastore. The returned LPDISPATCH pointer contains a DXDatastoreV4 object.

qlType
        short   qlType();

Gets the query language type.

queryString
        BSTR queryString();

Gets the query string.

prepare
        prepare([VARIANT parms]);

Prepares the query. The optional parameter is in the form af an array of DXNVPairV4 objects.

execute
        execute([VARIANT parms]);

Executes the query. The optional parameter is in the form af an array of DXNVPairV4 objects.

status
        long status();

Gets the status of the query.

result
        VARIANT result();

Gets the result collection. The value of the VARIANT is a DXResultsV4 object.

resultSetCursor
        LPDISPATCH resultSetCursor();

Gets the result set cursor. The returned LPDISPATCH pointer contains a DXResultSetCursorV4 object.

numberOfResults
        long numberOfResults();

Gets the number of results.

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