#include <RelationalMapping.h>
Public Member Functions | |
OraPtrMapping (const Reflex::Type &attributeType, TableRegister &tableRegister) | |
void | process (MappingElement &parentElement, const std::string &attributeName, const std::string &attributeNameForSchema, const std::string &scopeNameForSchema) |
~OraPtrMapping () | |
Private Attributes | |
TableRegister & | m_tableRegister |
Reflex::Type | m_type |
Definition at line 102 of file RelationalMapping.h.
ora::OraPtrMapping::OraPtrMapping | ( | const Reflex::Type & | attributeType, |
TableRegister & | tableRegister | ||
) |
Definition at line 297 of file RelationalMapping.cc.
: m_type(attributeType), m_tableRegister( tableRegister ){ }
ora::OraPtrMapping::~OraPtrMapping | ( | ) |
Definition at line 301 of file RelationalMapping.cc.
{ }
void ora::OraPtrMapping::process | ( | MappingElement & | parentElement, |
const std::string & | attributeName, | ||
const std::string & | attributeNameForSchema, | ||
const std::string & | scopeNameForSchema | ||
) | [virtual] |
Implements ora::IRelationalMapping.
Definition at line 304 of file RelationalMapping.cc.
References ora::MappingElement::appendSubElement(), ora::MappingElement::columnNames(), ora::RelationalMappingFactory::newProcessor(), ora::MappingElement::OraPointerMappingElementType(), ora::MappingElement::setColumnNames(), and ora::MappingElement::tableName().
{ std::string typeName = m_type.Name(Reflex::SCOPED); ora::MappingElement& me = parentElement.appendSubElement( ora::MappingElement::OraPointerMappingElementType(), attributeName, typeName, parentElement.tableName() ); me.setColumnNames( parentElement.columnNames() ); Reflex::Type ptrType = m_type.TemplateArgumentAt(0); std::string ptrTypeName = ptrType.Name(); RelationalMappingFactory factory( m_tableRegister ); std::auto_ptr<IRelationalMapping> processor( factory.newProcessor( ptrType ) ); processor->process( me, ptrTypeName, attributeNameForSchema, scopeNameForSchema ); }
TableRegister& ora::OraPtrMapping::m_tableRegister [private] |
Definition at line 112 of file RelationalMapping.h.
Reflex::Type ora::OraPtrMapping::m_type [private] |
Definition at line 111 of file RelationalMapping.h.