#include <DatabaseUtilitySession.h>
Public Member Functions | |
Handle< DatabaseContainer > | containerHandle (const std::string &name) |
DatabaseUtilitySession (DatabaseSession &dbSession) | |
bool | dumpMapping (const std::string &mappingVersion, std::ostream &outputStream) |
void | eraseMapping (const std::string &mappingVersion) |
void | importContainer (const std::string &sourceConnectionString, const std::string &containerName) |
void | importContainerSchema (const std::string &sourceConnectionString, const std::string &containerName) |
std::map< std::string, std::string > | listMappings (int containerId) |
std::set< std::string > | listMappingVersions (int containerId) |
virtual | ~DatabaseUtilitySession () |
Private Member Functions | |
bool | existsContainer (const std::string &containerName) |
Handle< ora::DatabaseContainer > | importContainerSchema (const std::string &containerName, DatabaseSession &sourceDbSession) |
Private Attributes | |
DatabaseSession & | m_session |
Definition at line 14 of file DatabaseUtilitySession.h.
|
explicit |
Definition at line 13 of file DatabaseUtilitySession.cc.
|
virtual |
Definition at line 17 of file DatabaseUtilitySession.cc.
ora::Handle< ora::DatabaseContainer > ora::DatabaseUtilitySession::containerHandle | ( | const std::string & | name | ) |
Definition at line 227 of file DatabaseUtilitySession.cc.
References ora::throwException().
bool ora::DatabaseUtilitySession::dumpMapping | ( | const std::string & | mappingVersion, |
std::ostream & | outputStream | ||
) |
Definition at line 32 of file DatabaseUtilitySession.cc.
References alignCSCRings::dest, and ora::MappingTree::printXML().
void ora::DatabaseUtilitySession::eraseMapping | ( | const std::string & | mappingVersion | ) |
Definition at line 218 of file DatabaseUtilitySession.cc.
References ora::throwException().
|
private |
Definition at line 184 of file DatabaseUtilitySession.cc.
References newFWLiteAna::found, and python.multivaluedict::map().
void ora::DatabaseUtilitySession::importContainer | ( | const std::string & | sourceConnectionString, |
const std::string & | containerName | ||
) |
Definition at line 196 of file DatabaseUtilitySession.cc.
References ora::DatabaseSession::connect(), generateEDF::cont, data, edm::TypeWithDict::destruct(), ora::DatabaseContainer::flush(), ora::IteratorBuffer::getItem(), ora::DatabaseContainer::insertItem(), ora::DatabaseContainer::iteratorBuffer(), ora::IteratorBuffer::next(), and ora::DatabaseContainer::type().
void ora::DatabaseUtilitySession::importContainerSchema | ( | const std::string & | sourceConnectionString, |
const std::string & | containerName | ||
) |
Definition at line 174 of file DatabaseUtilitySession.cc.
References ora::DatabaseSession::connect().
|
private |
third evolve the schema for all the further versions involved
Definition at line 42 of file DatabaseUtilitySession.cc.
References ora::Configuration::automaticDatabaseCreation(), className(), ora::DatabaseContainer::className(), ora::MappingTree::className(), generateEDF::cont, ora::DatabaseSession::containerHandle(), plotBeamSpotDB::first, ora::MappingDatabase::getBaseMappingForContainer(), ora::MappingDatabase::getClassVersionListForMappingVersion(), ora::MappingDatabase::getDependentClassesForContainer(), ora::MappingDatabase::getMappingByVersion(), ora::MappingDatabase::getMappingVersionsForContainer(), ora::DatabaseContainer::id(), ora::DatabaseSession::mappingDatabase(), ora::DatabaseSession::open(), ora::MappingRules::sequenceNameForContainer(), ora::MappingRules::sequenceNameForDependentClass(), AlCaHLTBitMon_QueryRunRegistry::string, ora::throwException(), and ora::MappingTree::version().
std::map< std::string, std::string > ora::DatabaseUtilitySession::listMappings | ( | int | containerId | ) |
Definition at line 26 of file DatabaseUtilitySession.cc.
std::set< std::string > ora::DatabaseUtilitySession::listMappingVersions | ( | int | containerId | ) |
Definition at line 20 of file DatabaseUtilitySession.cc.
|
private |
Definition at line 42 of file DatabaseUtilitySession.h.