CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DatabaseUtilitySession.h
Go to the documentation of this file.
1 #ifndef INCLUDE_ORA_DATABASEUTILITYIMPL_H
2 #define INCLUDE_ORA_DATABASEUTILITYIMPL_H
3 
5 //
6 #include <set>
7 #include <map>
8 
9 namespace ora {
10 
11  class DatabaseSession;
12  class DatabaseContainer;
13 
15  public:
16  explicit DatabaseUtilitySession( DatabaseSession& dbSession );
17 
18  virtual ~DatabaseUtilitySession();
19 
20  std::set<std::string> listMappingVersions( int containerId );
21 
22  std::map<std::string,std::string> listMappings( int containerId );
23 
24  bool dumpMapping( const std::string& mappingVersion, std::ostream& outputStream );
25 
26  void importContainerSchema( const std::string& sourceConnectionString, const std::string& containerName );
27 
28  void importContainer( const std::string& sourceConnectionString, const std::string& containerName );
29 
30  void eraseMapping( const std::string& mappingVersion );
31 
32  Handle<DatabaseContainer> containerHandle( const std::string& name );
33 
34  private:
35 
36  Handle<ora::DatabaseContainer> importContainerSchema( const std::string& containerName, DatabaseSession& sourceDbSession );
37 
38  bool existsContainer( const std::string& containerName );
39 
40  private:
41 
43  };
44 }
45 
46 #endif
47 
void eraseMapping(const std::string &mappingVersion)
bool dumpMapping(const std::string &mappingVersion, std::ostream &outputStream)
void importContainerSchema(const std::string &sourceConnectionString, const std::string &containerName)
void importContainer(const std::string &sourceConnectionString, const std::string &containerName)
DatabaseUtilitySession(DatabaseSession &dbSession)
std::map< std::string, std::string > listMappings(int containerId)
bool existsContainer(const std::string &containerName)
Handle< DatabaseContainer > containerHandle(const std::string &name)
std::set< std::string > listMappingVersions(int containerId)