13 m_session( utilitySession ){
17 m_session( rhs.m_session ){
31 throwException(
"Container \""+containerName+
"\" does not exist in the database.",
32 "DatabaseUtility::listMappingVersions");
34 return m_session->listMappingVersions( cont->
id() );
40 throwException(
"Container \""+containerName+
"\" does not exist in the database.",
41 "DatabaseUtility::listMappings");
43 return m_session->listMappings( cont->
id() );
47 std::ostream& outputStream ){
48 return m_session->dumpMapping( mappingVersion,outputStream );
52 const std::string& containerName ){
53 m_session->importContainerSchema( sourceConnectionString, containerName );
57 const std::string& containerName ){
58 m_session->importContainer( sourceConnectionString, containerName );
62 m_session->eraseMapping( mappingVersion );
DatabaseUtility & operator=(const DatabaseUtility &rhs)
virtual ~DatabaseUtility()
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 throwException(const std::string &message, const std::string &methodName)
void importContainer(const std::string &sourceConnectionString, const std::string &containerName)
void eraseMapping(const std::string &mappingVersion)