Eneboo - Documentación para desarrolladores
Métodos públicos | Métodos protegidos | Amigas
Referencia de la Clase QMYSQLResult

#include <flsql_mysql.h>

Diagrama de herencias de QMYSQLResult
QSqlResult QSqlResult

Lista de todos los miembros.

Métodos públicos

 QMYSQLResult (const QMYSQLDriver *db)
 ~QMYSQLResult ()
MYSQL_RESresult ()
 QMYSQLResult (const QMYSQLDriver *db)
 ~QMYSQLResult ()
MYSQL_RESresult ()

Métodos protegidos

void cleanup ()
bool fetch (int i)
bool fetchNext ()
bool fetchLast ()
bool fetchFirst ()
QVariant data (int field)
bool isNull (int field)
bool reset (const QString &query)
int size ()
int numRowsAffected ()
void cleanup ()
bool fetch (int i)
bool fetchNext ()
bool fetchLast ()
bool fetchFirst ()
QVariant data (int field)
bool isNull (int field)
bool reset (const QString &query)
int size ()
int numRowsAffected ()

Amigas

class QMYSQLDriver

Documentación del constructor y destructor

QMYSQLResult::QMYSQLResult ( const QMYSQLDriver db)
QMYSQLResult::~QMYSQLResult ( )
QMYSQLResult::QMYSQLResult ( const QMYSQLDriver db)
QMYSQLResult::~QMYSQLResult ( )

Documentación de las funciones miembro

void QMYSQLResult::cleanup ( ) [protected]
void QMYSQLResult::cleanup ( ) [protected]
QVariant QMYSQLResult::data ( int  i) [protected, virtual]

Returns the data for field i (zero-based) as a QVariant. This function is only called if the result is in an active state and is positioned on a valid record and i is non-negative. Derived classes must reimplement this function and return the value of field i, or QVariant() if it cannot be determined.

Implementa QSqlResult.

QVariant QMYSQLResult::data ( int  i) [protected, virtual]

Returns the data for field i (zero-based) as a QVariant. This function is only called if the result is in an active state and is positioned on a valid record and i is non-negative. Derived classes must reimplement this function and return the value of field i, or QVariant() if it cannot be determined.

Implementa QSqlResult.

bool QMYSQLResult::fetch ( int  i) [protected, virtual]

Positions the result to an arbitrary (zero-based) index i. This function is only called if the result is in an active state. Derived classes must reimplement this function and position the result to the index i, and call setAt() with an appropriate value. Return TRUE to indicate success, or FALSE to signify failure.

Implementa QSqlResult.

bool QMYSQLResult::fetch ( int  i) [protected, virtual]

Positions the result to an arbitrary (zero-based) index i. This function is only called if the result is in an active state. Derived classes must reimplement this function and position the result to the index i, and call setAt() with an appropriate value. Return TRUE to indicate success, or FALSE to signify failure.

Implementa QSqlResult.

bool QMYSQLResult::fetchFirst ( ) [protected, virtual]

Positions the result to the first record in the result. This function is only called if the result is in an active state. Derived classes must reimplement this function and position the result to the first record, and call setAt() with an appropriate value. Return TRUE to indicate success, or FALSE to signify failure.

Implementa QSqlResult.

bool QMYSQLResult::fetchFirst ( ) [protected, virtual]

Positions the result to the first record in the result. This function is only called if the result is in an active state. Derived classes must reimplement this function and position the result to the first record, and call setAt() with an appropriate value. Return TRUE to indicate success, or FALSE to signify failure.

Implementa QSqlResult.

bool QMYSQLResult::fetchLast ( ) [protected, virtual]

Positions the result to the last record in the result. This function is only called if the result is in an active state. Derived classes must reimplement this function and position the result to the last record, and call setAt() with an appropriate value. Return TRUE to indicate success, or FALSE to signify failure.

Implementa QSqlResult.

bool QMYSQLResult::fetchLast ( ) [protected, virtual]

Positions the result to the last record in the result. This function is only called if the result is in an active state. Derived classes must reimplement this function and position the result to the last record, and call setAt() with an appropriate value. Return TRUE to indicate success, or FALSE to signify failure.

Implementa QSqlResult.

bool QMYSQLResult::fetchNext ( ) [protected, virtual]

Positions the result to the next available record in the result. This function is only called if the result is in an active state. The default implementation calls fetch() with the next index. Derived classes can reimplement this function and position the result to the next record in some other way, and call setAt() with an appropriate value. Return TRUE to indicate success, or FALSE to signify failure.

Reimplementado de QSqlResult.

bool QMYSQLResult::fetchNext ( ) [protected, virtual]

Positions the result to the next available record in the result. This function is only called if the result is in an active state. The default implementation calls fetch() with the next index. Derived classes can reimplement this function and position the result to the next record in some other way, and call setAt() with an appropriate value. Return TRUE to indicate success, or FALSE to signify failure.

Reimplementado de QSqlResult.

bool QMYSQLResult::isNull ( int  i) [protected, virtual]

Returns TRUE if the field at position i is NULL; otherwise returns FALSE.

Implementa QSqlResult.

bool QMYSQLResult::isNull ( int  i) [protected, virtual]

Returns TRUE if the field at position i is NULL; otherwise returns FALSE.

Implementa QSqlResult.

int QMYSQLResult::numRowsAffected ( ) [protected, virtual]

Returns the number of rows affected by the last query executed.

Implementa QSqlResult.

int QMYSQLResult::numRowsAffected ( ) [protected, virtual]

Returns the number of rows affected by the last query executed.

Implementa QSqlResult.

bool QMYSQLResult::reset ( const QString query) [protected, virtual]

Sets the result to use the SQL statement query for subsequent data retrieval. Derived classes must reimplement this function and apply the query to the database. This function is called only after the result is set to an inactive state and is positioned before the first record of the new result. Derived classes should return TRUE if the query was successful and ready to be used, or FALSE otherwise.

Implementa QSqlResult.

bool QMYSQLResult::reset ( const QString query) [protected, virtual]

Sets the result to use the SQL statement query for subsequent data retrieval. Derived classes must reimplement this function and apply the query to the database. This function is called only after the result is set to an inactive state and is positioned before the first record of the new result. Derived classes should return TRUE if the query was successful and ready to be used, or FALSE otherwise.

Implementa QSqlResult.

MYSQL_RES * QMYSQLResult::result ( )
MYSQL_RES* QMYSQLResult::result ( )
int QMYSQLResult::size ( ) [protected, virtual]

Returns the size of the result or -1 if it cannot be determined.

Implementa QSqlResult.

int QMYSQLResult::size ( ) [protected, virtual]

Returns the size of the result or -1 if it cannot be determined.

Implementa QSqlResult.


Documentación de las funciones relacionadas y clases amigas

QMYSQLDriver [friend]

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'