![]() |
A Cycle is a special type of class that permits to execute a method for each one of the elements returned on a query operation, maintaining a state that will survive each one of these executions. More...
#include <DBBase.h>
Public Member Functions | |
virtual | ~CycleBase () |
virtual bool | execute (DBResultSet *pResultSetPtr, bool pIsFirst, bool pIsLast)=0 |
Receives a row from a data operation to execute some action on it. | |
A Cycle is a special type of class that permits to execute a method for each one of the elements returned on a query operation, maintaining a state that will survive each one of these executions.
Can be used for many purposes, as to accumulate data or to perform different types of batch processing operations.
The Cycle depends on how the pResultSetPtr has been created. It only uses the memory has been declared for its particular instance, so it is well suited for any type of batch processing operation.
|
pure virtual |
Receives a row from a data operation to execute some action on it.
The operation will be repeated for every row received in a data set.
pResultSetPtr | The received row |
pIsFirst | true when it is the first row in the data set |
pIsLast | true when it is the last row in the data set |
Implemented in HSEPData::QueryUniqueCycle, and HSEPData::NullCycle.
Referenced by HSEPDataSqLite::SqLiteResultSet::forEach().