sptk2 logo
SPTK Home Page
Protected Member Functions | Static Protected Member Functions | Friends | List of all members
sptk::PoolDatabaseConnectionQueryMethods Class Referenceabstract
Inheritance diagram for sptk::PoolDatabaseConnectionQueryMethods:
sptk::PoolDatabaseConnection

Protected Member Functions

void querySetStmt (Query *q, SStmtHandle stmt)
 
virtual String queryError (const Query *query) const =0
 
virtual void queryAllocStmt (Query *query)=0
 
virtual void queryFreeStmt (Query *query)=0
 
virtual void queryCloseStmt (Query *query)=0
 
virtual void queryPrepare (Query *query)=0
 
virtual void queryExecute (Query *query)=0
 
virtual int queryColCount (Query *query)=0
 
virtual void queryColAttributes (Query *query, int16_t column, int16_t descType, int32_t &value)=0
 
virtual void queryColAttributes (Query *query, int16_t column, int16_t descType, char *buff, int len)=0
 
virtual void queryBindParameters (Query *query)=0
 
virtual void queryOpen (Query *query)=0
 
virtual void queryFetch (Query *query)=0
 
virtual String paramMark (unsigned paramIndex)
 
void notImplemented (const String &methodName) const
 
bool linkQuery (Query *q)
 
bool unlinkQuery (Query *q)
 
void disconnectAllQueries ()
 

Static Protected Member Functions

static void querySetPrepared (Query *q, bool pf)
 
static void querySetActive (Query *q, bool af)
 
static void querySetEof (Query *q, bool eof)
 

Friends

class Query
 
class QueryStatementManagement
 

Member Function Documentation

◆ 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
paramIndexunsigned, 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

Closes an ODBC statement

◆ 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

Executes a statement

◆ 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:

Fri Oct 14 2022 09:58:44: SPTK 5.4.1