class Table

Representation of a database table. More...

Contains pure virtuals
Full nameKDB::Table
Definition#include <table.h>
InheritsKDB::DataObject
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


Detailed Description

Representation of a database table.

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

 Table (const char * name)

Table ()

[virtual]

Field *  newField (const QString &name)

[pure virtual]

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

void  appendField (Field *)

[pure virtual]

appends the field to the list of fields and issue an alter table to the underlying DBMS.

Field *  getField (const QString &name)

returns an existing field by name, or 0L if the table does not exists

Fields  fields ()

return the list of available fields

Index *  newIndex (const QString &name)

[pure virtual]

creates a new index

Parameters:
namethis is the name of the index

Index *  getIndex (const QString &name)

return an index by name

Indexes  indexes ()

return the list of available indexes

RecordsetPtr  openRecordset ()

[pure virtual]

creates a recordset based on this table.

bool  create ()

[pure virtual]

actually create the table. returns true if the table has been successfully created, false otherwise.

Fields m_fields

[protected]

Indexes m_indexes

[protected]


Generated by: pradu@server.rete.casa on Fri Jul 28 15:15:55 2000, using kdoc 2.0a36.