kexi
KexiDB::TableSchema Class Reference
#include <tableschema.h>
Inheritance diagram for KexiDB::TableSchema:

Detailed Description
KexiDB::TableSchema provides information about native database table that can be stored using SQL database engine.
Definition at line 42 of file tableschema.h.
Public Types | |
typedef QPtrList< TableSchema > | List |
typedef QPtrListIterator< TableSchema > | ListIterator |
Public Member Functions | |
TableSchema (const QString &name) | |
TableSchema (const SchemaData &sdata) | |
TableSchema () | |
TableSchema (const TableSchema &ts) | |
virtual | ~TableSchema () |
virtual FieldList & | insertField (uint index, Field *field) |
virtual void | removeField (KexiDB::Field *field) |
IndexSchema * | primaryKey () const |
void | setPrimaryKey (IndexSchema *pkey) |
const IndexSchema::ListIterator | indicesIterator () const |
const IndexSchema::List * | indices () |
virtual void | clear () |
virtual QString | debugString () |
Connection * | connection () const |
bool | isKexiDBSystem () const |
void | setKexiDBSystem (bool set) |
virtual bool | isNative () const |
virtual void | setNative (bool set) |
QuerySchema * | query () |
Field * | anyNonPKField () |
Protected Member Functions | |
TableSchema (Connection *conn, const QString &name=QString::null) | |
void | init () |
Protected Attributes | |
IndexSchema::List | m_indices |
QGuardedPtr< Connection > | m_conn |
IndexSchema * | m_pkey |
QuerySchema * | m_query |
Private * | d |
Friends | |
class | Connection |
Member Typedef Documentation
|
Type of tables list.
Definition at line 45 of file tableschema.h. |
|
Iterator for tables list.
Definition at line 46 of file tableschema.h. |
Constructor & Destructor Documentation
|
Copy constructor. Definition at line 75 of file tableschema.cpp. |
|
Automatically retrieves table schema via connection. Definition at line 100 of file tableschema.cpp. |
Member Function Documentation
|
Definition at line 321 of file tableschema.cpp. |
|
Removes all fields from the list, clears name and all other properties.
Reimplemented from KexiDB::FieldList. Definition at line 237 of file tableschema.cpp. |
|
Definition at line 96 of file tableschema.h. |
|
Reimplemented from KexiDB::FieldList. Definition at line 291 of file tableschema.cpp. |
|
Inserts field into a specified position (index). 'order' property of field is set automatically. Reimplemented from KexiDB::FieldList. Definition at line 152 of file tableschema.cpp. |
|
isKexiDBSystem()==true implies isNative()==true. By default (after allocation), TableSchema object has this property set to false. Definition at line 112 of file tableschema.h. |
|
Reimplemented from KexiDB::SchemaData. Definition at line 121 of file tableschema.h. |
|
Definition at line 68 of file tableschema.h. |
|
Definition at line 313 of file tableschema.cpp. |
|
Reimplemented for internal reasons. Reimplemented from KexiDB::FieldList. Definition at line 193 of file tableschema.cpp. |
|
Sets KexiDBSystem flag to on or off. When on, native flag is forced to be on. When off, native flag is not affected.
Definition at line 296 of file tableschema.cpp. |
|
Sets table's primary key index to pkey. Pass pkey==0 if you want to unassign existing primary key ("primary" property of given IndexSchema object will be cleared then so this index becomes ordinary index, still existing on table indeices list). If this table already has primary key assigned, it is unassigned using setPrimaryKey(0) call. Before assigning as primary key, you should add the index to indices list with addIndex() (this is not done automatically!). Definition at line 131 of file tableschema.cpp. |
Member Data Documentation
|
cached query schema that is defined by "select * from <this_table_name>"
Definition at line 148 of file tableschema.h. |
The documentation for this class was generated from the following files: