KexiDB::SchemaData Class Reference
#include <schemadata.h>
Inheritance diagram for KexiDB::SchemaData:

Detailed Description
Container class that stores common kexi object schema's properties like id, name, caption, help text. By kexi object we mean in-db storable object like table schema or query schema.
Definition at line 36 of file schemadata.h.
Public Member Functions | |
| SchemaData (int obj_type=KexiDB::UnknownObjectType) | |
| virtual | ~SchemaData () |
| int | type () const |
| int | id () const |
| QString | name () const |
| QString | objectName () const |
| void | setName (const QString &n) |
| QString | caption () const |
| void | setCaption (const QString &c) |
| QString | description () const |
| void | setDescription (const QString &desc) |
| virtual QString | schemaDataDebugString () const |
| virtual bool | isNative () const |
| virtual void | setNative (bool set) |
Protected Member Functions | |
| void | clear () |
| Clears all properties except 'type'. | |
Protected Attributes | |
| int | m_type |
| int | m_id |
| QString | m_name |
| QString | m_caption |
| QString | m_desc |
| bool | m_native: 1 |
Friends | |
| class | Connection |
Constructor & Destructor Documentation
|
|
Definition at line 27 of file schemadata.cpp. |
|
|
Definition at line 34 of file schemadata.cpp. |
Member Function Documentation
|
|
Definition at line 48 of file schemadata.h. Referenced by KexiDB::TableOrQuerySchema::captionOrName(), KexiDBShortcutFile::saveProjectData(), KexiDBConnectionWidget::setDataInternal(), and KexiDB::Connection::storeObjectSchemaData(). |
|
|
Clears all properties except 'type'.
Reimplemented in KexiDB::QuerySchema, and KexiDB::TableSchema. Definition at line 38 of file schemadata.cpp. References m_caption, m_desc, m_id, and m_name. Referenced by KexiDB::TableSchema::clear(), and KexiDB::QuerySchema::clear(). |
|
|
Reimplemented in KexiProjectData. Definition at line 50 of file schemadata.h. Referenced by KexiProjectData::description(), and KexiDB::Connection::storeObjectSchemaData(). |
|
|
|
Native objects schemas are used mostly for representing kexi system (kexi__*) tables in memory for later reference; see Connection::tableNames(). By default (on allocation) SchemaData objects are not native. Reimplemented in KexiDB::TableSchema. Definition at line 71 of file schemadata.h. |
|
|
|
The same as name(). Added to avoid conflict with QObject::name() Definition at line 46 of file schemadata.h. Referenced by KexiProject::dropProject(). |
|
|
Definition at line 46 of file schemadata.cpp. References m_caption, m_desc, m_id, and m_name. Referenced by KexiDB::TableSchema::debugString(), KexiDB::QuerySchema::debugString(), and KexiDB::IndexSchema::debugString(). |
|
|
|
Reimplemented in KexiProjectData. Definition at line 51 of file schemadata.h. Referenced by KexiCSVImportDialog::accept(), KexiPart::Part::openInstance(), KexiProjectData::setDescription(), and KexiDialogBase::storeNewData(). |
|
|
Definition at line 47 of file schemadata.h. Referenced by KexiDB::Connection::alterTableName(), KexiProject::createInternalStructures(), KexiDB::AlterTableHandler::execute(), KexiPart::Part::openInstance(), KexiProjectData::setDatabaseName(), and KexiDialogBase::storeNewData(). |
|
|
Reimplemented in KexiDB::TableSchema. Definition at line 74 of file schemadata.h. |
|
|
Definition at line 42 of file schemadata.h. Referenced by KexiDB::Connection::storeObjectSchemaData(). |
Friends And Related Function Documentation
|
|
Reimplemented in KexiDB::IndexSchema, KexiDB::QuerySchema, and KexiDB::TableSchema. Definition at line 87 of file schemadata.h. |
Member Data Documentation
|
|
Definition at line 83 of file schemadata.h. Referenced by clear(), KexiDB::QuerySchema::QuerySchema(), schemaDataDebugString(), and KexiDB::Connection::setupObjectSchemaData(). |
|
|
Definition at line 84 of file schemadata.h. Referenced by clear(), schemaDataDebugString(), and KexiDB::Connection::setupObjectSchemaData(). |
|
|
|
Definition at line 82 of file schemadata.h. Referenced by clear(), KexiDB::QuerySchema::QuerySchema(), schemaDataDebugString(), KexiDB::Connection::setupObjectSchemaData(), KexiDB::Connection::setupQuerySchema(), KexiDB::Connection::setupTableSchema(), and KexiDB::TableSchema::TableSchema(). |
|
|
Definition at line 85 of file schemadata.h. Referenced by KexiDB::TableSchema::setKexiDBSystem(), and KexiDB::TableSchema::setNative(). |
|
|
Definition at line 80 of file schemadata.h. Referenced by KexiDB::QuerySchema::init(). |
The documentation for this class was generated from the following files:
