class Query

representation of a stored query. More...

Contains pure virtuals
Full nameKDB::Query
Definition#include <query.h>
InheritsKDB::DataObject
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


Detailed Description

representation of a stored query. trough this object we access the fields and parameters of the query, if any.

 Query ( const char * name )

Query ()

[virtual]

void  addField (const QString &table, const QString &name)

[pure virtual]

append a new field to the output list of the query it works only in design mode

void  addTable (const QString &name)

[pure virtual]

add a table to the existing output list of tables

void  addCondition (const QString &condition)

[pure virtual]

add a condition (where clause) to the query

QString  SQL ()

[pure virtual]

return the SQL code associated to the query. if the query is in design mode, it will build with the actual tables, fields and conditions

Recordset *  openRecordset ()

[pure virtual]

creates a recordset based on this query.

bool  isDesign ()

[pure virtual]

returns true if the query is in design mode

QString m_SQL

[protected]

QStringList m_fields

[protected]

QStringList m_tables

[protected]

QStringList m_conditions

[protected]


Generated by: pradu@server.rete.casa on Fri Jul 28 15:15:55 2000, using kdoc 2.0a36.