#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 | ( | ) |
|
explicit |
Constructor.
Definition at line 13 of file MappingTree.cc.
ora::MappingTree::MappingTree | ( | const MappingTree & | rhs | ) |
Definition at line 19 of file MappingTree.cc.
ora::MappingTree::~MappingTree | ( | ) |
Destructor.
Definition at line 26 of file MappingTree.cc.
|
inline |
Returns the main class
Definition at line 138 of file MappingTree.h.
Referenced by ora::MappingGenerator::createNewDependentMapping(), and ora::MappingGenerator::createNewMapping().
ora::MappingTree & ora::MappingTree::operator= | ( | const MappingTree & | rhs | ) |
Definition at line 29 of file MappingTree.cc.
void ora::MappingTree::override | ( | const MappingTree & | source | ) |
replace present data with the provided source
Definition at line 58 of file MappingTree.cc.
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.
void ora::MappingTree::setDependency | ( | const MappingTree & | parentTree | ) |
Definition at line 52 of file MappingTree.cc.
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.
Referenced by ora::MappingGenerator::createNewDependentMapping(), and ora::MappingGenerator::createNewMapping().
|
inline |
std::vector< ora::TableInfo > ora::MappingTree::tables | ( | ) | const |
Definition at line 123 of file MappingTree.cc.
|
inline |
Returns the main mapping element
Definition at line 143 of file MappingTree.h.
Referenced by ora::MappingGenerator::createNewDependentMapping().
|
inline |
|
inline |
Returns the version of the mapping
Definition at line 128 of file MappingTree.h.
References m_version.
|
private |
The main tree
Definition at line 120 of file MappingTree.h.
|
private |
Definition at line 122 of file MappingTree.h.
|
private |