#include <OraReferenceStreamer.h>
Definition at line 13 of file OraReferenceStreamer.h.
Definition at line 14 of file OraReferenceStreamer.cc.
References m_columnIndexes.
MappingElement & m_mapping
edm::TypeWithDict m_objectType
DataElement * m_dataElement
DataElement * m_dataElemOId0
DataElement * m_dataElemOId1
IRelationalData * m_relationalData
ContainerSchema & m_schema
ora::OraReferenceStreamerBase::~OraReferenceStreamerBase |
( |
| ) |
|
|
virtual |
void ora::OraReferenceStreamerBase::bindDataForRead |
( |
void * |
data | ) |
|
Definition at line 86 of file OraReferenceStreamer.cc.
References ora::IReferenceHandler::onLoad(), and ora::throwException().
89 "OraReferenceStreamerBase::bindDataForRead");
94 *
static_cast<int*
>(oid0Address) = oid0Attr.data<
int>();
97 *
static_cast<int*
>( oid1Address ) = oid1Attr.data<
int>();
100 if(refHandler) refHandler->onLoad( *static_cast<Reference*>( refPtr ) );
void * address(const void *topLevelAddress) const
IReferenceHandler * referenceHandler()
DataElement * m_dataElement
DataElement * m_dataElemOId0
DataElement * m_dataElemOId1
IRelationalData * m_relationalData
virtual coral::AttributeList & data()=0
ContainerSchema & m_schema
void throwException(const std::string &message, const std::string &methodName) __attribute__((noreturn))
void ora::OraReferenceStreamerBase::bindDataForUpdate |
( |
const void * |
data | ) |
|
Definition at line 69 of file OraReferenceStreamer.cc.
References ora::IReferenceHandler::onSave(), and ora::throwException().
72 "OraReferenceStreamerBase::bindDataForUpdate");
77 oid0Attr.data<
int>()= *static_cast<int*>(oid0Address);
80 oid1Attr.data<
int>()= *static_cast<int*>(oid1Address) ;
83 if(refHandler) refHandler->onSave( *static_cast<Reference*>( refPtr ) );
void * address(const void *topLevelAddress) const
IReferenceHandler * referenceHandler()
DataElement * m_dataElement
DataElement * m_dataElemOId0
DataElement * m_dataElemOId1
IRelationalData * m_relationalData
virtual coral::AttributeList & data()=0
ContainerSchema & m_schema
void throwException(const std::string &message, const std::string &methodName) __attribute__((noreturn))
Definition at line 32 of file OraReferenceStreamer.cc.
References ora::DataElement::addChild(), ora::IRelationalData::addData(), mps_check::columns, edm::TypeWithDict::dataMemberByName(), ora::ClassUtils::findBaseType(), i, edm::MemberWithDict::offset(), and ora::throwException().
38 size_t baseOffsetFunc = 0;
43 "OraReferenceStreamerBase::buildDataElement");
48 if( !contIdMember || !itemIdMember ){
50 "OraReferenceStreamerBase::buildDataElement");
56 if( columns.size() < 2 ){
57 throwException(
"Expected column names have not been found in the mapping.",
58 "OraReferenceStreamerBase::buildDataElement");
60 const std::type_info& attrType =
typeid(int);
61 for(
size_t i=0;
i<2;
i++ ){
MappingElement & m_mapping
edm::TypeWithDict m_objectType
DataElement * m_dataElement
DataElement * m_dataElemOId0
DataElement * m_dataElemOId1
std::string cppName() const
const std::vector< std::string > & columnNames() const
DataElement & addChild(size_t declaringScopeOffset, size_toffset)
IRelationalData * m_relationalData
bool findBaseType(edm::TypeWithDict &type, edm::TypeWithDict &baseType, size_t &func)
void throwException(const std::string &message, const std::string &methodName) __attribute__((noreturn))
int ora::OraReferenceStreamerBase::m_columnIndexes[2] |
|
private |
DataElement* ora::OraReferenceStreamerBase::m_dataElement |
|
private |
DataElement* ora::OraReferenceStreamerBase::m_dataElemOId0 |
|
private |
DataElement* ora::OraReferenceStreamerBase::m_dataElemOId1 |
|
private |