Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

ztt::dcs::OracleDB Class Reference

#include <OracleDB.hpp>

List of all members.


Detailed Description

This class implements the real database actions required by the interComLayer. The class is derived from the database interface and implement the required functions.

Author:
Benjamin Schockert


Public Member Functions

 OracleDB ()
virtual int createConnection ()
virtual int getDataFromDB (char *tablename, std::vector< char * > *collection, std::vector< int > *posX, std::vector< int > *posY, std::vector< int > *posZ)
virtual int getDataFromDB (char *tablename, std::vector< char * > *collection)
virtual int setData (char *tablename, char *data)
virtual int killConnection ()


Constructor & Destructor Documentation

ztt::dcs::OracleDB::OracleDB  ) 
 

The constructor get the data accessobject to get the values from the property file.


Member Function Documentation

virtual int ztt::dcs::OracleDB::createConnection  )  [virtual]
 

Create the connection pool for database access.

virtual int ztt::dcs::OracleDB::getDataFromDB char *  tablename,
std::vector< char * > *  collection
[virtual]
 

Load the Server-/Service names from Database.

Parameters:
tablename of the table
collection save the result of the query

virtual int ztt::dcs::OracleDB::getDataFromDB char *  tablename,
std::vector< char * > *  collection,
std::vector< int > *  posX,
std::vector< int > *  posY,
std::vector< int > *  posZ
[virtual]
 

load the exact position of the single server from the database and load the corresponding servername

Parameters:
tablename specify the table/view of the servernames
collection store the loaded servernames in a smart_ptr
posX store the x coordinates of the server
posY store the y coordinates of the server
posZ store the z coordinates of the server

virtual int ztt::dcs::OracleDB::killConnection  )  [virtual]
 

Destroys the connection pool

virtual int ztt::dcs::OracleDB::setData char *  tablename,
char *  data
[virtual]
 

Write files to Database(not implemented yet).

Parameters:
tablename where data should be stored
data which should written to database


The documentation for this class was generated from the following file:
Generated on Fri Mar 30 02:54:34 2007 for InterComLayer by doxygen 1.3.5