Definition at line 17 of file UniqueRefStreamer.cc.
ora::DependentClassWriter::DependentClassWriter |
( |
| ) |
|
|
inline |
Definition at line 20 of file UniqueRefStreamer.cc.
std::auto_ptr< IRelationalWriter > m_writer
InsertOperation * m_depInsert
DataElement m_dataElement
ora::DependentClassWriter::~DependentClassWriter |
( |
| ) |
|
|
inline |
Definition at line 26 of file UniqueRefStreamer.cc.
References ora::InputRelationalData::addId(), ora::MappingElement::columnNames(), ora::MappingElement::end(), ora::MappingElement::find(), m_dataElement, m_depInsert, m_writer, ora::RelationalBuffer::newInsert(), ora::RelationalStreamerFactory::newWriter(), ora::MappingElement::tableName(), and ora::throwException().
Referenced by ora::UniqueRefWriter::write().
29 m_depInsert = &operationBuffer.newInsert( mapping.tableName());
30 const std::vector<std::string> columns = mapping.columnNames();
31 for( std::vector<std::string>::const_iterator iC = columns.begin();
32 iC != columns.end(); ++iC){
38 if( iMe == mapping.end()){
40 objectType.Name(Reflex::SCOPED)+
"\"",
41 "DependentClassWriter::write");
43 RelationalStreamerFactory streamerFactory( contSchema );
44 m_writer.reset( streamerFactory.newWriter( objectType, iMe->second ) );
std::auto_ptr< IRelationalWriter > m_writer
InsertOperation * m_depInsert
DataElement m_dataElement
std::map< std::string, MappingElement >::iterator iterator
Iterator definition.
void throwException(const std::string &message, const std::string &methodName) __attribute__((noreturn))
void ora::DependentClassWriter::write |
( |
int |
oId, |
|
|
int |
refId, |
|
|
const void * |
data |
|
) |
| |
|
inline |