CMS 3D CMS Logo

Public Member Functions | Private Attributes

ora::OraPtrMapping Class Reference

#include <RelationalMapping.h>

Inheritance diagram for ora::OraPtrMapping:
ora::IRelationalMapping

List of all members.

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

TableRegisterm_tableRegister
Reflex::Type m_type

Detailed Description

Definition at line 102 of file RelationalMapping.h.


Constructor & Destructor Documentation

ora::OraPtrMapping::OraPtrMapping ( const Reflex::Type &  attributeType,
TableRegister tableRegister 
)

Definition at line 289 of file RelationalMapping.cc.

                                                                                              :
  m_type(attributeType), m_tableRegister( tableRegister ){
}
ora::OraPtrMapping::~OraPtrMapping ( )

Definition at line 293 of file RelationalMapping.cc.

                                {
}

Member Function Documentation

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 296 of file RelationalMapping.cc.

References ora::MappingElement::appendSubElement(), ora::MappingElement::columnNames(), tests::test_Package01::factory, 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 );
}

Member Data Documentation

Definition at line 112 of file RelationalMapping.h.

Reflex::Type ora::OraPtrMapping::m_type [private]

Definition at line 111 of file RelationalMapping.h.