CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DatabaseUtility.h
Go to the documentation of this file.
1 #ifndef INCLUDE_ORA_DATABASEUTILITY_H
2 #define INCLUDE_ORA_DATABASEUTILITY_H
3 
4 #include "Handle.h"
5 #include <boost/shared_ptr.hpp>
6 //
7 #include <set>
8 #include <map>
9 
10 namespace ora {
11 
12  class DatabaseUtilitySession;
13 
15  public:
16  //
18 
19  //
21 
22  //
23  DatabaseUtility( const DatabaseUtility& rhs );
24 
26  virtual ~DatabaseUtility();
27 
30 
32  std::set<std::string> listMappingVersions( const std::string& containerName );
33 
35  std::map<std::string,std::string> listMappings( const std::string& containerName );
36 
38  bool dumpMapping( const std::string& mappingVersion, std::ostream& outputStream );
39 
41  void importContainerSchema( const std::string& sourceConnectionString, const std::string& containerName );
42 
44  void importContainer( const std::string& sourceConnectionString, const std::string& containerName );
45 
47  void eraseMapping( const std::string& mappingVersion );
48 
49  private:
50 
52 
53  };
54 
55 }
56 
57 #endif
DatabaseUtility & operator=(const DatabaseUtility &rhs)
void importContainerSchema(const std::string &sourceConnectionString, const std::string &containerName)
Handle< DatabaseUtilitySession > m_session
std::set< std::string > listMappingVersions(const std::string &containerName)
bool dumpMapping(const std::string &mappingVersion, std::ostream &outputStream)
std::map< std::string, std::string > listMappings(const std::string &containerName)
void importContainer(const std::string &sourceConnectionString, const std::string &containerName)
session
Definition: models.py:201
void eraseMapping(const std::string &mappingVersion)