#include <table.h>
Inheritance diagram for KDB::Table:

Public Methods | |
| ~Table () | |
| Field* | newField (const QString &name) |
| creates a new field for the current table. More... | |
| void | appendField (Field *) |
| appends the field to the list of fields and issue an alter table to the underlying DBMS. | |
| Field* | getField (const QString &name) const |
| returns an existing field by name, or 0L if the field does not exists. | |
| FieldList | fields () const |
| return the list of available fields. | |
| QStringList | fieldNames () const |
| return the list of names of available fields. | |
| Index* | newIndex (const QString &name) |
| creates a new index. More... | |
| Index* | getIndex (const QString &name) const |
| return an index by name. | |
| IndexList | indexes () const |
| return the list of available indexes. | |
| RecordsetPtr | openRecordset () |
| creates a recordset based on this table. | |
| bool | create () |
| actually create the table. More... | |
| bool | designMode () const |
| returns true if the table is in design mode, i.e. More... | |
Signals | |
| void | fieldAdded ( Field * ) |
| void | fieldRemoved ( Field * ) |
| void | changed () |
| void | indexAdded ( Index * ) |
| void | indexRemoved ( Index * ) |
| void | created ( Table * ) |
Friends | |
| class | Database |
Trough this object we access the fields and indices of a given table (when available). This object will allow building of new fields and indexes, as well as editing of the table data using openRecordset()
|
|
|
|
|
appends the field to the list of fields and issue an alter table to the underlying DBMS.
|
|
|
|
|
|
actually create the table. returns true if the table has been successfully created, false otherwise. |
|
|
|
|
|
returns true if the table is in design mode, i.e. it is not created |
|
|
|
|
|
return the list of names of available fields.
|
|
|
|
|
|
return the list of available fields.
|
|
|
returns an existing field by name, or 0L if the field does not exists.
|
|
|
return an index by name.
|
|
|
|
|
|
|
|
|
return the list of available indexes.
|
|
|
creates a new field for the current table. If the table is not create()d, the field is appended to the list of fields and created with the table itself. else no modification will occur. To apply the changes to the table, you must use appendField() |
|
|
creates a new index.
|
|
|
creates a recordset based on this table.
|
|
|
|
1.2.1 written by Dimitri van Heesch,
© 1997-2000