#include <schemadata.h>
Public Member Functions | |
| SchemaData (int obj_type=KexiDB::UnknownObjectType) | |
| int | type () const |
| int | id () const |
| TQString | name () const |
| TQString | objectName () const |
| void | setName (const TQString &n) |
| TQString | caption () const |
| void | setCaption (const TQString &c) |
| TQString | description () const |
| void | setDescription (const TQString &desc) |
| virtual TQString | schemaDataDebugString () const |
| virtual bool | isNative () const |
| virtual void | setNative (bool set) |
Protected Member Functions | |
| void | clear () |
Protected Attributes | |
| int | m_type |
| int | m_id |
| TQString | m_name |
| TQString | m_caption |
| TQString | m_desc |
| bool | m_native: 1 |
Friends | |
| class | Connection |
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.
Constructor & Destructor Documentation
◆ SchemaData()
| SchemaData::SchemaData | ( | int | obj_type = KexiDB::UnknownObjectType | ) |
Definition at line 27 of file schemadata.cpp.
◆ ~SchemaData()
|
virtual |
Definition at line 34 of file schemadata.cpp.
Member Function Documentation
◆ caption()
|
inline |
Definition at line 48 of file schemadata.h.
◆ clear()
|
protected |
Clears all properties except 'type'.
Definition at line 38 of file schemadata.cpp.
◆ description()
|
inline |
Definition at line 50 of file schemadata.h.
◆ id()
|
inline |
Definition at line 43 of file schemadata.h.
◆ isNative()
|
inlinevirtual |
- Returns
- true if this is schema of native database object, like, for example like, native table. This flag is set when object schema (currently – database table) is not retrieved using kexi__* schema storage system, but just based on the information about native table.
By native object we mean the one that has no additional data like caption, description, etc. properties (no kexidb extensions).
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.
◆ name()
|
inline |
Definition at line 44 of file schemadata.h.
◆ objectName()
|
inline |
The same as name(). Added to avoid conflict with TQObject::name()
Definition at line 46 of file schemadata.h.
◆ schemaDataDebugString()
|
virtual |
- Returns
- debug string useful for debugging
Definition at line 46 of file schemadata.cpp.
◆ setCaption()
|
inline |
Definition at line 49 of file schemadata.h.
◆ setDescription()
|
inline |
Definition at line 51 of file schemadata.h.
◆ setName()
|
inline |
Definition at line 47 of file schemadata.h.
◆ setNative()
|
inlinevirtual |
Definition at line 74 of file schemadata.h.
◆ type()
|
inline |
Definition at line 42 of file schemadata.h.
Friends And Related Symbol Documentation
◆ Connection
|
friend |
Definition at line 87 of file schemadata.h.
Member Data Documentation
◆ m_caption
|
protected |
Definition at line 83 of file schemadata.h.
◆ m_desc
|
protected |
Definition at line 84 of file schemadata.h.
◆ m_id
|
protected |
Definition at line 81 of file schemadata.h.
◆ m_name
|
protected |
Definition at line 82 of file schemadata.h.
◆ m_native
|
protected |
Definition at line 85 of file schemadata.h.
◆ m_type
|
protected |
Definition at line 80 of file schemadata.h.
The documentation for this class was generated from the following files:
