DatabaseManager Class Reference

Interface for database management operations. More...

#include <DatabaseManager.h>

Inheritance diagram for DatabaseManager:

Inheritance graph
[legend]

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 TableopenTable (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 ()

Detailed Description

Interface for database management operations.

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)

Author:
Prabakaran Thirumalai

Definition at line 34 of file DatabaseManager.h.


Constructor & Destructor Documentation

virtual DatabaseManager::~DatabaseManager (  )  [inline, virtual]

Definition at line 78 of file DatabaseManager.h.

00078 { }


Member Function Documentation

virtual void DatabaseManager::closeTable ( Table table  )  [pure virtual]

closes the table handle passed

Parameters:
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.

Parameters:
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:

virtual DbRetVal DatabaseManager::createTable ( const char *  name,
TableDef def 
) [pure virtual]

creates a table in the database

Parameters:
name name of the table
def table definition
Returns:
DbRetVal

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

Parameters:
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

Parameters:
name name of the table
Returns:
DbRetVal

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]

Returns all the tables as list.

Returns:
List of table names

Implemented in DatabaseManagerImpl.

virtual Table* DatabaseManager::openTable ( const char *  name  )  [pure virtual]

opens a table for processing

Parameters:
name name of the table
Returns:
DbRetVal

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:


The documentation for this class was generated from the following file:
Generated on Mon Jun 9 22:46:34 2008 for csql by  doxygen 1.4.7