6 #include "RelationalAccess/ISessionProxy.h" 7 #include "RelationalAccess/ITransaction.h" 11 namespace persistency {
29 return m_session->transaction().isActive();
71 if(!readOnly )
throwException(
"An update transaction is already active.",
72 "SessionImpl::startTransaction" );
102 if( !deep )
return true;
117 if( policy==
THROW)
throwException(
"IOV Database does not exist.",
"SessionImpl::openIovDb");
145 throwException(
"RunInfo Database does not exist.",
"SessionImpl::openRunInfoDb");
std::shared_ptr< coral::ISessionProxy > coralSession
void openGTDb(FailureOnOpeningPolicy policy=THROW)
CondDBTransaction(const std::shared_ptr< coral::ISessionProxy > &coralSession)
std::string connectionString
void openIovDb(FailureOnOpeningPolicy policy=THROW)
std::unique_ptr< IIOVSchema > iovSchemaHandle
std::unique_ptr< IRunInfoSchema > runInfoSchemaHandle
virtual ~CondDBTransaction()
std::unique_ptr< IGTSchema > gtSchemaHandle
void startTransaction(bool readOnly=true)
bool isTransactionActive(bool deep=true) const
std::shared_ptr< coral::ISessionProxy > m_session
void rollbackTransaction()
IRunInfoSchema & runInfoSchema()
std::unique_ptr< ITransaction > transaction
void throwException(const std::string &message, const std::string &methodName)