#include <ObjectStreamer.h>
Public Member Functions | |
bool | build (DataElement &offset, IRelationalData &relationalData) |
void | clear () |
ObjectReader (const Reflex::Type &objectType, MappingElement &mapping, ContainerSchema &contSchema) | |
void | processDataMember (DataElement &dataElement, IRelationalData &relationalData, Reflex::Type &dataMemberType, MappingElement &dataMemberMapping, RelationalBuffer *operationBuffer) |
void | read (void *destination) |
Reads a data element. | |
void | select (int oid) |
void | setRecordId (const std::vector< int > &identity) |
virtual | ~ObjectReader () |
Private Attributes | |
std::vector< IRelationalReader * > | m_readers |
Definition at line 78 of file ObjectStreamer.h.
ora::ObjectReader::ObjectReader | ( | const Reflex::Type & | objectType, |
MappingElement & | mapping, | ||
ContainerSchema & | contSchema | ||
) |
Definition at line 204 of file ObjectStreamer.cc.
: ObjectStreamerBase( objectType, mapping, contSchema ), m_readers(){ }
ora::ObjectReader::~ObjectReader | ( | ) | [virtual] |
Definition at line 211 of file ObjectStreamer.cc.
bool ora::ObjectReader::build | ( | DataElement & | offset, |
IRelationalData & | relationalData | ||
) | [virtual] |
Implements ora::IRelationalReader.
Definition at line 219 of file ObjectStreamer.cc.
{ return buildDataMembers( dataElement, relationalData, 0 ); }
void ora::ObjectReader::clear | ( | void | ) | [virtual] |
Implements ora::IRelationalReader.
Definition at line 246 of file ObjectStreamer.cc.
void ora::ObjectReader::processDataMember | ( | DataElement & | dataElement, |
IRelationalData & | relationalData, | ||
Reflex::Type & | dataMemberType, | ||
MappingElement & | dataMemberMapping, | ||
RelationalBuffer * | operationBuffer | ||
) | [virtual] |
Implements ora::ObjectStreamerBase.
Definition at line 253 of file ObjectStreamer.cc.
References ora::IRelationalReader::build().
{ IRelationalReader* dataMemberReader = m_streamerFactory.newReader( dataMemberType, dataMemberMapping ); m_readers.push_back( dataMemberReader ); dataMemberReader->build( dataMemberElement, relationalData ); }
void ora::ObjectReader::read | ( | void * | destination | ) | [virtual] |
Reads a data element.
Read a data element.
Implements ora::IRelationalReader.
Definition at line 239 of file ObjectStreamer.cc.
void ora::ObjectReader::select | ( | int | oid | ) | [virtual] |
Implements ora::IRelationalReader.
Definition at line 224 of file ObjectStreamer.cc.
void ora::ObjectReader::setRecordId | ( | const std::vector< int > & | identity | ) | [virtual] |
Implements ora::IRelationalReader.
Definition at line 231 of file ObjectStreamer.cc.
std::vector< IRelationalReader* > ora::ObjectReader::m_readers [private] |
Definition at line 103 of file ObjectStreamer.h.