![]() |
ATLAS Offline Software
|
Manager of the database session. More...
#include <SessionMgr.h>
Public Member Functions | |
| SessionMgr () | |
| constructor More... | |
| virtual | ~SessionMgr () override |
| destructor More... | |
| void | closeSession () |
| close open sessions More... | |
| coral::ISessionProxy & | createSession () |
| instantiates the session More... | |
| void | setTypeConversionRules () |
| SQL -> C++ type conversion mapping for Oracle database to match MySQL. More... | |
| void | setConnectionString (const std::string &connStr) |
| void | setUseFrontier (bool useFrontier) |
| void | setRetrialPeriod (int retrialPeriod) |
| void | setRetrialTimeout (int retrialTimeout) |
| void | setConnectionTimeout (int connectionTimeout) |
| void | setDbType (const std::string &s) |
| void | setDbServer (const std::string &s) |
| void | setDbName (const std::string &s) |
| void | setDbUser (const std::string &s) |
| void | setDbPassword (const std::string &s) |
| const std::string & | connection () const |
| bool | useFrontier () const |
| int | retrialPeriod () const |
| int | retrialTimeout () const |
| int | connectionTimeout () const |
| const std::string & | dbType () const |
| const std::string & | dbServer () const |
| const std::string & | dbName () const |
| const std::string & | dbUser () const |
| const std::string & | dbPassword () const |
| bool | msgLvl (const MSGTC::Level lvl) const |
| Test the output level. More... | |
| MsgStreamTC & | msg () const |
| The standard message stream. More... | |
| MsgStreamTC & | msg (const MSGTC::Level lvl) const |
| The standard message stream. More... | |
| const std::string & | getName () const |
| name accessor More... | |
Private Member Functions | |
| void | buildConnectionString () |
| void | setCppTypeForSqlType (const std::string &cpp_type, const std::string &sql_type) |
| SQL -> C++ type conversion interface to CORAL. More... | |
Private Attributes | |
| coral::ISessionProxy * | m_sessionproxy { nullptr } |
| the coral database session More... | |
| std::string | m_connectionString { "" } |
| connection string More... | |
| std::string | m_dbtype { "" } |
| db type More... | |
| std::string | m_dbserver { "" } |
| db server More... | |
| std::string | m_dbname { "" } |
| db name More... | |
| std::string | m_user { "" } |
| user name More... | |
| std::string | m_password { "" } |
| password More... | |
| bool | m_useFrontier { false } |
| uses frontier instead of oracle More... | |
| int | m_retrialPeriod {0} |
| int | m_retrialTimeout {0} |
| int | m_connectionTimeout {0} |
| ReplicaSorter * | m_replicaSorter { nullptr } |
| boost::thread_specific_ptr< MsgStreamTC > | m_msg_tls |
| MsgStreamTC instance (a std::cout like with print-out levels) More... | |
| std::string | m_name |
Manager of the database session.
it uses CORAL to connect to the different DB technologies
Definition at line 29 of file SessionMgr.h.
| SessionMgr::SessionMgr | ( | ) |
constructor
Definition at line 37 of file SessionMgr.cxx.
|
overridevirtual |
|
private |
Definition at line 76 of file SessionMgr.cxx.
| void SessionMgr::closeSession | ( | ) |
|
inline |
Definition at line 62 of file SessionMgr.h.
|
inline |
Definition at line 66 of file SessionMgr.h.
| coral::ISessionProxy & TrigConf::SessionMgr::createSession | ( | ) |
instantiates the session
Definition at line 92 of file SessionMgr.cxx.
|
inline |
Definition at line 69 of file SessionMgr.h.
|
inline |
Definition at line 71 of file SessionMgr.h.
|
inline |
Definition at line 68 of file SessionMgr.h.
|
inline |
Definition at line 67 of file SessionMgr.h.
|
inline |
Definition at line 70 of file SessionMgr.h.
|
inlineinherited |
|
inlineinherited |
The standard message stream.
Returns a reference to the message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 86 of file TrigConfMessaging.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 96 of file TrigConfMessaging.h.
|
inlineinherited |
Test the output level.
| lvl | The message level to test against |
| true | Messages at level "lvl" will be printed |
Definition at line 75 of file TrigConfMessaging.h.
|
inline |
Definition at line 64 of file SessionMgr.h.
|
inline |
Definition at line 65 of file SessionMgr.h.
|
inline |
Definition at line 49 of file SessionMgr.h.
|
inline |
Definition at line 53 of file SessionMgr.h.
|
private |
SQL -> C++ type conversion interface to CORAL.
| void TrigConf::SessionMgr::setDbName | ( | const std::string & | s | ) |
Definition at line 131 of file SessionMgr.cxx.
| void TrigConf::SessionMgr::setDbPassword | ( | const std::string & | s | ) |
Definition at line 143 of file SessionMgr.cxx.
| void TrigConf::SessionMgr::setDbServer | ( | const std::string & | s | ) |
Definition at line 125 of file SessionMgr.cxx.
| void TrigConf::SessionMgr::setDbType | ( | const std::string & | s | ) |
Definition at line 119 of file SessionMgr.cxx.
| void TrigConf::SessionMgr::setDbUser | ( | const std::string & | s | ) |
Definition at line 137 of file SessionMgr.cxx.
|
inline |
Definition at line 51 of file SessionMgr.h.
|
inline |
Definition at line 52 of file SessionMgr.h.
| void TrigConf::SessionMgr::setTypeConversionRules | ( | ) |
SQL -> C++ type conversion mapping for Oracle database to match MySQL.
|
inline |
Definition at line 50 of file SessionMgr.h.
|
inline |
Definition at line 63 of file SessionMgr.h.
|
private |
connection string
Definition at line 83 of file SessionMgr.h.
|
private |
Definition at line 92 of file SessionMgr.h.
|
private |
db name
Definition at line 86 of file SessionMgr.h.
|
private |
db server
Definition at line 85 of file SessionMgr.h.
|
private |
db type
Definition at line 84 of file SessionMgr.h.
|
mutableprivateinherited |
MsgStreamTC instance (a std::cout like with print-out levels)
Definition at line 71 of file TrigConfMessaging.h.
|
privateinherited |
Definition at line 72 of file TrigConfMessaging.h.
|
private |
password
Definition at line 88 of file SessionMgr.h.
|
private |
Definition at line 94 of file SessionMgr.h.
|
private |
Definition at line 90 of file SessionMgr.h.
|
private |
Definition at line 91 of file SessionMgr.h.
|
private |
the coral database session
Definition at line 81 of file SessionMgr.h.
|
private |
uses frontier instead of oracle
Definition at line 89 of file SessionMgr.h.
|
private |
user name
Definition at line 87 of file SessionMgr.h.
1.8.18