Inherited by DatabaseManagerImpl.
Public Member Functions | |
| virtual DbRetVal | createTable (const char *name, TableDef &def)=0 |
| creates a table in the database | |
| virtual DbRetVal | dropTable (const char *name)=0 |
| deletes a table from the database | |
| virtual Table * | openTable (const char *name)=0 |
| opens a table for processing | |
| virtual void | closeTable (Table *table)=0 |
| closes the table handle passed | |
| virtual List | getAllTableNames ()=0 |
| Returns all the tables as list. | |
| virtual DbRetVal | createIndex (const char *indName, IndexInitInfo *info)=0 |
| creates an index on the specified table. | |
| virtual DbRetVal | dropIndex (const char *name)=0 |
| deletes the index object | |
This manages all the database objects. Currently it supports two database
objects namely table and index.
Functionality:
1.Table Management (create, drop, open and close)
2.Index Management (create and drop)
| virtual void DatabaseManager::closeTable | ( | Table * | table | ) | [pure virtual] |
closes the table handle passed
| table | handle to the table |
| virtual DbRetVal DatabaseManager::createIndex | ( | const char * | indName, | |
| IndexInitInfo * | info | |||
| ) | [pure virtual] |
creates an index on the specified table.
Create appropriate derived class object of IndexInitInfo based on the type of
the index created and pass it to this method.
| indName | index name | |
| info | IndexInitInfo |
creates a table in the database
| name | name of the table | |
| def | table definition |
| virtual DbRetVal DatabaseManager::dropIndex | ( | const char * | name | ) | [pure virtual] |
deletes the index object
| name | index name |
| virtual DbRetVal DatabaseManager::dropTable | ( | const char * | name | ) | [pure virtual] |
| virtual List DatabaseManager::getAllTableNames | ( | ) | [pure virtual] |
Returns all the tables as list.
| virtual Table* DatabaseManager::openTable | ( | const char * | name | ) | [pure virtual] |