#include <SessionImpl.h>
Public Types | |
enum | FailureOnOpeningPolicy { THROW, DO_NOT_THROW, CREATE } |
Public Member Functions | |
void | close () |
void | commitTransaction () |
IGTSchema & | gtSchema () |
IIOVSchema & | iovSchema () |
bool | isActive () const |
bool | isOra () |
bool | isTransactionActive (bool deep=true) const |
void | openDb () |
void | openGTDb (FailureOnOpeningPolicy policy=THROW) |
void | openIovDb (FailureOnOpeningPolicy policy=THROW) |
void | rollbackTransaction () |
SessionImpl () | |
SessionImpl (boost::shared_ptr< coral::ISessionProxy > &session, const std::string &connectionString) | |
void | startTransaction (bool readOnly=true) |
~SessionImpl () | |
Public Attributes | |
std::string | connectionString |
boost::shared_ptr < coral::ISessionProxy > | coralSession |
std::unique_ptr< IGTSchema > | gtSchemaHandle |
std::unique_ptr< IIOVSchema > | iovSchemaHandle |
std::unique_ptr< ITransaction > | transaction |
Definition at line 38 of file SessionImpl.h.
Enumerator | |
---|---|
THROW | |
DO_NOT_THROW | |
CREATE |
Definition at line 40 of file SessionImpl.h.
cond::persistency::SessionImpl::SessionImpl | ( | ) |
Definition at line 35 of file SessionImpl.cc.
cond::persistency::SessionImpl::SessionImpl | ( | boost::shared_ptr< coral::ISessionProxy > & | session, |
const std::string & | connectionString | ||
) |
Definition at line 39 of file SessionImpl.cc.
cond::persistency::SessionImpl::~SessionImpl | ( | ) |
void cond::persistency::SessionImpl::close | ( | void | ) |
Definition at line 49 of file SessionImpl.cc.
References coralSession, and transaction.
Referenced by lumiQTWidget.ApplicationWindow::fileQuit(), esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent(), Vispa.Gui.FindDialog.FindDialog::keyPressEvent(), and ~SessionImpl().
void cond::persistency::SessionImpl::commitTransaction | ( | ) |
Definition at line 76 of file SessionImpl.cc.
References gtSchemaHandle, iovSchemaHandle, and transaction.
Referenced by cond::persistency::Transaction::commit().
IGTSchema & cond::persistency::SessionImpl::gtSchema | ( | ) |
Definition at line 159 of file SessionImpl.cc.
References gtSchemaHandle.
IIOVSchema & cond::persistency::SessionImpl::iovSchema | ( | ) |
Definition at line 155 of file SessionImpl.cc.
References iovSchemaHandle.
bool cond::persistency::SessionImpl::isActive | ( | ) | const |
Definition at line 59 of file SessionImpl.cc.
References coralSession.
bool cond::persistency::SessionImpl::isOra | ( | ) |
Definition at line 163 of file SessionImpl.cc.
References cond::persistency::throwException(), and transaction.
bool cond::persistency::SessionImpl::isTransactionActive | ( | bool | deep = true | ) | const |
Definition at line 97 of file SessionImpl.cc.
References transaction.
Referenced by cond::persistency::Transaction::isActive().
void cond::persistency::SessionImpl::openDb | ( | ) |
Definition at line 135 of file SessionImpl.cc.
References gtSchemaHandle, iovSchemaHandle, cond::persistency::throwException(), and transaction.
void cond::persistency::SessionImpl::openGTDb | ( | SessionImpl::FailureOnOpeningPolicy | policy = THROW | ) |
Definition at line 119 of file SessionImpl.cc.
References CREATE, gtSchemaHandle, THROW, cond::persistency::throwException(), and transaction.
void cond::persistency::SessionImpl::openIovDb | ( | SessionImpl::FailureOnOpeningPolicy | policy = THROW | ) |
Definition at line 103 of file SessionImpl.cc.
References CREATE, iovSchemaHandle, THROW, cond::persistency::throwException(), and transaction.
void cond::persistency::SessionImpl::rollbackTransaction | ( | ) |
Definition at line 88 of file SessionImpl.cc.
References gtSchemaHandle, iovSchemaHandle, and transaction.
Referenced by cond::persistency::Transaction::rollback().
void cond::persistency::SessionImpl::startTransaction | ( | bool | readOnly = true | ) |
Definition at line 63 of file SessionImpl.cc.
References coralSession, gtSchemaHandle, iovSchemaHandle, cond::persistency::throwException(), and transaction.
Referenced by cond::persistency::Transaction::start().
std::string cond::persistency::SessionImpl::connectionString |
Definition at line 67 of file SessionImpl.h.
boost::shared_ptr<coral::ISessionProxy> cond::persistency::SessionImpl::coralSession |
Definition at line 65 of file SessionImpl.h.
Referenced by close(), isActive(), and startTransaction().
std::unique_ptr<IGTSchema> cond::persistency::SessionImpl::gtSchemaHandle |
Definition at line 70 of file SessionImpl.h.
Referenced by commitTransaction(), gtSchema(), openDb(), openGTDb(), rollbackTransaction(), and startTransaction().
std::unique_ptr<IIOVSchema> cond::persistency::SessionImpl::iovSchemaHandle |
Definition at line 69 of file SessionImpl.h.
Referenced by commitTransaction(), iovSchema(), openDb(), openIovDb(), rollbackTransaction(), and startTransaction().
std::unique_ptr<ITransaction> cond::persistency::SessionImpl::transaction |
Definition at line 68 of file SessionImpl.h.
Referenced by close(), commitTransaction(), isOra(), isTransactionActive(), openDb(), openGTDb(), openIovDb(), rollbackTransaction(), and startTransaction().