All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HSEPData::DBStatement Class Referenceabstract

Defines the operation that will be performed by the database. More...

#include <DBBase.h>

+ Inheritance diagram for HSEPData::DBStatement:
+ Collaboration diagram for HSEPData::DBStatement:

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.
 
- Public Member Functions inherited from HSEP::HSEPObject
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 DBResultSetexecuteQueryPtr ()=0
 
virtual DBResultSetexecuteQueryPtr (DBParameters &ParametersRef)=0
 
- Protected Member Functions inherited from HSEP::HSEPObject
 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.
 

Detailed Description

Defines the operation that will be performed by the database.

Definition at line 254 of file DBBase.h.

Constructor & Destructor Documentation

HSEPData::DBStatement::DBStatement ( )
inline

Definition at line 259 of file DBBase.h.

virtual HSEPData::DBStatement::~DBStatement ( )
inlinevirtual

Definition at line 261 of file DBBase.h.

Member Function Documentation

int HSEPData::DBStatement::cycleQuery ( CycleBase pCycleRef)

Dispatch the statement with the provided Cycle.

The statement has no parameters.

Parameters
pCycleRef
Returns
the quantity of times the Cycle::execute method returned true.

Definition at line 80 of file DBBase.cpp.

References executeQueryPtr(), and HSEPData::DBResultSet::forEach().

Referenced by HSEPData::QueryRunner::execute().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int HSEPData::DBStatement::cycleQuery ( ExecuteFunctionType  pFunction)

Dispatch the statement with the provided Function.

The statement has no parameters.

Parameters
pFunction
Returns
the quantity of times the provided Function returned true.

Definition at line 93 of file DBBase.cpp.

References executeQueryPtr(), and HSEPData::DBResultSet::forEach().

+ Here is the call graph for this function:

int HSEPData::DBStatement::cycleQuery ( DBParameters pParametersRef,
ExecuteFunctionType  pFunction 
)

Dispatch the statement, using the provided parameters, with the provided Function.

Parameters
pParametersRef
pFunction
Returns
the quantity of times the provided Function returned true.

Definition at line 106 of file DBBase.cpp.

References executeQueryPtr(), and HSEPData::DBResultSet::forEach().

+ Here is the call graph for this function:

int HSEPData::DBStatement::cycleQuery ( DBParameters pParametersRef,
CycleBase pCycleRef 
)

Dispatch the statement, using the provided parameters, with the provided Cycle.

Parameters
pParametersRef
pCycleRef
Returns
the quantity of times the Cycle::execute method returned true.

Definition at line 119 of file DBBase.cpp.

References executeQueryPtr(), and HSEPData::DBResultSet::forEach().

+ Here is the call graph for this function:

virtual DBResultSet* HSEPData::DBStatement::executeQueryPtr ( )
protectedpure virtual

Implemented in HSEPDataSqLite::SqLiteStatement.

Referenced by cycleQuery().

+ Here is the caller graph for this function:

virtual DBResultSet* HSEPData::DBStatement::executeQueryPtr ( DBParameters ParametersRef)
protectedpure virtual

The documentation for this class was generated from the following files: