|
class | Query |
|
class | QueryStatementManagement |
|
◆ disconnectAllQueries()
void sptk::PoolDatabaseConnectionQueryMethods::disconnectAllQueries |
( |
| ) |
|
|
protected |
Close all queries, connected to this connection, free their statements, and empty connected query list.
◆ linkQuery()
bool sptk::PoolDatabaseConnectionQueryMethods::linkQuery |
( |
Query * |
q | ) |
|
|
protected |
Attaches (links) query to the database
◆ notImplemented()
void sptk::PoolDatabaseConnectionQueryMethods::notImplemented |
( |
const String & |
methodName | ) |
const |
|
protected |
Stub function to throw an exception in case if the called method isn't implemented in the derived class
◆ paramMark()
virtual String sptk::PoolDatabaseConnectionQueryMethods::paramMark |
( |
unsigned |
paramIndex | ) |
|
|
protectedvirtual |
Returns parameter mark
Parameter mark is generated from the parameterIndex.
- Parameters
-
paramIndex | unsigned, parameter index in SQL starting from 0 |
◆ queryAllocStmt()
virtual void sptk::PoolDatabaseConnectionQueryMethods::queryAllocStmt |
( |
Query * |
query | ) |
|
|
protectedpure virtual |
Allocates an ODBC statement
◆ queryBindParameters()
virtual void sptk::PoolDatabaseConnectionQueryMethods::queryBindParameters |
( |
Query * |
query | ) |
|
|
protectedpure virtual |
Binds the parameters to the query
◆ queryCloseStmt()
virtual void sptk::PoolDatabaseConnectionQueryMethods::queryCloseStmt |
( |
Query * |
query | ) |
|
|
protectedpure virtual |
◆ queryColAttributes() [1/2]
virtual void sptk::PoolDatabaseConnectionQueryMethods::queryColAttributes |
( |
Query * |
query, |
|
|
int16_t |
column, |
|
|
int16_t |
descType, |
|
|
char * |
buff, |
|
|
int |
len |
|
) |
| |
|
protectedpure virtual |
In a dataset returned by a query, retrieves the column attributes
◆ queryColAttributes() [2/2]
virtual void sptk::PoolDatabaseConnectionQueryMethods::queryColAttributes |
( |
Query * |
query, |
|
|
int16_t |
column, |
|
|
int16_t |
descType, |
|
|
int32_t & |
value |
|
) |
| |
|
protectedpure virtual |
In a dataset returned by a query, retrieves the column attributes
◆ queryColCount()
virtual int sptk::PoolDatabaseConnectionQueryMethods::queryColCount |
( |
Query * |
query | ) |
|
|
protectedpure virtual |
Counts columns of the dataset (if any) returned by query
◆ queryError()
virtual String sptk::PoolDatabaseConnectionQueryMethods::queryError |
( |
const Query * |
query | ) |
const |
|
protectedpure virtual |
Retrieves an error (if any) after executing a statement
◆ queryExecute()
virtual void sptk::PoolDatabaseConnectionQueryMethods::queryExecute |
( |
Query * |
query | ) |
|
|
protectedpure virtual |
◆ queryFetch()
virtual void sptk::PoolDatabaseConnectionQueryMethods::queryFetch |
( |
Query * |
query | ) |
|
|
protectedpure virtual |
Reads data from the query' recordset into fields, and advances to the next row. After reading the last row sets the EOF (end of file, or no more data) flag.
◆ queryFreeStmt()
virtual void sptk::PoolDatabaseConnectionQueryMethods::queryFreeStmt |
( |
Query * |
query | ) |
|
|
protectedpure virtual |
Deallocates an ODBC statement
◆ queryOpen()
virtual void sptk::PoolDatabaseConnectionQueryMethods::queryOpen |
( |
Query * |
query | ) |
|
|
protectedpure virtual |
Opens the query for reading data from the query' recordset
◆ queryPrepare()
virtual void sptk::PoolDatabaseConnectionQueryMethods::queryPrepare |
( |
Query * |
query | ) |
|
|
protectedpure virtual |
Prepares a query if supported by database
◆ querySetActive()
static void sptk::PoolDatabaseConnectionQueryMethods::querySetActive |
( |
Query * |
q, |
|
|
bool |
af |
|
) |
| |
|
staticprotected |
Sets internal CQuery m_active flag
◆ querySetEof()
static void sptk::PoolDatabaseConnectionQueryMethods::querySetEof |
( |
Query * |
q, |
|
|
bool |
eof |
|
) |
| |
|
staticprotected |
Sets internal CQuery m_eof flag
◆ querySetPrepared()
static void sptk::PoolDatabaseConnectionQueryMethods::querySetPrepared |
( |
Query * |
q, |
|
|
bool |
pf |
|
) |
| |
|
staticprotected |
Sets internal CQuery m_prepared flag
◆ querySetStmt()
void sptk::PoolDatabaseConnectionQueryMethods::querySetStmt |
( |
Query * |
q, |
|
|
SStmtHandle |
stmt |
|
) |
| |
|
protected |
Sets internal CQuery statement handle
◆ unlinkQuery()
bool sptk::PoolDatabaseConnectionQueryMethods::unlinkQuery |
( |
Query * |
q | ) |
|
|
protected |
Unlinks query from the database
The documentation for this class was generated from the following file: