Public Member Functions | |
size_t | getSelectionCount (const Selection &selection) const |
void | invalidate () |
bool | isValid () const |
bool | load (void *address) const |
bool | loadSelection (const Selection &selection, void *address) const |
QueryableVectorLoader (const Reflex::Type &objectType, MappingElement &mapping, ContainerSchema &contSchema, const std::vector< int > &fullId) | |
virtual | ~QueryableVectorLoader () |
Private Attributes | |
std::vector< int > | m_identity |
bool | m_isValid |
QVQueryMaker | m_queryMaker |
QVReader | m_reader |
Definition at line 288 of file QueryableVectorStreamer.cc.
ora::QueryableVectorLoader::QueryableVectorLoader | ( | const Reflex::Type & | objectType, |
MappingElement & | mapping, | ||
ContainerSchema & | contSchema, | ||
const std::vector< int > & | fullId | ||
) | [inline] |
Definition at line 293 of file QueryableVectorStreamer.cc.
: m_isValid(true), m_reader( objectType, mapping, contSchema ), m_queryMaker( objectType, mapping, contSchema ), m_identity(fullId){ }
virtual ora::QueryableVectorLoader::~QueryableVectorLoader | ( | ) | [inline, virtual] |
Definition at line 302 of file QueryableVectorStreamer.cc.
:
size_t ora::QueryableVectorLoader::getSelectionCount | ( | const Selection & | selection | ) | const [inline, virtual] |
Implements ora::IVectorLoader.
Definition at line 328 of file QueryableVectorStreamer.cc.
References m_identity, m_queryMaker, and ora::QVQueryMaker::selectionCount().
{ ret = m_queryMaker.selectionCount( m_identity, selection ); } return ret; }
void ora::QueryableVectorLoader::invalidate | ( | ) | [inline, virtual] |
bool ora::QueryableVectorLoader::isValid | ( | void | ) | const [inline, virtual] |
bool ora::QueryableVectorLoader::load | ( | void * | address | ) | const [inline, virtual] |
Implements ora::IVectorLoader.
Definition at line 308 of file QueryableVectorStreamer.cc.
References m_identity, m_reader, and ora::QVReader::read().
{ m_reader.read( m_identity, address ); ret = true; } return ret; }
bool ora::QueryableVectorLoader::loadSelection | ( | const Selection & | selection, |
void * | address | ||
) | const [inline, virtual] |
Implements ora::IVectorLoader.
Definition at line 317 of file QueryableVectorStreamer.cc.
References ora::QVQueryMaker::build(), ora::QVQueryMaker::executeAndLoad(), m_identity, m_queryMaker, and ora::QVQueryMaker::select().
{ m_queryMaker.build(); m_queryMaker.select( m_identity, selection ); m_queryMaker.executeAndLoad( address ); ret = true; } return ret; }
std::vector<int> ora::QueryableVectorLoader::m_identity [private] |
Definition at line 348 of file QueryableVectorStreamer.cc.
Referenced by getSelectionCount(), load(), and loadSelection().
bool ora::QueryableVectorLoader::m_isValid [private] |
Definition at line 345 of file QueryableVectorStreamer.cc.
QVQueryMaker ora::QueryableVectorLoader::m_queryMaker [mutable, private] |
Definition at line 347 of file QueryableVectorStreamer.cc.
Referenced by getSelectionCount(), and loadSelection().
QVReader ora::QueryableVectorLoader::m_reader [mutable, private] |
Definition at line 346 of file QueryableVectorStreamer.cc.
Referenced by load().