#include <DatabaseContainer.h>
Public Member Functions | |
void * | getItem () |
void * | getItemAsType (const Reflex::Type &type) |
int | itemId () |
IteratorBuffer (ContainerSchema &schema, ReadBuffer &buffer) | |
bool | next () |
void | reset () |
const Reflex::Type & | type () |
~IteratorBuffer () | |
Private Attributes | |
int | m_itemId |
SelectOperation | m_query |
ReadBuffer & | m_readBuffer |
Definition at line 27 of file DatabaseContainer.h.
ora::IteratorBuffer::IteratorBuffer | ( | ContainerSchema & | schema, |
ReadBuffer & | buffer | ||
) |
Definition at line 254 of file DatabaseContainer.cc.
References ora::SelectOperation::addId(), ora::SelectOperation::addOrderId(), ora::MappingElement::columnNames(), m_query, ora::ContainerSchema::mapping(), and ora::MappingTree::topElement().
ora::IteratorBuffer::~IteratorBuffer | ( | ) |
Definition at line 264 of file DatabaseContainer.cc.
{ }
void * ora::IteratorBuffer::getItem | ( | ) |
Definition at line 285 of file DatabaseContainer.cc.
References runTheMatrix::ret.
{ void* ret = 0; if( m_itemId != -1 ){ ret = m_readBuffer.read( m_itemId ); } return ret; }
void * ora::IteratorBuffer::getItemAsType | ( | const Reflex::Type & | type | ) |
Definition at line 293 of file DatabaseContainer.cc.
References ora::ClassUtils::isType(), and ora::throwException().
{ if( !ClassUtils::isType( type(), asType ) ){ throwException("Provided output object type \""+asType.Name(Reflex::SCOPED)+"\" does not match with the container type \""+ type().Name(Reflex::SCOPED)+"\"","IteratorBuffer::getItemAsType"); } return getItem(); }
int ora::IteratorBuffer::itemId | ( | ) |
Definition at line 301 of file DatabaseContainer.cc.
{ return m_itemId; }
bool ora::IteratorBuffer::next | ( | void | ) |
Definition at line 271 of file DatabaseContainer.cc.
void ora::IteratorBuffer::reset | ( | void | ) |
Definition at line 267 of file DatabaseContainer.cc.
{ m_query.execute(); }
const Reflex::Type & ora::IteratorBuffer::type | ( | ) |
Definition at line 305 of file DatabaseContainer.cc.
{ return m_readBuffer.type(); }
int ora::IteratorBuffer::m_itemId [private] |
Definition at line 47 of file DatabaseContainer.h.
SelectOperation ora::IteratorBuffer::m_query [private] |
Definition at line 46 of file DatabaseContainer.h.
Referenced by IteratorBuffer().
ReadBuffer& ora::IteratorBuffer::m_readBuffer [private] |
Definition at line 48 of file DatabaseContainer.h.