![]() |
Particular Cycle for usage when a query will only return one row. More...
#include <DBBase.h>
Public Member Functions | |
virtual | ~QueryUniqueCycle () |
virtual bool | execute (DBResultSet *pResultSetPtr, bool pIsFirst, bool pIsLast) |
Receives a row from a data operation to populate the internal state information. | |
string & | getValueRef (string &pKeyRef) |
Provided a particular key, will return the associated value. | |
StringDictionary & | getValuesRef () |
Returns a reference to the internal String dictionary (key,value). | |
![]() | |
virtual | ~CycleBase () |
Particular Cycle for usage when a query will only return one row.
If the operation returns more than one row, the getValueRef and getValuesRef operations will only return information about the last row in the data set.
|
inlinevirtual |
|
virtual |
Receives a row from a data operation to populate the internal state information.
pResultSetPtr | The received row |
pIsFirst | it is expected always will be true. |
pIsLast | it is expected always will be true. |
Implements HSEPData::CycleBase.
Definition at line 46 of file DBBase.cpp.
References HSEPData::DBMetadataField::aColumnName, HSEPData::DBResultSet::destroyMetadata(), HSEP::Array< T >::forEach(), HSEPData::DBResultSet::getMetadata(), HSEPData::DBResultSet::getString(), and HSEP::Dictionary< T >::put().
string & HSEPData::QueryUniqueCycle::getValueRef | ( | string & | pKeyRef | ) |
Provided a particular key, will return the associated value.
pKeyRef | corresponds to the field name in a database query. |
Definition at line 63 of file DBBase.cpp.
References HSEP::Dictionary< T >::ref().
|
inline |