CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
ora::ContainerSchema Class Reference

#include <ContainerSchema.h>

Public Member Functions

IBlobStreamingServiceblobStreamingService ()
 
const std::string & className ()
 
int containerId ()
 
const std::string & containerName ()
 
 ContainerSchema (int containerId, const std::string &containerName, const edm::TypeWithDict &containerType, DatabaseSession &session)
 
 ContainerSchema (int containerId, const std::string &containerName, const std::string &className, DatabaseSession &session)
 
SequencescontainerSequences ()
 
void create ()
 
void create (const edm::TypeWithDict &dependentClass)
 
DatabaseSessiondbSession ()
 
void drop ()
 
void evolve ()
 
void evolve (const edm::TypeWithDict &dependentClass, MappingTree &baseMapping)
 
bool extendIfRequired (const edm::TypeWithDict &dependentClass)
 
MappingTreemapping (bool writeEnabled=false)
 
MappingElementmappingForDependentClass (const edm::TypeWithDict &dependentClass, bool writeEnabled=false)
 
bool mappingForDependentClasses (std::vector< MappingElement > &destination)
 
const std::string & mappingVersion ()
 
IReferenceHandlerreferenceHandler ()
 
void setAccessPermission (const std::string &principal, bool forWrite)
 
coral::ISchema & storageSchema ()
 
const edm::TypeWithDicttype ()
 
 ~ContainerSchema ()
 

Private Member Functions

void extend (const edm::TypeWithDict &dependentClass)
 
void getTableHierarchy (const std::set< std::string > &containerMappingVersions, std::vector< std::string > &destination)
 
void initClassDict ()
 
bool loadMappingForDependentClass (const edm::TypeWithDict &dependentClass)
 

Private Attributes

edm::TypeWithDict 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
 
DatabaseSessionm_session
 

Detailed Description

Definition at line 19 of file ContainerSchema.h.

Constructor & Destructor Documentation

ora::ContainerSchema::ContainerSchema ( int  containerId,
const std::string &  containerName,
const edm::TypeWithDict 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.

Member Function Documentation

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.

void ora::ContainerSchema::create ( const edm::TypeWithDict dependentClass)

Definition at line 266 of file ContainerSchema.cc.

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.

void ora::ContainerSchema::evolve ( )

Definition at line 171 of file ContainerSchema.cc.

void ora::ContainerSchema::evolve ( const edm::TypeWithDict dependentClass,
MappingTree baseMapping 
)

Definition at line 189 of file ContainerSchema.cc.

void ora::ContainerSchema::extend ( const edm::TypeWithDict dependentClass)
private

Definition at line 281 of file ContainerSchema.cc.

bool ora::ContainerSchema::extendIfRequired ( const edm::TypeWithDict dependentClass)

Definition at line 292 of file ContainerSchema.cc.

void ora::ContainerSchema::getTableHierarchy ( const std::set< std::string > &  containerMappingVersions,
std::vector< std::string > &  destination 
)
private

Definition at line 119 of file ContainerSchema.cc.

void ora::ContainerSchema::initClassDict ( )
private

Definition at line 87 of file ContainerSchema.cc.

bool ora::ContainerSchema::loadMappingForDependentClass ( const edm::TypeWithDict dependentClass)
private

Definition at line 247 of file ContainerSchema.cc.

ora::MappingTree & ora::ContainerSchema::mapping ( bool  writeEnabled = false)

Definition at line 222 of file ContainerSchema.cc.

ora::MappingElement & ora::ContainerSchema::mappingForDependentClass ( const edm::TypeWithDict dependentClass,
bool  writeEnabled = false 
)

Definition at line 301 of file ContainerSchema.cc.

bool ora::ContainerSchema::mappingForDependentClasses ( std::vector< MappingElement > &  destination)

Definition at line 331 of file ContainerSchema.cc.

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.

coral::ISchema & ora::ContainerSchema::storageSchema ( )

Definition at line 363 of file ContainerSchema.cc.

const edm::TypeWithDict & ora::ContainerSchema::type ( )

Definition at line 217 of file ContainerSchema.cc.

Member Data Documentation

edm::TypeWithDict ora::ContainerSchema::m_classDict
private

Definition at line 84 of file ContainerSchema.h.

std::string ora::ContainerSchema::m_className
private

Definition at line 83 of file ContainerSchema.h.

int ora::ContainerSchema::m_containerId
private

Definition at line 81 of file ContainerSchema.h.

std::string ora::ContainerSchema::m_containerName
private

Definition at line 82 of file ContainerSchema.h.

Sequences ora::ContainerSchema::m_containerSchemaSequences
private

Definition at line 87 of file ContainerSchema.h.

std::map<std::string,MappingTree*> ora::ContainerSchema::m_dependentMappings
private

Definition at line 89 of file ContainerSchema.h.

bool ora::ContainerSchema::m_loaded
private

Definition at line 86 of file ContainerSchema.h.

MappingTree ora::ContainerSchema::m_mapping
private

Definition at line 88 of file ContainerSchema.h.

DatabaseSession& ora::ContainerSchema::m_session
private

Definition at line 85 of file ContainerSchema.h.