A more complex callback object that can be used to read each row of the results in turn. More...
import"sbIDatabaseQuery.idl";
Public Member Functions | |
| void | onQueryError (in long dbError, in AString dbGUID, in AString strQuery) |
| Called if the query has an error. More... | |
| void | onQueryStart (in AString dbGUID, in AString strQuery) |
| Called for each query that executes. More... | |
| void | onQueryRow (in sbIDatabaseResult dbResultObject, in unsigned long dbRowResult, in unsigned long dbRowTotal) |
| Called as each row is added to the result set. More... | |
| void | onQueryEnd (in sbIDatabaseResult dbResultObject, in AString dbGUID, in AString strQuery) |
| Called when the query has completed. More... | |
A more complex callback object that can be used to read each row of the results in turn.
This interface is meant to be implemented as a callback by client code.
Clients that simply need to be informed when a query has completed may implement this interface and pass it to sbIDatabaseQuery::addCallback().
NOTE: The callback methods are called from a database thread.
Definition at line 84 of file sbIDatabaseQuery.idl.
| void sbIDatabaseQueryCallback::onQueryEnd | ( | in sbIDatabaseResult | dbResultObject, |
| in AString | dbGUID, | ||
| in AString | strQuery | ||
| ) |
Called when the query has completed.
NOTE: The onQueryEnd() method is called from a database thread.
| dbResultObject | The result object of the completed query |
| dbGUID | The guid of the database bring queried |
| strQuery | The query string that executed |
| void sbIDatabaseQueryCallback::onQueryError | ( | in long | dbError, |
| in AString | dbGUID, | ||
| in AString | strQuery | ||
| ) |
Called if the query has an error.
NOTE: The onQueryError() method is called from a database thread.
| dbError | The error code from SQLITE (equivalent to the return from sbIDatabaseQuery::execute) |
| dbGUID | The guid of the database bring queried |
| strQuery | The query string that executed |
| void sbIDatabaseQueryCallback::onQueryRow | ( | in sbIDatabaseResult | dbResultObject, |
| in unsigned long | dbRowResult, | ||
| in unsigned long | dbRowTotal | ||
| ) |
Called as each row is added to the result set.
NOTE: The onQueryRow() method is called from a database thread.
| dbResultObject | The result object of the completed query |
| dbRowResult | The current row filled in the result object |
| dbRowTotal | The total rows to be filled in the result object |
| void sbIDatabaseQueryCallback::onQueryStart | ( | in AString | dbGUID, |
| in AString | strQuery | ||
| ) |
Called for each query that executes.
NOTE: The onQueryStart() method is called from a database thread.
| dbGUID | The guid of the database bring queried |
| strQuery | The query string that executed |