#include <DatabaseManager.h>
Inheritance diagram for DatabaseManager:
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 | |
virtual | ~DatabaseManager () |
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)
Definition at line 34 of file DatabaseManager.h.
virtual DatabaseManager::~DatabaseManager | ( | ) | [inline, virtual] |
virtual void DatabaseManager::closeTable | ( | Table * | table | ) | [pure virtual] |
closes the table handle passed
table | handle to the table |
Implemented in DatabaseManagerImpl.
Referenced by getRecordsFromTargetDb(), CacheTableLoader::load(), main(), UpdStatement::resolve(), SelStatement::resolve(), InsStatement::resolve(), DelStatement::resolve(), CacheTableLoader::unload(), verifyPrimKeyFldVal(), DelStatement::~DelStatement(), InsStatement::~InsStatement(), SelStatement::~SelStatement(), and UpdStatement::~UpdStatement().
Here is the caller graph for this function:
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 |
Implemented in DatabaseManagerImpl.
Referenced by CreateIdxStatement::execute(), CreateTblStatement::execute(), and CacheTableLoader::load().
Here is the caller graph for this function:
creates a table in the database
name | name of the table | |
def | table definition |
Implemented in DatabaseManagerImpl.
Referenced by CreateTblStatement::execute(), and CacheTableLoader::load().
Here is the caller graph for this function:
virtual DbRetVal DatabaseManager::dropIndex | ( | const char * | name | ) | [pure virtual] |
deletes the index object
name | index name |
Implemented in DatabaseManagerImpl.
Referenced by DropIdxStatement::execute().
Here is the caller graph for this function:
virtual DbRetVal DatabaseManager::dropTable | ( | const char * | name | ) | [pure virtual] |
deletes a table from the database
name | name of the table |
Implemented in DatabaseManagerImpl.
Referenced by DropTblStatement::execute(), CacheTableLoader::load(), and CacheTableLoader::unload().
Here is the caller graph for this function:
virtual List DatabaseManager::getAllTableNames | ( | ) | [pure virtual] |
virtual Table* DatabaseManager::openTable | ( | const char * | name | ) | [pure virtual] |
opens a table for processing
name | name of the table |
Implemented in DatabaseManagerImpl.
Referenced by getRecordsFromTargetDb(), CacheTableLoader::load(), main(), UpdStatement::resolve(), SelStatement::resolve(), InsStatement::resolve(), DelStatement::resolve(), CacheTableLoader::unload(), and verifyPrimKeyFldVal().
Here is the caller graph for this function: