SpikeStream Library  0.2
spikestream::DatabaseDao Class Reference

#include <DatabaseDao.h>

Inheritance diagram for spikestream::DatabaseDao:
spikestream::AbstractDao

List of all members.

Public Member Functions

 DatabaseDao (const DBInfo &dbInfo)
 DatabaseDao ()
virtual ~DatabaseDao ()
void connectToDatabase (const DBInfo &dbInfo)
void executeSQLFile (const QString &fileName)
void executeSQLFile (const QString &dbName, const QString &fileName)
QList< QString > getDatabaseNames ()

Detailed Description

Class for carrying out tasks that are not necessarily specific to a single database.

Definition at line 15 of file DatabaseDao.h.


Constructor & Destructor Documentation

DatabaseDao::DatabaseDao ( const DBInfo dbInfo)

Constructor. DBInfo is stored by AbstractDao

Definition at line 16 of file DatabaseDao.cpp.

Empty constructor, used to test connection to database

Definition at line 21 of file DatabaseDao.cpp.

Destructor

Definition at line 26 of file DatabaseDao.cpp.


Member Function Documentation

void DatabaseDao::connectToDatabase ( const DBInfo dbInfo)

Allows manual connection to database

Definition at line 36 of file DatabaseDao.cpp.

void DatabaseDao::executeSQLFile ( const QString &  fileName)

Executes the contents of the supplied file

Definition at line 58 of file DatabaseDao.cpp.

void DatabaseDao::executeSQLFile ( const QString &  dbName,
const QString &  fileName 
)

Executes the contents of the supplied file on the specified database

Definition at line 76 of file DatabaseDao.cpp.

QList< QString > DatabaseDao::getDatabaseNames ( )

Returns a list of names of the current databases

Definition at line 46 of file DatabaseDao.cpp.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Defines