Qt 4.8
Public Functions | Public Variables | List of all members
QDB2ResultPrivate Class Reference

Public Functions

void clearValueCache ()
 
void emptyValueCache ()
 
 QDB2ResultPrivate (const QDB2DriverPrivate *d)
 
 ~QDB2ResultPrivate ()
 

Public Variables

const QDB2DriverPrivatedp
 
SQLHANDLE hStmt
 
QSqlRecord recInf
 
QVector< QVariant * > valueCache
 

Detailed Description

Definition at line 82 of file qsql_db2.cpp.

Constructors and Destructors

◆ QDB2ResultPrivate()

QDB2ResultPrivate::QDB2ResultPrivate ( const QDB2DriverPrivate d)
inline

Definition at line 85 of file qsql_db2.cpp.

85  : dp(d), hStmt(0)
86  {}
const QDB2DriverPrivate * dp
Definition: qsql_db2.cpp:104
SQLHANDLE hStmt
Definition: qsql_db2.cpp:105

◆ ~QDB2ResultPrivate()

QDB2ResultPrivate::~QDB2ResultPrivate ( )
inline

Definition at line 87 of file qsql_db2.cpp.

88  {
90  }
void emptyValueCache()
Definition: qsql_db2.cpp:98

Functions

◆ clearValueCache()

void QDB2ResultPrivate::clearValueCache ( )
inline

Definition at line 91 of file qsql_db2.cpp.

Referenced by QDB2Result::fetch(), QDB2Result::fetchFirst(), QDB2Result::fetchLast(), and QDB2Result::fetchNext().

92  {
93  for (int i = 0; i < valueCache.count(); ++i) {
94  delete valueCache[i];
95  valueCache[i] = NULL;
96  }
97  }
int count(const T &t) const
Returns the number of occurrences of value in the vector.
Definition: qvector.h:742
QVector< QVariant * > valueCache
Definition: qsql_db2.cpp:107

◆ emptyValueCache()

void QDB2ResultPrivate::emptyValueCache ( )
inline

Definition at line 98 of file qsql_db2.cpp.

Referenced by QDB2Result::exec(), QDB2Result::nextResult(), QDB2Result::prepare(), and QDB2Result::reset().

99  {
100  clearValueCache();
101  valueCache.clear();
102  }
void clear()
Removes all the elements from the vector and releases the memory used by the vector.
Definition: qvector.h:347
void clearValueCache()
Definition: qsql_db2.cpp:91
QVector< QVariant * > valueCache
Definition: qsql_db2.cpp:107

Properties

◆ dp

const QDB2DriverPrivate* QDB2ResultPrivate::dp

Definition at line 104 of file qsql_db2.cpp.

Referenced by qDB2Warn(), and qMakeStatement().

◆ hStmt

SQLHANDLE QDB2ResultPrivate::hStmt

◆ recInf

QSqlRecord QDB2ResultPrivate::recInf

◆ valueCache

QVector<QVariant*> QDB2ResultPrivate::valueCache

The documentation for this class was generated from the following file: