BOSS 7.1.1
BESIII Offline Software System
|
#include <ConnectionDBBase.h>
Public Types | |
enum | eRet { RETOk = 0 , RETBadCnfFile = 1 , RETBadHost = 2 , RETNoConnect = 3 , RETWrongState = 4 , RETBadValue = 5 , RETMySQLError = 6 , RETNoSchemaMatch = 7 } |
enum | eLevel { LEVELProd = 1 , LEVELDev = 2 , LEVELTest = 4 , LEVELSuperseded = 8 } |
Used to form bit masks for dbs queries. More... | |
Public Member Functions | |
ConnectionDBBase (const std::string &host, const std::string &table, const std::string &dbName) | |
Constructor keeps track of table of interest. | |
ConnectionDBBase (const std::string &host, const std::string &dbName, const std::string &userName, const std::string &password) | |
~ConnectionDBBase () | |
bool | connectRead (eRet &err) |
rdbModel::Connection * | getReadConnection () |
rdbModel::Rdb * | getRdb () |
const std::string & | getTable () |
void | disconnectRead () |
void | disconnectWrite () |
Definition at line 13 of file ConnectionDBBase.h.
Used to form bit masks for dbs queries.
Enumerator | |
---|---|
LEVELProd | |
LEVELDev | |
LEVELTest | |
LEVELSuperseded |
Definition at line 26 of file ConnectionDBBase.h.
Enumerator | |
---|---|
RETOk | |
RETBadCnfFile | |
RETBadHost | |
RETNoConnect | |
RETWrongState | |
RETBadValue | |
RETMySQLError | |
RETNoSchemaMatch |
Definition at line 15 of file ConnectionDBBase.h.
ConnectionDBBase::ConnectionDBBase | ( | const std::string & | host, |
const std::string & | table, | ||
const std::string & | dbName ) |
Constructor keeps track of table of interest.
Definition at line 20 of file ConnectionDBBase.cxx.
ConnectionDBBase::ConnectionDBBase | ( | const std::string & | host, |
const std::string & | dbName, | ||
const std::string & | userName, | ||
const std::string & | password ) |
Definition at line 28 of file ConnectionDBBase.cxx.
ConnectionDBBase::~ConnectionDBBase | ( | ) |
Definition at line 34 of file ConnectionDBBase.cxx.
Definition at line 60 of file ConnectionDBBase.cxx.
void ConnectionDBBase::disconnectRead | ( | ) |
Definition at line 96 of file ConnectionDBBase.cxx.
Referenced by ~ConnectionDBBase().
void ConnectionDBBase::disconnectWrite | ( | ) |
Definition at line 104 of file ConnectionDBBase.cxx.
Referenced by ~ConnectionDBBase().
|
inline |
Definition at line 51 of file ConnectionDBBase.h.
|
inline |
Definition at line 48 of file ConnectionDBBase.h.
|
inline |
Definition at line 52 of file ConnectionDBBase.h.