KexiDB::QueryAsterisk Class Reference
#include <queryschema.h>
Inheritance diagram for KexiDB::QueryAsterisk:

Detailed Description
KexiDB::QueryAsterisk class encapsulates information about single asterisk in query definition.There are two types of query asterisks:
1. "Single-table" asterisk, that references all fields of given table used in the query. Example SQL statement:
The "staff.*" element is our "single-table" asterisk; this tells us that we want to get all fields of table "staff".2. "All-tables" asterisk, that references all fields of all tables used in the query. Example SQL statement:
The "*" is our "all-tables" asterisk; this tells us that we want to get all fields of all used tables (here: "staff" and "cars").There can be many asterisks of 1st type defined for given single query. There can be one asterisk of 2nd type defined for given single query.
Definition at line 770 of file queryschema.h.
Public Member Functions | |
| QueryAsterisk (QuerySchema *query, TableSchema *table=0) | |
| virtual | ~QueryAsterisk () |
| QuerySchema * | query () const |
| virtual TableSchema * | table () const |
| virtual void | setTable (TableSchema *table) |
| bool | isSingleTableAsterisk () const |
| bool | isAllTableAsterisk () const |
| virtual QString | debugString () |
Protected Attributes | |
| TableSchema * | m_table |
Friends | |
| class | QuerySchema |
Constructor & Destructor Documentation
|
||||||||||||
|
Constructs query asterisk definition object. Pass table schema to table if this asterisk should be of type "single-table", otherwise (if you want to define "all-tables" type asterisk), omit this parameter. QueryAsterisk objects are owned by QuerySchema object (not by TableSchema object like for ordinary Field objects) for that the QueryAsterisk object was added (using QuerySchema::addField()). Definition at line 1598 of file queryschema.cpp. References KexiDB::Field::Asterisk, KexiDB::Field::m_parent, and KexiDB::Field::setType(). |
|
|
Definition at line 1607 of file queryschema.cpp. |
Member Function Documentation
|
|
Definition at line 1617 of file queryschema.cpp. References isAllTableAsterisk(), KexiDB::SchemaData::name(), query(), and table(). |
|
|
This is convenience method that returns true if the asterisk has "single-tables" type (2nd type). Definition at line 804 of file queryschema.h. Referenced by debugString(). |
|
|
This is convenience method that returns true if the asterisk has "all-tables" type (2nd type). Definition at line 800 of file queryschema.h. |
|
|
Reimplemented from KexiDB::Field. Definition at line 787 of file queryschema.h. Referenced by debugString(). |
|
|
Sets table schema for this asterisk. table may be NULL - then the asterisk becames "all-tables" type asterisk. Reimplemented from KexiDB::Field. Definition at line 1611 of file queryschema.cpp. |
|
|
Reimplemented from KexiDB::Field. Definition at line 792 of file queryschema.h. Referenced by debugString(). |
Friends And Related Function Documentation
|
|
Reimplemented from KexiDB::Field. Definition at line 813 of file queryschema.h. |
Member Data Documentation
|
|
Table schema for this asterisk Definition at line 811 of file queryschema.h. Referenced by setTable(). |
The documentation for this class was generated from the following files:
