test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DbScopedTransaction.h
Go to the documentation of this file.
1 #ifndef CondCore_DBCommon_DbScopedTransaction_H
2 #define CondCore_DBCommon_DbScopedTransaction_H
3 //
4 // Package: DBCommon
5 // Class : DbScopedTransaction
6 //
10 //
11 //
12 
13 namespace cond{
14 
15  class DbSession;
16 
18  public:
20 
23  int start(bool readOnly = false);
25  int commit();
27  bool rollback();
29  bool isLocallyActive() const;
31  int isActive() const;
33  bool isReadOnly() const;
34  private:
37 
38  };
39 }
40 #endif
bool rollback()
rollback transaction
DbScopedTransaction(cond::DbSession &session)
bool isReadOnly() const
current transaction is readonly
int isActive() const
current transaction is active
int start(bool readOnly=false)
start transaction
bool isLocallyActive() const
query if locally has been activated
int commit()
commit transaction. Will disconnect from database if connection timeout==0 or connectted time close t...