Eneboo - Documentación para desarrolladores
|
#include <qsqlcachedresult.h>
Tipos públicos | |
typedef QValueVector< QVariant > | RowCache |
typedef QPtrVector< RowCache > | RowsetCache |
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 |
QtSqlCachedResult::~QtSqlCachedResult | ( | ) | [virtual] |
QtSqlCachedResult::QtSqlCachedResult | ( | const QSqlDriver * | db | ) | [protected] |
bool QtSqlCachedResult::cacheNext | ( | ) | [protected] |
void QtSqlCachedResult::cleanup | ( | ) | [protected] |
int QtSqlCachedResult::colCount | ( | ) | const [protected] |
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.
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.
Implementado en QIBaseResult y QSQLiteResult.
void QtSqlCachedResult::init | ( | int | colCount | ) | [protected] |
Returns TRUE if the field at position i is NULL; otherwise returns FALSE.
Implementa QSqlResult.