|
#include <DatabaseStatement.h>
Classes | |
| struct | State |
Public Member Functions | |
| Connection * | connection () const |
| void | statement (Statement *stmt) |
| Statement * | statement () const |
| DatabaseStatement (Connection *connection) | |
| virtual | ~DatabaseStatement ()=default |
| Statement * | stmt () const |
| virtual void | enumerateParams (QueryParameterList &queryParams) |
| CParamVector & | enumeratedParams () |
| size_t | outputParameterCount () const |
| virtual void | setParameterValues ()=0 |
| virtual void | execute (bool inTransaction)=0 |
| virtual void | close ()=0 |
| virtual void | fetch ()=0 |
| bool | eof () const |
| unsigned | colCount () const |
Protected Member Functions | |
| State & | state () |
Template class for database statements for different database drivers
|
inlineexplicit |
Constructor
| connection | Connection*, DB connection |
|
virtualdefault |
Destructor
|
pure virtual |
Closes statement and releases allocated resources
Implemented in sptk::MySQLStatement, and sptk::OracleStatement.
|
inline |
Returns recordset number of columns
References sptk::DatabaseStatement< Connection, Statement >::State::columnCount.
|
inline |
Returns normalized list of parameters
|
inlinevirtual |
Generates normalized list of parameters
| queryParams | CParamList&, Standard query parameters |
Reimplemented in sptk::MySQLStatement.
References sptk::QueryParameterList::enumerate(), and sptk::DatabaseStatement< Connection, Statement >::State::outputParameterCount.
|
inline |
Returns true if recordset is in EOF state
References sptk::DatabaseStatement< Connection, Statement >::State::eof.
|
pure virtual |
Executes statement
| inTransaction | bool, True if statement is executed from transaction |
Implemented in sptk::OracleStatement, and sptk::MySQLStatement.
|
pure virtual |
Fetches next record
Implemented in sptk::MySQLStatement, and sptk::OracleStatement.
|
inline |
Returns true if statement uses output parameters
References sptk::DatabaseStatement< Connection, Statement >::State::outputParameterCount.
|
pure virtual |
Sets actual parameter values for the statement execution
Implemented in sptk::MySQLStatement, and sptk::OracleStatement.
|
inline |
Returns current DB statement handle