Index

DKCombinedQueryOptDL

Purpose:

DKCombinedQueryOptDL is a concrete subclass of dkQueryBase, that represents and executes a combination of text, image, and parametric queries. The difference between DKCombinedQuery and DKCombinedQueryOptDL, is DKCombinedQueryOptDL is sending parametric query informaction to DB2 or some other database directly. Combined queries provide multiple-search capability on the specified datastore by coordinating the execution of their sub-queries. The final result is an intersection between the given scopes and all of its sub-query results.

Class summary:

class DKCombinedQueryOptDL : public dkQueryBase
{ 
  public:
   DKCombinedQueryOptDL();
   DKCombinedQueryOptDL(const DKCombinedQueryOptDL& fromQuery);
   virtual ~DKCombinedQueryOptDL();
 
   virtual void prepare(const DKNVPair* params);
   virtual void execute(const DKNVPair* params);
   virtual DKQueryStatus status();
   virtual DKAny  result(DKBoolean fDelete = TRUE);
   virtual unsigned long numberOfResults();
   virtual dkResultSetCursor* resultSetCursor();
};

Members:

Constructors and destructor
The first constructor constructs a combined query object. The second consrtuctor constructs a combined query from an existing combined query object.
DKCombinedQueryOptDL();
DKCombinedQueryOptDL(const DKCombinedQueryOptDL& fromQuery);
virtual ~DKCombinedQueryOptDL();
 

Member functions

prepare
Prepare is inherit from the dkQuery class, it is not functional for this class.
virtual void prepare(const DKNVPair* params);

execute
Executes the query. This is functional with the DKParametric class parameter only.
virtual void execute(const DKNVPair* params);

status
Gets the query status.
virtual DKQueryStatus status(); 

result
Gets query result.
virtual DKAny result(DKBoolean fDelete = TRUE);

numberOfResults
Gets the number of query results.
virtual unsigned long numberOfResults();
 

resultSetCursor
Gets the query result in a dkResultSetCursor object.
virtual dkResultSetCursor* resultSetCursor();

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