Index

dkQuery

Purpose:

dkQuery is an abstract class for query objects associated with one specific datastore. It is created by a datastore class. With the help of its datastores, query objects perform query processing tasks, such as preparing and executing a query, or monitoring the status of query execution and storing the results. The result of a query is usually a DKAny object that contains DKResults. Examples of dkQuery objects are DKParametricQuery and DKTextQuery, which are created by their associated datastores.

Class summary:

class dkQuery : public dkQueryBase
{
public:
   dkQuery(dkDatastore* creator, const char* queryString);
   dkQuery(const dkQuery& fromQuery);
   virtual dkQuery();
 
   virtual dkDatastore* datastore() const;
   virtual DKString queryString() const;
   virtual short    qlType() const;
 
};

Members:

Member functions

datastore
Returns the associated datastore.
virtual dkDatastore* datastore() const;

queryString
Returns the query string.
virtual DKString queryString() const;

qlType
Gets the query language type.
virtual short qlType() const;

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