#include <ContainerSchema.h>
Public Member Functions | |
IBlobStreamingService * | blobStreamingService () |
const std::string & | className () |
int | containerId () |
const std::string & | containerName () |
ContainerSchema (int containerId, const std::string &containerName, const Reflex::Type &containerType, DatabaseSession &session) | |
ContainerSchema (int containerId, const std::string &containerName, const std::string &className, DatabaseSession &session) | |
Sequences & | containerSequences () |
void | create () |
void | create (const Reflex::Type &dependentClass) |
DatabaseSession & | dbSession () |
void | drop () |
void | evolve () |
void | evolve (const Reflex::Type &dependentClass, MappingTree &baseMapping) |
bool | extendIfRequired (const Reflex::Type &dependentClass) |
MappingTree & | mapping (bool writeEnabled=false) |
MappingElement & | mappingForDependentClass (const Reflex::Type &dependentClass, bool writeEnabled=false) |
bool | mappingForDependentClasses (std::vector< MappingElement > &destination) |
const std::string & | mappingVersion () |
IReferenceHandler * | referenceHandler () |
void | setAccessPermission (const std::string &principal, bool forWrite) |
coral::ISchema & | storageSchema () |
const Reflex::Type & | type () |
~ContainerSchema () | |
Private Member Functions | |
void | extend (const Reflex::Type &dependentClass) |
void | getTableHierarchy (const std::set< std::string > &containerMappingVersions, std::vector< std::string > &destination) |
void | initClassDict () |
bool | loadMappingForDependentClass (const Reflex::Type &dependentClass) |
Private Attributes | |
Reflex::Type | m_classDict |
std::string | m_className |
int | m_containerId |
std::string | m_containerName |
Sequences | m_containerSchemaSequences |
std::map< std::string, MappingTree * > | m_dependentMappings |
bool | m_loaded |
MappingTree | m_mapping |
DatabaseSession & | m_session |
Definition at line 19 of file ContainerSchema.h.
ora::ContainerSchema::ContainerSchema | ( | int | containerId, |
const std::string & | containerName, | ||
const Reflex::Type & | containerType, | ||
DatabaseSession & | session | ||
) |
Definition at line 50 of file ContainerSchema.cc.
ora::ContainerSchema::ContainerSchema | ( | int | containerId, |
const std::string & | containerName, | ||
const std::string & | className, | ||
DatabaseSession & | session | ||
) |
Definition at line 65 of file ContainerSchema.cc.
ora::ContainerSchema::~ContainerSchema | ( | ) |
Definition at line 80 of file ContainerSchema.cc.
ora::IBlobStreamingService * ora::ContainerSchema::blobStreamingService | ( | ) |
Definition at line 339 of file ContainerSchema.cc.
const std::string & ora::ContainerSchema::className | ( | ) |
Definition at line 359 of file ContainerSchema.cc.
int ora::ContainerSchema::containerId | ( | ) |
Definition at line 351 of file ContainerSchema.cc.
const std::string & ora::ContainerSchema::containerName | ( | ) |
Definition at line 355 of file ContainerSchema.cc.
ora::Sequences & ora::ContainerSchema::containerSequences | ( | ) |
Definition at line 335 of file ContainerSchema.cc.
void ora::ContainerSchema::create | ( | ) |
Definition at line 93 of file ContainerSchema.cc.
References ora::MappingToSchema::create(), ora::MappingGenerator::createNewMapping(), ora::MappingRules::sequenceNameForContainer(), ora::MappingRules::sequenceNameForDependentClass(), and AlCaHLTBitMon_QueryRunRegistry::string.
void ora::ContainerSchema::create | ( | const Reflex::Type & | dependentClass | ) |
Definition at line 266 of file ContainerSchema.cc.
References className(), ora::MappingToSchema::create(), ora::MappingRules::sequenceNameForDependentClass(), and AlCaHLTBitMon_QueryRunRegistry::string.
ora::DatabaseSession & ora::ContainerSchema::dbSession | ( | ) |
Definition at line 367 of file ContainerSchema.cc.
void ora::ContainerSchema::drop | ( | ) |
Definition at line 137 of file ContainerSchema.cc.
References ora::MappingRules::sequenceNameForContainer(), and ora::MappingRules::sequenceNameForDependentClass().
void ora::ContainerSchema::evolve | ( | ) |
Definition at line 171 of file ContainerSchema.cc.
References ora::MappingToSchema::alter(), AlCaHLTBitMon_QueryRunRegistry::string, and ora::throwException().
void ora::ContainerSchema::evolve | ( | const Reflex::Type & | dependentClass, |
MappingTree & | baseMapping | ||
) |
Definition at line 189 of file ContainerSchema.cc.
References className(), ora::MappingTree::className(), AlCaHLTBitMon_QueryRunRegistry::string, and ora::throwException().
|
private |
Definition at line 281 of file ContainerSchema.cc.
References className(), SurfaceDeformationFactory::create(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by relval_steps.WF::__init__(), Config.Process::load(), and Mixins._ValidatingParameterListBase::setValue().
bool ora::ContainerSchema::extendIfRequired | ( | const Reflex::Type & | dependentClass | ) |
Definition at line 292 of file ContainerSchema.cc.
References run_regression::ret.
|
private |
Definition at line 119 of file ContainerSchema.cc.
References ora::addFromTableHierarchy(), ora::getTableHierarchyFromMappingElement(), ora::MappingElement::tableName(), and ora::MappingTree::topElement().
|
private |
Definition at line 87 of file ContainerSchema.cc.
References ora::ClassUtils::lookupDictionary(), and ora::throwException().
|
private |
Definition at line 247 of file ContainerSchema.cc.
References className(), AlCaHLTBitMon_QueryRunRegistry::string, ora::throwException(), and ora::MappingDatabase::versionOfClass().
ora::MappingTree & ora::ContainerSchema::mapping | ( | bool | writeEnabled = false | ) |
Definition at line 222 of file ContainerSchema.cc.
References ora::Configuration::automaticSchemaEvolution(), lumiQueryAPI::msg, AlCaHLTBitMon_QueryRunRegistry::string, ora::throwException(), and ora::MappingDatabase::versionOfClass().
Referenced by ora::WriteBuffer::flush(), ora::UpdateBuffer::flush(), ora::DeleteBuffer::flush(), ora::IteratorBuffer::IteratorBuffer(), and ora::ReadBuffer::ReadBuffer().
ora::MappingElement & ora::ContainerSchema::mappingForDependentClass | ( | const Reflex::Type & | dependentClass, |
bool | writeEnabled = false |
||
) |
Definition at line 301 of file ContainerSchema.cc.
References ora::Configuration::automaticContainerCreation(), ora::Configuration::automaticDatabaseCreation(), ora::Configuration::automaticSchemaEvolution(), className(), SurfaceDeformationFactory::create(), AlCaHLTBitMon_QueryRunRegistry::string, and ora::throwException().
bool ora::ContainerSchema::mappingForDependentClasses | ( | std::vector< MappingElement > & | destination | ) |
Definition at line 331 of file ContainerSchema.cc.
Referenced by ora::UpdateBuffer::flush(), and ora::DeleteBuffer::flush().
const std::string & ora::ContainerSchema::mappingVersion | ( | ) |
Definition at line 347 of file ContainerSchema.cc.
ora::IReferenceHandler * ora::ContainerSchema::referenceHandler | ( | ) |
Definition at line 343 of file ContainerSchema.cc.
void ora::ContainerSchema::setAccessPermission | ( | const std::string & | principal, |
bool | forWrite | ||
) |
Definition at line 205 of file ContainerSchema.cc.
References cmsRelvalreport::principal(), and ora::setTableAccessPermission().
coral::ISchema & ora::ContainerSchema::storageSchema | ( | ) |
Definition at line 363 of file ContainerSchema.cc.
Referenced by ora::QVQueryMaker::build(), ora::DependentClassReader::build(), ora::WriteBuffer::flush(), ora::UpdateBuffer::flush(), ora::DeleteBuffer::flush(), and ora::QVQueryMaker::selectionCount().
const Reflex::Type & ora::ContainerSchema::type | ( | ) |
Definition at line 217 of file ContainerSchema.cc.
Referenced by cuy.ValElement::__init__(), ora::WriteBuffer::flush(), ora::UpdateBuffer::flush(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputCommands(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputCommands(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputEventContent(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties().
|
private |
Definition at line 84 of file ContainerSchema.h.
|
private |
Definition at line 83 of file ContainerSchema.h.
|
private |
Definition at line 81 of file ContainerSchema.h.
|
private |
Definition at line 82 of file ContainerSchema.h.
|
private |
Definition at line 87 of file ContainerSchema.h.
|
private |
Definition at line 89 of file ContainerSchema.h.
|
private |
Definition at line 86 of file ContainerSchema.h.
|
private |
Definition at line 88 of file ContainerSchema.h.
|
private |
Definition at line 85 of file ContainerSchema.h.