hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DataBaseSessionTest Class Reference

#include <DataBaseSessionTest.h>

Inheritance diagram for DataBaseSessionTest:

Public Member Functions

 DataBaseSessionTest ()
virtual ~DataBaseSessionTest ()
virtual void setConnection (const std::string &key, const std::string &parameters)
virtual void closeConnection ()
virtual bool isConnected ()
virtual void countDataInDataBase (int &count)
virtual void insertObjectInDataBase ()
virtual void selectObjectFromDataBase ()
virtual void insertTupleInDataBase ()
virtual void selectAllTuplesDataFromDataBase ()
virtual void selectTupleDataFromDataBase ()
virtual void selectOneFieldFormDataBaseInTuple ()
virtual void createDataBase ()
virtual void dropDataBase ()
virtual void clearDataBase ()
void clearVector () throw ()
virtual void SetUp ()
virtual void TearDown ()

Protected Types

typedef Poco::Tuple< int,
std::string > 
person
typedef Poco::Tuple< std::string > person_name

Protected Attributes

std::vector< person_namenamesOfPersons
std::vector< personpeople
std::vector< Objectobjects
Poco::SharedPtr
< HCE::database::DBSession
_pSession

Detailed Description

Definition at line 16 of file DataBaseSessionTest.h.

Member Typedef Documentation

typedef Poco::Tuple<int,std::string> DataBaseSessionTest::person
protected

Definition at line 21 of file DataBaseSessionTest.h.

typedef Poco::Tuple<std::string> DataBaseSessionTest::person_name
protected

Definition at line 22 of file DataBaseSessionTest.h.

Constructor & Destructor Documentation

DataBaseSessionTest::DataBaseSessionTest ( )
inline

Definition at line 18 of file DataBaseSessionTest.h.

virtual DataBaseSessionTest::~DataBaseSessionTest ( )
inlinevirtual

Definition at line 19 of file DataBaseSessionTest.h.

Member Function Documentation

void DataBaseSessionTest::clearDataBase ( )
virtual

Definition at line 51 of file DataBaseSessionTest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void DataBaseSessionTest::clearVector ( ) throw ()

Definition at line 123 of file DataBaseSessionTest.cpp.

Here is the caller graph for this function:

void DataBaseSessionTest::closeConnection ( )
virtual

Definition at line 13 of file DataBaseSessionTest.cpp.

Here is the caller graph for this function:

void DataBaseSessionTest::countDataInDataBase ( int &  count)
virtual

Definition at line 113 of file DataBaseSessionTest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void DataBaseSessionTest::createDataBase ( )
virtual

Definition at line 31 of file DataBaseSessionTest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void DataBaseSessionTest::dropDataBase ( )
virtual

Definition at line 41 of file DataBaseSessionTest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void DataBaseSessionTest::insertObjectInDataBase ( )
virtual

Definition at line 72 of file DataBaseSessionTest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void DataBaseSessionTest::insertTupleInDataBase ( )
virtual

Definition at line 61 of file DataBaseSessionTest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool DataBaseSessionTest::isConnected ( )
virtual

Definition at line 17 of file DataBaseSessionTest.cpp.

Here is the caller graph for this function:

void DataBaseSessionTest::selectAllTuplesDataFromDataBase ( )
virtual

Definition at line 83 of file DataBaseSessionTest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void DataBaseSessionTest::selectObjectFromDataBase ( )
virtual

Definition at line 103 of file DataBaseSessionTest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void DataBaseSessionTest::selectOneFieldFormDataBaseInTuple ( )
virtual

Definition at line 93 of file DataBaseSessionTest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void DataBaseSessionTest::selectTupleDataFromDataBase ( )
virtual

Definition at line 21 of file DataBaseSessionTest.cpp.

Here is the call graph for this function:

void DataBaseSessionTest::setConnection ( const std::string &  key,
const std::string &  parameters 
)
virtual

Definition at line 3 of file DataBaseSessionTest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void DataBaseSessionTest::SetUp ( )
virtual

Reimplemented in MySQLSessionTests, and SQLiteSessionTests.

Definition at line 128 of file DataBaseSessionTest.cpp.

void DataBaseSessionTest::TearDown ( )
virtual

Reimplemented in MySQLSessionTests, and SQLiteSessionTests.

Definition at line 136 of file DataBaseSessionTest.cpp.

Here is the call graph for this function:

Member Data Documentation

Poco::SharedPtr<HCE::database::DBSession> DataBaseSessionTest::_pSession
protected

Definition at line 26 of file DataBaseSessionTest.h.

std::vector<person_name> DataBaseSessionTest::namesOfPersons
protected

Definition at line 23 of file DataBaseSessionTest.h.

std::vector<Object> DataBaseSessionTest::objects
protected

Definition at line 25 of file DataBaseSessionTest.h.

std::vector<person> DataBaseSessionTest::people
protected

Definition at line 24 of file DataBaseSessionTest.h.


The documentation for this class was generated from the following files: