#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 | openGTDb () |
void | openIovDb (FailureOnOpeningPolicy policy=THROW) |
void | rollbackTransaction () |
SessionImpl () | |
SessionImpl (boost::shared_ptr< coral::ISessionProxy > &session, const std::string &connectionString, BackendType backType) | |
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 |
BackendType | theBackendType |
std::unique_ptr< ITransaction > | transaction |
Definition at line 43 of file SessionImpl.h.
Enumerator | |
---|---|
THROW | |
DO_NOT_THROW | |
CREATE |
Definition at line 45 of file SessionImpl.h.
cond::persistency::SessionImpl::SessionImpl | ( | ) |
Definition at line 80 of file SessionImpl.cc.
cond::persistency::SessionImpl::SessionImpl | ( | boost::shared_ptr< coral::ISessionProxy > & | session, |
const std::string & | connectionString, | ||
BackendType | backType | ||
) |
Definition at line 85 of file SessionImpl.cc.
cond::persistency::SessionImpl::~SessionImpl | ( | ) |
void cond::persistency::SessionImpl::close | ( | void | ) |
Definition at line 97 of file SessionImpl.cc.
References coralSession, and transaction.
Referenced by lumiQTWidget.ApplicationWindow::fileQuit(), Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent(), Vispa.Gui.FindDialog.FindDialog::keyPressEvent(), and ~SessionImpl().
void cond::persistency::SessionImpl::commitTransaction | ( | ) |
Definition at line 135 of file SessionImpl.cc.
References gtSchemaHandle, iovSchemaHandle, and transaction.
Referenced by cond::persistency::Transaction::commit().
IGTSchema & cond::persistency::SessionImpl::gtSchema | ( | ) |
Definition at line 193 of file SessionImpl.cc.
References gtSchemaHandle.
IIOVSchema & cond::persistency::SessionImpl::iovSchema | ( | ) |
Definition at line 189 of file SessionImpl.cc.
References iovSchemaHandle.
bool cond::persistency::SessionImpl::isActive | ( | ) | const |
Definition at line 107 of file SessionImpl.cc.
References coralSession.
bool cond::persistency::SessionImpl::isOra | ( | ) |
Definition at line 197 of file SessionImpl.cc.
References cond::persistency::throwException(), and transaction.
bool cond::persistency::SessionImpl::isTransactionActive | ( | bool | deep = true | ) | const |
Definition at line 156 of file SessionImpl.cc.
References transaction.
Referenced by cond::persistency::Transaction::isActive().
void cond::persistency::SessionImpl::openGTDb | ( | ) |
Definition at line 178 of file SessionImpl.cc.
References gtSchemaHandle, cond::persistency::throwException(), and transaction.
void cond::persistency::SessionImpl::openIovDb | ( | SessionImpl::FailureOnOpeningPolicy | policy = THROW | ) |
Definition at line 162 of file SessionImpl.cc.
References CREATE, iovSchemaHandle, THROW, cond::persistency::throwException(), and transaction.
void cond::persistency::SessionImpl::rollbackTransaction | ( | ) |
Definition at line 147 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 111 of file SessionImpl.cc.
References cond::COND_DB, connectionString, coralSession, gtSchemaHandle, iovSchemaHandle, cond::DbSession::open(), cond::ORA_DB, cond::DbTransaction::start(), theBackendType, cond::persistency::throwException(), cond::DbSession::transaction(), and transaction.
Referenced by cond::persistency::Transaction::start().
std::string cond::persistency::SessionImpl::connectionString |
Definition at line 72 of file SessionImpl.h.
Referenced by startTransaction().
boost::shared_ptr<coral::ISessionProxy> cond::persistency::SessionImpl::coralSession |
Definition at line 70 of file SessionImpl.h.
Referenced by close(), isActive(), and startTransaction().
std::unique_ptr<IGTSchema> cond::persistency::SessionImpl::gtSchemaHandle |
Definition at line 76 of file SessionImpl.h.
Referenced by commitTransaction(), gtSchema(), openGTDb(), rollbackTransaction(), and startTransaction().
std::unique_ptr<IIOVSchema> cond::persistency::SessionImpl::iovSchemaHandle |
Definition at line 75 of file SessionImpl.h.
Referenced by commitTransaction(), iovSchema(), openIovDb(), rollbackTransaction(), and startTransaction().
BackendType cond::persistency::SessionImpl::theBackendType |
Definition at line 73 of file SessionImpl.h.
Referenced by startTransaction().
std::unique_ptr<ITransaction> cond::persistency::SessionImpl::transaction |
Definition at line 74 of file SessionImpl.h.
Referenced by close(), commitTransaction(), isOra(), isTransactionActive(), openGTDb(), openIovDb(), rollbackTransaction(), and startTransaction().