Public Member Functions | |
void | build (const Reflex::Type &objectType, MappingElement &mapping, ContainerSchema &contSchema) |
void | invalidate () |
bool | isValid () const |
void * | load () const |
RelationalRefLoader (int refId) | |
virtual | ~RelationalRefLoader () |
Private Attributes | |
DependentClassReader | m_reader |
int | m_refId |
bool | m_valid |
Definition at line 130 of file UniqueRefStreamer.cc.
ora::RelationalRefLoader::RelationalRefLoader | ( | int | refId | ) | [inline, explicit] |
Definition at line 132 of file UniqueRefStreamer.cc.
virtual ora::RelationalRefLoader::~RelationalRefLoader | ( | ) | [inline, virtual] |
Definition at line 138 of file UniqueRefStreamer.cc.
{ }
void ora::RelationalRefLoader::build | ( | const Reflex::Type & | objectType, |
MappingElement & | mapping, | ||
ContainerSchema & | contSchema | ||
) | [inline] |
Definition at line 142 of file UniqueRefStreamer.cc.
References ora::DependentClassReader::build(), m_reader, and m_valid.
void ora::RelationalRefLoader::invalidate | ( | ) | [inline, virtual] |
Implements ora::IPtrLoader.
Definition at line 155 of file UniqueRefStreamer.cc.
References m_valid.
{ m_valid = false; }
bool ora::RelationalRefLoader::isValid | ( | void | ) | const [inline, virtual] |
Implements ora::IPtrLoader.
Definition at line 159 of file UniqueRefStreamer.cc.
References m_valid.
{ return m_valid; }
void* ora::RelationalRefLoader::load | ( | ) | const [inline, virtual] |
Implements ora::IPtrLoader.
Definition at line 147 of file UniqueRefStreamer.cc.
References m_reader, m_refId, m_valid, ora::DependentClassReader::read(), and ora::throwException().
{ if(!m_valid){ throwException("Ref Loader has been invalidate.", "RelationalRefLoader::load"); } return m_reader.read( m_refId ); }
DependentClassReader ora::RelationalRefLoader::m_reader [mutable, private] |
Definition at line 164 of file UniqueRefStreamer.cc.
int ora::RelationalRefLoader::m_refId [private] |
Definition at line 165 of file UniqueRefStreamer.cc.
Referenced by load().
bool ora::RelationalRefLoader::m_valid [private] |
Definition at line 166 of file UniqueRefStreamer.cc.
Referenced by build(), invalidate(), isValid(), and load().