test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SchemaUtils.h
Go to the documentation of this file.
1 #ifndef INCLUDE_ORA_SCHEMAUTILS_H
2 #define INCLUDE_ORA_SCHEMAUTILS_H
3 
4 #include <string>
5 #include <set>
6 #include <memory>
7 
8 namespace coral {
9  class ConnectionService;
10  class ISessionProxy;
11 }
12 
13 namespace ora {
14 
15  namespace SchemaUtils {
16 
17  void cleanUp( const std::string& connectionString, std::set<std::string> exclusionList=std::set<std::string>() );
18 
19  }
20 
21  class Serializer {
22  public:
23  static const std::string& tableName();
24 
25  public:
26  Serializer();
27 
28  virtual ~Serializer();
29 
30  void lock( const std::string& connectionString );
31 
32  void release();
33 
34  private:
35 
36  std::auto_ptr<coral::ConnectionService> m_connServ;
37  std::auto_ptr<coral::ISessionProxy> m_session;
38  bool m_lock;
39 
40  };
41 
42 }
43 
44 #endif
45 
46 
std::auto_ptr< coral::ISessionProxy > m_session
Definition: SchemaUtils.h:37
std::auto_ptr< coral::ConnectionService > m_connServ
Definition: SchemaUtils.h:36
static const std::string & tableName()
Definition: SchemaUtils.cc:53
string connectionString
Definition: autoCondHLT.py:4
void cleanUp(const std::string &connectionString, std::set< std::string > exclusionList=std::set< std::string >())
Definition: SchemaUtils.cc:22
virtual ~Serializer()
Definition: SchemaUtils.cc:64
void lock(const std::string &connectionString)
Definition: SchemaUtils.cc:68