![]() |
Defines the operation that will be performed by the database. More...
#include <DBBase.h>
Public Member Functions | |
DBStatement () | |
virtual | ~DBStatement () |
int | cycleQuery (CycleBase &pCycleRef) |
Dispatch the statement with the provided Cycle. | |
int | cycleQuery (ExecuteFunctionType pFunction) |
Dispatch the statement with the provided Function. | |
int | cycleQuery (DBParameters &pParametersRef, ExecuteFunctionType pFunction) |
Dispatch the statement, using the provided parameters, with the provided Function. | |
int | cycleQuery (DBParameters &pParametersRef, CycleBase &pCycleRef) |
Dispatch the statement, using the provided parameters, with the provided Cycle. | |
![]() | |
string & | lastErrorRef () |
Returns a reference to the last stored error message. | |
ErrorCode | lastCode () |
Returns the last stored code. | |
bool | valid () |
Permits to know if the object has a valid internal state. | |
string & | typeRef () |
Permits to know the type of this particular object. | |
Protected Member Functions | |
virtual DBResultSet * | executeQueryPtr ()=0 |
virtual DBResultSet * | executeQueryPtr (DBParameters &ParametersRef)=0 |
![]() | |
HSEPObject (const char *pType) | |
Constructor, providing the base for the state controlling instance. | |
virtual | ~HSEPObject () |
void | setLastError (string &pErrorMsgRef) |
Assigns an error message text to the last executed operation. | |
void | setLastError (const string &pErrorMsgRef) |
Assigns an error message text to the last executed operation. | |
void | setLastError (const char *pErrorMsg) |
Assigns an error message text to the last executed operation. | |
void | setValid () |
Defines that the object has a valid state. | |
void | setInvalid () |
Defines that the object has an invalid state. | |
void | setLastCode (const ErrorCode pErrorCode) |
Defines the internal result code for the object. | |
Defines the operation that will be performed by the database.
|
inlinevirtual |
int HSEPData::DBStatement::cycleQuery | ( | CycleBase & | pCycleRef | ) |
Dispatch the statement with the provided Cycle.
The statement has no parameters.
pCycleRef |
Definition at line 80 of file DBBase.cpp.
References executeQueryPtr(), and HSEPData::DBResultSet::forEach().
Referenced by HSEPData::QueryRunner::execute().
int HSEPData::DBStatement::cycleQuery | ( | ExecuteFunctionType | pFunction | ) |
Dispatch the statement with the provided Function.
The statement has no parameters.
pFunction |
Definition at line 93 of file DBBase.cpp.
References executeQueryPtr(), and HSEPData::DBResultSet::forEach().
int HSEPData::DBStatement::cycleQuery | ( | DBParameters & | pParametersRef, |
ExecuteFunctionType | pFunction | ||
) |
Dispatch the statement, using the provided parameters, with the provided Function.
pParametersRef | |
pFunction |
Definition at line 106 of file DBBase.cpp.
References executeQueryPtr(), and HSEPData::DBResultSet::forEach().
int HSEPData::DBStatement::cycleQuery | ( | DBParameters & | pParametersRef, |
CycleBase & | pCycleRef | ||
) |
Dispatch the statement, using the provided parameters, with the provided Cycle.
pParametersRef | |
pCycleRef |
Definition at line 119 of file DBBase.cpp.
References executeQueryPtr(), and HSEPData::DBResultSet::forEach().
|
protectedpure virtual |
Implemented in HSEPDataSqLite::SqLiteStatement.
Referenced by cycleQuery().
|
protectedpure virtual |
Implemented in HSEPDataSqLite::SqLiteStatement.