DatabaseManager Class Reference

Interface for database management operations. More...

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


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)


Member Function Documentation

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

closes the table handle passed

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

Parameters:
indName index name
info IndexInitInfo

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

virtual DbRetVal DatabaseManager::dropIndex ( const char *  name  )  [pure virtual]

deletes the index object

Parameters:
name index name

virtual DbRetVal DatabaseManager::dropTable ( const char *  name  )  [pure virtual]

deletes a table from the database

Parameters:
name name of the table
Returns:
DbRetVal

virtual List DatabaseManager::getAllTableNames (  )  [pure virtual]

Returns all the tables as list.

Returns:
List of table names

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

opens a table for processing

Parameters:
name name of the table
Returns:
DbRetVal


The documentation for this class was generated from the following file:
CSQL Project Page