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

Public Functions

void clearValues ()
 
SQLHANDLE dpDbc () const
 
SQLHANDLE dpEnv () const
 
bool isStmtHandleValid (const QSqlDriver *driver)
 
 QODBCPrivate (QODBCDriverPrivate *dpp)
 
void updateStmtHandleState (const QSqlDriver *driver)
 

Public Variables

int disconnectCount
 
QODBCDriverPrivatedriverPrivate
 
QVector< QVariantfieldCache
 
int fieldCacheIdx
 
bool hasSQLFetchScroll
 
SQLHANDLE hStmt
 
QSqlRecord rInf
 
bool unicode
 
bool userForwardOnly
 
bool useSchema
 

Detailed Description

Definition at line 156 of file qsql_odbc.cpp.

Constructors and Destructors

◆ QODBCPrivate()

QODBCPrivate::QODBCPrivate ( QODBCDriverPrivate dpp)
inline

Definition at line 159 of file qsql_odbc.cpp.

160  : hStmt(0), useSchema(false), hasSQLFetchScroll(true), driverPrivate(dpp), userForwardOnly(false)
161  {
162  unicode = dpp->unicode;
163  useSchema = dpp->useSchema;
164  disconnectCount = dpp->disconnectCount;
165  hasSQLFetchScroll = dpp->hasSQLFetchScroll;
166  }
SQLHANDLE hStmt
Definition: qsql_odbc.cpp:173
QODBCDriverPrivate * driverPrivate
Definition: qsql_odbc.cpp:183
bool hasSQLFetchScroll
Definition: qsql_odbc.cpp:182
int disconnectCount
Definition: qsql_odbc.cpp:181
bool userForwardOnly
Definition: qsql_odbc.cpp:184

Functions

◆ clearValues()

void QODBCPrivate::clearValues ( )
inline

Definition at line 168 of file qsql_odbc.cpp.

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

The QVariant class acts like a union for the most common Qt data types.
Definition: qvariant.h:92
QVector< T > & fill(const T &t, int size=-1)
Assigns value to all items in the vector.
Definition: qvector.h:665
QVector< QVariant > fieldCache
Definition: qsql_odbc.cpp:179

◆ dpDbc()

SQLHANDLE QODBCPrivate::dpDbc ( ) const
inline

Definition at line 172 of file qsql_odbc.cpp.

Referenced by QODBCResult::prepare(), qODBCWarn(), and QODBCResult::reset().

172 { return driverPrivate ? driverPrivate->hDbc : 0;}
QODBCDriverPrivate * driverPrivate
Definition: qsql_odbc.cpp:183

◆ dpEnv()

SQLHANDLE QODBCPrivate::dpEnv ( ) const
inline

Definition at line 171 of file qsql_odbc.cpp.

Referenced by qODBCWarn().

171 { return driverPrivate ? driverPrivate->hEnv : 0;}
QODBCDriverPrivate * driverPrivate
Definition: qsql_odbc.cpp:183

◆ isStmtHandleValid()

bool QODBCPrivate::isStmtHandleValid ( const QSqlDriver driver)

Definition at line 190 of file qsql_odbc.cpp.

Referenced by QODBCResult::prepare(), QODBCResult::reset(), and QODBCResult::~QODBCResult().

191 {
192  const QODBCDriver *odbcdriver = static_cast<const QODBCDriver*> (driver);
193  return disconnectCount == odbcdriver->d->disconnectCount;
194 }
QODBCDriverPrivate * d
Definition: qsql_odbc.h:150
int disconnectCount
Definition: qsql_odbc.cpp:181

◆ updateStmtHandleState()

void QODBCPrivate::updateStmtHandleState ( const QSqlDriver driver)

Definition at line 196 of file qsql_odbc.cpp.

Referenced by QODBCResult::prepare(), and QODBCResult::reset().

197 {
198  const QODBCDriver *odbcdriver = static_cast<const QODBCDriver*> (driver);
199  disconnectCount = odbcdriver->d->disconnectCount;
200 }
QODBCDriverPrivate * d
Definition: qsql_odbc.h:150
int disconnectCount
Definition: qsql_odbc.cpp:181

Properties

◆ disconnectCount

int QODBCPrivate::disconnectCount

Definition at line 181 of file qsql_odbc.cpp.

◆ driverPrivate

QODBCDriverPrivate* QODBCPrivate::driverPrivate

Definition at line 183 of file qsql_odbc.cpp.

Referenced by QODBCResult::exec().

◆ fieldCache

QVector<QVariant> QODBCPrivate::fieldCache

◆ fieldCacheIdx

int QODBCPrivate::fieldCacheIdx

◆ hasSQLFetchScroll

bool QODBCPrivate::hasSQLFetchScroll

Definition at line 182 of file qsql_odbc.cpp.

Referenced by QODBCResult::fetchNext().

◆ hStmt

SQLHANDLE QODBCPrivate::hStmt

◆ rInf

QSqlRecord QODBCPrivate::rInf

◆ unicode

bool QODBCPrivate::unicode

Definition at line 175 of file qsql_odbc.cpp.

Referenced by QODBCResult::data(), and QODBCResult::exec().

◆ userForwardOnly

bool QODBCPrivate::userForwardOnly

◆ useSchema

bool QODBCPrivate::useSchema

Definition at line 176 of file qsql_odbc.cpp.


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