DbStruct Pile   version 0.0.1
This pile contains classes that can be used to
DbStructMeta Class Referenceabstract

The structure of a database. More...

#include <dbstruct.h>

+ Inheritance diagram for DbStructMeta:

Public Member Functions

 DbStructMeta ()
 Default constructor. More...
 
virtual ~DbStructMeta ()
 Destructor. More...
 
virtual Type type () const
 The type of this object.
 
virtual DbTaewtaew (const QString &value)
 Create a table or view based on a table or view name.
 
Interface

This is the list of method that subclasses must implement.

virtual QString databaseName () const =0
 The name of this database.
 
virtual QString componentName (int index) const =0
 Get the name of the table or view based on its identifier.
 
virtual int idFromName (const QString &value) const =0
 Get the id based on a table or view name.
 
virtual DbTaewtaew (int index) const =0
 Create a table or view based on a table or view id.
 
virtual int comp2table (int value) const =0
 Convert between component identifier and table identifier.
 
virtual int table2comp (int value) const =0
 Convert between table identifier and component identifier.
 
virtual int tableIdFromName (const QString &value) const =0
 Get the id based on a table name.
 
virtual QString tableName (int index) const =0
 Get the name of the table based on its identifier.
 
virtual int comp2view (int value) const =0
 Convert between component identifier and view identifier.
 
virtual int view2comp (int value) const =0
 Convert between view identifier and component identifier.
 
virtual int viewIdFromName (const QString &value) const =0
 Get the id based on a view name.
 
virtual QString viewName (int index) const =0
 Get the name of the view based on its identifier.
 
- Public Member Functions inherited from DbObject
 DbObject ()
 Default constructor. More...
 
virtual ~DbObject ()
 Destructor. More...
 
DbStructMetaasStruct ()
 Get this instance as a DbStruct.
 
DbColumnasColumn ()
 Get this instance as a DbColumn.
 
DbRecordasRecord ()
 Get this instance as a DbRecord.
 
DbTableasTable ()
 Get this instance as a DbTable.
 
DbViewasView ()
 Get this instance as a DbView.
 
bool isStruct ()
 Tell if this instance is a DbStruct.
 
bool isColumn ()
 Tell if this instance is a DbColumn.
 
bool isRecord ()
 Tell if this instance is a DbRecord.
 
bool isTable ()
 Tell if this instance is a DbTable.
 
bool isView ()
 Tell if this instance is a DbView.
 
bool isCustom ()
 Tell if this instance is a custom one.
 

Additional Inherited Members

- Public Types inherited from DbObject
enum  Type {
  DBO_INVALID = -1, DBO_STRUCT, DBO_COLUMN, DBO_RECORD,
  DBO_TABLE, DBO_SUBSET, DBO_CPLX_VIEW, DBO_CUSTOM,
  DBO_MAX
}
 The types of objects that use this class as a base. More...
 

Detailed Description

The structure of a database.

Constructor & Destructor Documentation

DbStructMeta::DbStructMeta ( )

Default constructor.

Detailed description for constructor.

DbStructMeta::~DbStructMeta ( )
virtual

Destructor.

Detailed description for destructor.


The documentation for this class was generated from the following files: