Definition at line 63 of file qsqlresult.h.
#include <qsqlresult.h>

Public Member Functions |
|
| virtual | ~QSqlResult () |
| virtual QVariant | handle () const |
Protected Types |
|
| enum | BindingSyntax { PositionalBinding, NamedBinding } |
| enum | VirtualHookOperation { BatchOperation, DetachFromResultSet, SetNumericalPrecision, NextResult } |
Protected Member Functions |
|
| QSqlResult (const QSqlDriver *db) | |
| int | at () const |
| QString | lastQuery () const |
| QSqlError | lastError () const |
| bool | isValid () const |
| bool | isActive () const |
| bool | isSelect () const |
| bool | isForwardOnly () const |
| const QSqlDriver * | driver () const |
| virtual void | setAt (int at) |
| virtual void | setActive (bool a) |
| virtual void | setLastError (const QSqlError &e) |
| virtual void | setQuery (const QString &query) |
| virtual void | setSelect (bool s) |
| virtual void | setForwardOnly (bool forward) |
| virtual bool | exec () |
| virtual bool | prepare (const QString &query) |
| virtual bool | savePrepare (const QString &sqlquery) |
| virtual void | bindValue (int pos, const QVariant &val, QSql::ParamType type) |
| virtual void | bindValue (const QString &placeholder, const QVariant &val, QSql::ParamType type) |
| void | addBindValue (const QVariant &val, QSql::ParamType type) |
| QVariant | boundValue (const QString &placeholder) const |
| QVariant | boundValue (int pos) const |
| QSql::ParamType | bindValueType (const QString &placeholder) const |
| QSql::ParamType | bindValueType (int pos) const |
| int | boundValueCount () const |
| QVector< QVariant > & | boundValues () const |
| QString | executedQuery () const |
| QString | boundValueName (int pos) const |
| void | clear () |
| bool | hasOutValues () const |
| BindingSyntax | bindingSyntax () const |
| virtual QVariant | data (int i)=0 |
| virtual bool | isNull (int i)=0 |
| virtual bool | reset (const QString &sqlquery)=0 |
| virtual bool | fetch (int i)=0 |
| virtual bool | fetchNext () |
| virtual bool | fetchPrevious () |
| virtual bool | fetchFirst ()=0 |
| virtual bool | fetchLast ()=0 |
| virtual int | size ()=0 |
| virtual int | numRowsAffected ()=0 |
| virtual QSqlRecord | record () const |
| virtual QVariant | lastInsertId () const |
| virtual void | virtual_hook (int id, void *data) |
| bool | execBatch (bool arrayBind=false) |
| void | detachFromResultSet () |
| void | setNumericalPrecisionPolicy (QSql::NumericalPrecisionPolicy policy) |
| QSql::NumericalPrecisionPolicy | numericalPrecisionPolicy () const |
| bool | nextResult () |
Friends |
|
| class | QSqlQuery |
| class | QSqlTableModelPrivate |
| class | QSqlResultPrivate |
enum BindingSyntax
[protected] |
Definition at line 74 of file qsqlresult.h.
{
PositionalBinding,
NamedBinding
#ifdef QT3_SUPPORT
, BindByPosition = PositionalBinding,
BindByName = NamedBinding
#endif
};
enum VirtualHookOperation
[protected] |
Definition at line 133 of file qsqlresult.h.
| virtual ~QSqlResult | ( | ) | [virtual] |
| QSqlResult | ( | const QSqlDriver * | db | ) | [explicit, protected] |
| virtual QVariant handle | ( | ) | const [virtual] |
Reimplemented in QDB2Result, QMYSQLResult, QODBCResult, and QPSQLResult.
| int at | ( | ) | const [protected] |
| QString lastQuery | ( | ) | const [protected] |
| QSqlError lastError | ( | ) | const [protected] |
| bool isValid | ( | ) | const [protected] |
| bool isActive | ( | ) | const [protected] |
| bool isSelect | ( | ) | const [protected] |
| bool isForwardOnly | ( | ) | const [protected] |
| const QSqlDriver* driver | ( | ) | const [protected] |
| virtual void setAt | ( | int | at | ) | [protected, virtual] |
| virtual void setActive | ( | bool | a | ) | [protected, virtual] |
| virtual void setLastError | ( | const QSqlError & | e | ) | [protected, virtual] |
| virtual void setQuery | ( | const QString & | query | ) | [protected, virtual] |
| virtual void setSelect | ( | bool | s | ) | [protected, virtual] |
| virtual void setForwardOnly | ( | bool | forward | ) | [protected, virtual] |
Reimplemented in QODBCResult.
| virtual bool exec | ( | ) | [protected, virtual] |
Reimplemented in QDB2Result, QODBCResult, and QPSQLResult.
| virtual bool prepare | ( | const QString & | query | ) | [protected, virtual] |
Reimplemented in QDB2Result, QODBCResult, and QPSQLResult.
| virtual bool savePrepare | ( | const QString & | sqlquery | ) | [protected, virtual] |
| virtual void bindValue | ( | int | pos, |
| const QVariant & | val, | ||
| QSql::ParamType | type | ||
| ) | [protected, virtual] |
| void addBindValue | ( | const QVariant & | val, |
| QSql::ParamType | type | ||
| ) | [protected] |
| QVariant boundValue | ( | int | pos | ) | const [protected] |
| QSql::ParamType bindValueType | ( | const QString & | placeholder | ) | const [protected] |
| QSql::ParamType bindValueType | ( | int | pos | ) | const [protected] |
| int boundValueCount | ( | ) | const [protected] |
| QString executedQuery | ( | ) | const [protected] |
| QString boundValueName | ( | int | pos | ) | const [protected] |
| void clear | ( | ) | [protected] |
| bool hasOutValues | ( | ) | const [protected] |
| BindingSyntax bindingSyntax | ( | ) | const [protected] |
| virtual QVariant data | ( | int | i | ) | [protected, pure virtual] |
Implemented in QDB2Result, QMYSQLResult, QODBCResult, and QPSQLResult.
| virtual bool isNull | ( | int | i | ) | [protected, pure virtual] |
Implemented in QDB2Result, QMYSQLResult, QODBCResult, and QPSQLResult.
| virtual bool reset | ( | const QString & | sqlquery | ) | [protected, pure virtual] |
Implemented in QDB2Result, QMYSQLResult, QODBCResult, and QPSQLResult.
| virtual bool fetch | ( | int | i | ) | [protected, pure virtual] |
Implemented in QDB2Result, QMYSQLResult, QODBCResult, and QPSQLResult.
| virtual bool fetchNext | ( | ) | [protected, virtual] |
Reimplemented in QDB2Result, QMYSQLResult, and QODBCResult.
| virtual bool fetchPrevious | ( | ) | [protected, virtual] |
Reimplemented in QODBCResult.
| virtual bool fetchFirst | ( | ) | [protected, pure virtual] |
Implemented in QDB2Result, QMYSQLResult, QODBCResult, and QPSQLResult.
| virtual bool fetchLast | ( | ) | [protected, pure virtual] |
Implemented in QDB2Result, QMYSQLResult, QODBCResult, and QPSQLResult.
| virtual int size | ( | ) | [protected, pure virtual] |
Implemented in QDB2Result, QMYSQLResult, QODBCResult, and QPSQLResult.
| virtual int numRowsAffected | ( | ) | [protected, pure virtual] |
Implemented in QDB2Result, QMYSQLResult, QODBCResult, and QPSQLResult.
| virtual QSqlRecord record | ( | ) | const [protected, virtual] |
Reimplemented in QDB2Result, QMYSQLResult, QODBCResult, and QPSQLResult.
| virtual QVariant lastInsertId | ( | ) | const [protected, virtual] |
Reimplemented in QMYSQLResult, and QPSQLResult.
| virtual void virtual_hook | ( | int | id, |
| void * | data | ||
| ) | [protected, virtual] |
Reimplemented in QDB2Result, QMYSQLResult, QODBCResult, and QPSQLResult.
| bool execBatch | ( | bool | arrayBind = false |
) | [protected] |
| void detachFromResultSet | ( | ) | [protected] |
| void setNumericalPrecisionPolicy | ( | QSql::NumericalPrecisionPolicy | policy | ) | [protected] |
| QSql::NumericalPrecisionPolicy numericalPrecisionPolicy | ( | ) | const [protected] |
| bool nextResult | ( | ) | [protected] |
Reimplemented in QDB2Result, QMYSQLResult, and QODBCResult.
friend class QSqlQuery [friend] |
Definition at line 65 of file qsqlresult.h.
friend class QSqlTableModelPrivate
[friend] |
Definition at line 66 of file qsqlresult.h.
friend class QSqlResultPrivate
[friend] |
Definition at line 67 of file qsqlresult.h.