class queryImpl

Abstract parent of implementations of a query for a database provider (See toConnection::connectionImpl and toConnectionProvider) More...

Contains pure virtuals
Full nametoQuery::queryImpl
Definition#include <toconnection.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

Abstract parent of implementations of a query for a database provider (See toConnection::connectionImpl and toConnectionProvider)

toQueryquery ()

query

Get the parent query object. All the parameters of the query must be read from here. nothing is passed to the functions.

 queryImpl (toQuery *query)

queryImpl

Create a query implementation. The constructor must not perform any actions with the database that could block for a noticable time (Like execute or parse a query). The data for the query may not be available when this object created.

Parameters:
queryParent query object.

 ~queryImpl ()

~queryImpl

[virtual]

Destroy query implementation.

void  execute (void)

execute

[pure virtual]

Execute a query. Parameters can be gotten from the toQuery object.

toQValue  readValue (void)

readValue

[pure virtual]

Read the next value from the stream.

Returns: The value read from the query.

bool  eof (void)

eof

[pure virtual]

Check if the end of the query has been reached.

Returns: True if all values have been read.

int  rowsProcessed (void)

rowsProcessed

[pure virtual]

Get the number of rows processed in the last executed query.

std::list<queryDescribe>  describe (void)

describe

[pure virtual]

Describe the currently running query.

Returns: A list of column descriptions of the query.

int  columns (void)

columns

[pure virtual]

Get number of columns in the resultset.

Returns: Column number.

void  cancel (void)

cancel

[pure virtual]

Cancel the current execution of a query. This will usually be called from another thread than is executing the query.