6 #include "RelationalAccess/ISessionProxy.h"
7 #include "RelationalAccess/ITransaction.h"
11 namespace persistency {
29 return m_session->transaction().isActive();
41 coralSession( session ),
70 if(!readOnly )
throwException(
"An update transaction is already active.",
71 "SessionImpl::startTransaction" );
99 if( !deep )
return true;
114 if( policy==
THROW)
throwException(
"IOV Database does not exist.",
"SessionImpl::openIovDb");
std::shared_ptr< coral::ISessionProxy > coralSession
void openGTDb(FailureOnOpeningPolicy policy=THROW)
CondDBTransaction(const std::shared_ptr< coral::ISessionProxy > &coralSession)
void openIovDb(FailureOnOpeningPolicy policy=THROW)
std::unique_ptr< IIOVSchema > iovSchemaHandle
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()
std::unique_ptr< ITransaction > transaction
void throwException(const std::string &message, const std::string &methodName)