1 #ifndef CondCore_CondDB_SessionImpl_h 2 #define CondCore_CondDB_SessionImpl_h 9 #include "RelationalAccess/ConnectionService.h" 10 #include "RelationalAccess/ISessionProxy.h" 22 namespace persistency {
27 virtual void commit() = 0;
28 virtual void rollback() = 0;
29 virtual bool isActive() = 0;
30 bool iovDbExists =
false;
31 bool iovDbOpen =
false;
32 bool gtDbExists =
false;
33 bool gtDbOpen =
false;
34 bool runInfoDbExists =
false;
35 bool runInfoDbOpen =
true;
50 bool isActive()
const;
51 void startTransaction(
bool readOnly=
true );
52 void commitTransaction();
53 void rollbackTransaction();
54 bool isTransactionActive(
bool deep=
true )
const;
56 void openIovDb( FailureOnOpeningPolicy policy = THROW );
57 void openGTDb( FailureOnOpeningPolicy policy = THROW );
std::shared_ptr< coral::ISessionProxy > coralSession
std::string connectionString
std::unique_ptr< IIOVSchema > iovSchemaHandle
std::unique_ptr< IRunInfoSchema > runInfoSchemaHandle
std::unique_ptr< IGTSchema > gtSchemaHandle
std::unique_ptr< ITransaction > transaction