#include <MappingTree.h>
Public Member Functions | |
const std::string & | className () const |
MappingTree () | |
Constructor. More... | |
MappingTree (const std::string &version) | |
Constructor. More... | |
MappingTree (const MappingTree &rhs) | |
MappingTree & | operator= (const MappingTree &rhs) |
void | override (const MappingTree &source) |
replace present data with the provided source More... | |
void | printXML (std::ostream &outputStream) const |
void | setDependency (const MappingTree &parentTree) |
MappingElement & | setTopElement (const std::string &className, const std::string &tableName, bool isDependent=false) |
void | setVersion (const std::string &version) |
std::vector< TableInfo > | tables () const |
const MappingElement & | topElement () const |
MappingElement & | topElement () |
const std::string & | version () const |
~MappingTree () | |
Destructor. More... | |
Private Attributes | |
MappingElement | m_element |
std::auto_ptr< TableInfo > | m_parentTable |
std::string | m_version |
The structure holding an object/relational mapping.
Definition at line 53 of file MappingTree.h.
ora::MappingTree::MappingTree | ( | ) |
Constructor.
Public methods:
Definition at line 7 of file MappingTree.cc.
|
explicit |
Constructor.
Definition at line 13 of file MappingTree.cc.
ora::MappingTree::MappingTree | ( | const MappingTree & | rhs | ) |
Definition at line 19 of file MappingTree.cc.
References m_parentTable.
ora::MappingTree::~MappingTree | ( | ) |
|
inline |
Returns the main class
Definition at line 138 of file MappingTree.h.
Referenced by ora::MappingGenerator::createNewDependentMapping(), ora::MappingGenerator::createNewMapping(), ora::ContainerSchema::evolve(), ora::MappingDatabase::getBaseMappingForContainer(), ora::MappingDatabase::getMappingForContainer(), ora::DatabaseUtilitySession::importContainerSchema(), and override().
ora::MappingTree & ora::MappingTree::operator= | ( | const MappingTree & | rhs | ) |
Definition at line 29 of file MappingTree.cc.
References m_element, m_parentTable, and m_version.
void ora::MappingTree::override | ( | const MappingTree & | source | ) |
replace present data with the provided source
Definition at line 58 of file MappingTree.cc.
References className(), className(), and m_element.
Referenced by ora::MappingGenerator::createNewDependentMapping(), and ora::MappingGenerator::createNewMapping().
void ora::MappingTree::printXML | ( | std::ostream & | outputStream | ) | const |
Definition at line 142 of file MappingTree.cc.
Referenced by ora::DatabaseUtilitySession::dumpMapping().
void ora::MappingTree::setDependency | ( | const MappingTree & | parentTree | ) |
Definition at line 52 of file MappingTree.cc.
References ora::MappingElement::columnNames(), m_element, and ora::MappingElement::tableName().
Referenced by ora::MappingGenerator::createNewDependentMapping().
ora::MappingElement & ora::MappingTree::setTopElement | ( | const std::string & | className, |
const std::string & | tableName, | ||
bool | isDependent = false |
||
) |
Appends the element to the structure
className | The class name of the new element |
tableName | The table name of the new element |
elementType | The type code of the new element |
Definition at line 40 of file MappingTree.cc.
References ora::MappingElement::classMappingElementType(), ora::MappingElement::dependencyMappingElementType(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ora::MappingGenerator::createNewDependentMapping(), ora::MappingGenerator::createNewMapping(), and ora::MappingDatabase::getMappingByVersion().
|
inline |
Definition at line 133 of file MappingTree.h.
References BeamSplash_cfg::version.
Referenced by ora::MappingDatabase::getMappingByVersion().
std::vector< ora::TableInfo > ora::MappingTree::tables | ( | ) | const |
Definition at line 123 of file MappingTree.cc.
References run_regression::ret, and ora::scanElement().
Referenced by ora::MappingToSchema::alter(), ora::MappingToSchema::check(), and ora::MappingToSchema::create().
|
inline |
Returns the main mapping element
Definition at line 143 of file MappingTree.h.
Referenced by ora::MappingGenerator::createNewDependentMapping(), ora::WriteBuffer::flush(), ora::UpdateBuffer::flush(), ora::DeleteBuffer::flush(), ora::MappingDatabase::getDependentMappingsForContainer(), ora::ContainerSchema::getTableHierarchy(), ora::IteratorBuffer::IteratorBuffer(), ora::ReadBuffer::ReadBuffer(), and ora::MappingDatabase::storeMapping().
|
inline |
|
inline |
Returns the version of the mapping
Definition at line 128 of file MappingTree.h.
References m_version.
Referenced by ora::DatabaseUtilitySession::importContainerSchema(), and ora::MappingDatabase::storeMapping().
|
private |
The main tree
Definition at line 120 of file MappingTree.h.
Referenced by operator=(), override(), and setDependency().
|
private |
Definition at line 122 of file MappingTree.h.
Referenced by MappingTree(), and operator=().
|
private |
The mapping version
Definition at line 115 of file MappingTree.h.
Referenced by operator=(), and version().