#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 | isTransactionActive (bool deep=true) const |
void | openDb () |
void | openGTDb (FailureOnOpeningPolicy policy=THROW) |
void | openIovDb (FailureOnOpeningPolicy policy=THROW) |
void | openRunInfoDb () |
void | rollbackTransaction () |
IRunInfoSchema & | runInfoSchema () |
SessionImpl () | |
SessionImpl (std::shared_ptr< coral::ISessionProxy > &session, const std::string &connectionString) | |
void | startTransaction (bool readOnly=true) |
~SessionImpl () | |
Public Attributes | |
std::string | connectionString |
std::shared_ptr< coral::ISessionProxy > | coralSession |
std::unique_ptr< IGTSchema > | gtSchemaHandle |
std::unique_ptr< IIOVSchema > | iovSchemaHandle |
std::unique_ptr< IRunInfoSchema > | runInfoSchemaHandle |
std::unique_ptr< ITransaction > | transaction |
Definition at line 39 of file SessionImpl.h.
Enumerator | |
---|---|
THROW | |
DO_NOT_THROW | |
CREATE |
Definition at line 41 of file SessionImpl.h.
cond::persistency::SessionImpl::SessionImpl | ( | ) |
Definition at line 35 of file SessionImpl.cc.
cond::persistency::SessionImpl::SessionImpl | ( | std::shared_ptr< coral::ISessionProxy > & | session, |
const std::string & | connectionString | ||
) |
Definition at line 39 of file SessionImpl.cc.
cond::persistency::SessionImpl::~SessionImpl | ( | ) |
Definition at line 45 of file SessionImpl.cc.
References close().
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 77 of file SessionImpl.cc.
References gtSchemaHandle, iovSchemaHandle, runInfoSchemaHandle, and transaction.
Referenced by cond::persistency::Transaction::commit().
IGTSchema & cond::persistency::SessionImpl::gtSchema | ( | ) |
Definition at line 173 of file SessionImpl.cc.
References gtSchemaHandle.
IIOVSchema & cond::persistency::SessionImpl::iovSchema | ( | ) |
Definition at line 169 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::isTransactionActive | ( | bool | deep = true | ) | const |
Definition at line 100 of file SessionImpl.cc.
References transaction.
Referenced by cond::persistency::Transaction::isActive().
void cond::persistency::SessionImpl::openDb | ( | ) |
Definition at line 149 of file SessionImpl.cc.
References gtSchemaHandle, iovSchemaHandle, cond::persistency::throwException(), and transaction.
void cond::persistency::SessionImpl::openGTDb | ( | SessionImpl::FailureOnOpeningPolicy | policy = THROW | ) |
Definition at line 122 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 106 of file SessionImpl.cc.
References CREATE, iovSchemaHandle, THROW, cond::persistency::throwException(), and transaction.
void cond::persistency::SessionImpl::openRunInfoDb | ( | ) |
Definition at line 138 of file SessionImpl.cc.
References runInfoSchemaHandle, cond::persistency::throwException(), and transaction.
void cond::persistency::SessionImpl::rollbackTransaction | ( | ) |
Definition at line 90 of file SessionImpl.cc.
References gtSchemaHandle, iovSchemaHandle, runInfoSchemaHandle, and transaction.
Referenced by cond::persistency::Transaction::rollback().
IRunInfoSchema & cond::persistency::SessionImpl::runInfoSchema | ( | ) |
Definition at line 177 of file SessionImpl.cc.
References runInfoSchemaHandle.
void cond::persistency::SessionImpl::startTransaction | ( | bool | readOnly = true | ) |
Definition at line 63 of file SessionImpl.cc.
References coralSession, gtSchemaHandle, iovSchemaHandle, runInfoSchemaHandle, cond::persistency::throwException(), and transaction.
Referenced by cond::persistency::Transaction::start().
std::string cond::persistency::SessionImpl::connectionString |
Definition at line 68 of file SessionImpl.h.
std::shared_ptr<coral::ISessionProxy> cond::persistency::SessionImpl::coralSession |
Definition at line 66 of file SessionImpl.h.
Referenced by close(), isActive(), and startTransaction().
std::unique_ptr<IGTSchema> cond::persistency::SessionImpl::gtSchemaHandle |
Definition at line 71 of file SessionImpl.h.
Referenced by commitTransaction(), gtSchema(), openDb(), openGTDb(), rollbackTransaction(), and startTransaction().
std::unique_ptr<IIOVSchema> cond::persistency::SessionImpl::iovSchemaHandle |
Definition at line 70 of file SessionImpl.h.
Referenced by commitTransaction(), iovSchema(), openDb(), openIovDb(), rollbackTransaction(), and startTransaction().
std::unique_ptr<IRunInfoSchema> cond::persistency::SessionImpl::runInfoSchemaHandle |
Definition at line 72 of file SessionImpl.h.
Referenced by commitTransaction(), openRunInfoDb(), rollbackTransaction(), runInfoSchema(), and startTransaction().
std::unique_ptr<ITransaction> cond::persistency::SessionImpl::transaction |
Definition at line 69 of file SessionImpl.h.
Referenced by close(), commitTransaction(), isTransactionActive(), openDb(), openGTDb(), openIovDb(), openRunInfoDb(), rollbackTransaction(), and startTransaction().