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

#include <qsqlcachedresult.h>

Diagrama de herencias de QtSqlCachedResult
QSqlResult QIBaseResult QSQLiteResult

Lista de todos los miembros.

Tipos públicos

typedef QValueVector< QVariantRowCache
typedef QPtrVector< RowCacheRowsetCache

Métodos públicos

virtual ~QtSqlCachedResult ()

Métodos protegidos

 QtSqlCachedResult (const QSqlDriver *db)
void init (int colCount)
void cleanup ()
bool cacheNext ()
virtual bool gotoNext (RowCache *row)=0
QVariant data (int i)
bool isNull (int i)
bool fetch (int i)
bool fetchNext ()
bool fetchPrev ()
bool fetchFirst ()
bool fetchLast ()
int colCount () const

Documentación de los 'Typedef' miembros de la clase


Documentación del constructor y destructor

QtSqlCachedResult::~QtSqlCachedResult ( ) [virtual]
QtSqlCachedResult::QtSqlCachedResult ( const QSqlDriver db) [protected]

Documentación de las funciones miembro

bool QtSqlCachedResult::cacheNext ( ) [protected]
void QtSqlCachedResult::cleanup ( ) [protected]
int QtSqlCachedResult::colCount ( ) const [protected]
QVariant QtSqlCachedResult::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 QtSqlCachedResult::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 QtSqlCachedResult::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 QtSqlCachedResult::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 QtSqlCachedResult::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 QtSqlCachedResult::fetchPrev ( ) [protected, virtual]

Positions the result to the previous 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 previous 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.

virtual bool QtSqlCachedResult::gotoNext ( RowCache row) [protected, pure virtual]

Implementado en QIBaseResult y QSQLiteResult.

void QtSqlCachedResult::init ( int  colCount) [protected]
bool QtSqlCachedResult::isNull ( int  i) [protected, virtual]

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

Implementa QSqlResult.


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'