kexi
KexiDB::TableOrQuerySchema Class Reference
#include <utils.h>
Detailed Description
Variant class providing a pointer to table or query.
Definition at line 136 of file kexidb/utils.h.
Public Member Functions | |
TableOrQuerySchema (Connection *conn, const QCString &name, bool table) | |
TableOrQuerySchema (FieldList &tableOrQuery) | |
TableOrQuerySchema (Connection *conn, int id) | |
TableOrQuerySchema (TableSchema *table) | |
TableOrQuerySchema (QuerySchema *query) | |
QuerySchema * | query () const |
TableSchema * | table () const |
QCString | name () const |
QString | captionOrName () const |
const QueryColumnInfo::Vector | columns (bool unique=false) |
Field * | field (const QString &name) |
QueryColumnInfo * | columnInfo (const QString &name) |
Connection * | connection () const |
QString | debugString () |
void | debug () |
Protected Attributes | |
QCString | m_name |
TableSchema * | m_table |
QuerySchema * | m_query |
Constructor & Destructor Documentation
TableOrQuerySchema::TableOrQuerySchema | ( | Connection * | conn, | |
const QCString & | name, | |||
bool | table | |||
) |
Creates a new TableOrQuerySchema variant object, retrieving table or query schema using conn connection and name.
Definition at line 185 of file kexidb/utils.cpp.
TableOrQuerySchema::TableOrQuerySchema | ( | FieldList & | tableOrQuery | ) |
Creates a new TableOrQuerySchema variant object.
tableOrQuery must be of class TableSchema or QuerySchema.
Definition at line 198 of file kexidb/utils.cpp.
TableOrQuerySchema::TableOrQuerySchema | ( | Connection * | conn, | |
int | id | |||
) |
Creates a new TableOrQuerySchema variant object, retrieving table or query schema using conn connection and id.
Definition at line 207 of file kexidb/utils.cpp.
Member Function Documentation
QString TableOrQuerySchema::captionOrName | ( | ) | const |
- Returns:
- caption (if present) or name of the table/query
Definition at line 253 of file kexidb/utils.cpp.
QueryColumnInfo * TableOrQuerySchema::columnInfo | ( | const QString & | name | ) |
Like Field* field(const QString& name); but returns all information associated with field/column name.
Definition at line 271 of file kexidb/utils.cpp.
const QueryColumnInfo::Vector TableOrQuerySchema::columns | ( | bool | unique = false |
) |
Connection * TableOrQuerySchema::connection | ( | ) | const |
- Returns:
- connection object, for table or query or 0 if there's no table or query defined.
Definition at line 299 of file kexidb/utils.cpp.
void TableOrQuerySchema::debug | ( | ) |
Shows debug information about table or query.
Definition at line 291 of file kexidb/utils.cpp.
QString TableOrQuerySchema::debugString | ( | ) |
Field * TableOrQuerySchema::field | ( | const QString & | name | ) |
- Returns:
- a field of the table or the query schema for name name or 0 if there is no such field.
Definition at line 261 of file kexidb/utils.cpp.
QCString TableOrQuerySchema::name | ( | ) | const |
QuerySchema* KexiDB::TableOrQuerySchema::query | ( | ) | const [inline] |
TableSchema* KexiDB::TableOrQuerySchema::table | ( | ) | const [inline] |
Member Data Documentation
QCString KexiDB::TableOrQuerySchema::m_name [protected] |
the name is kept here because m_table and m_table can be 0 and we still want name() and acptionOrName() work.
Definition at line 186 of file kexidb/utils.h.
The documentation for this class was generated from the following files: