Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QIBaseResultPrivate Class Reference
+ Inheritance diagram for QIBaseResultPrivate:
+ Collaboration diagram for QIBaseResultPrivate:

Public Member Functions

 QIBaseResultPrivate (QIBaseResult *q, const QIBaseDriver *drv)
 
 ~QIBaseResultPrivate ()
 
void cleanup ()
 
bool isError (const char *msg, QSqlError::ErrorType typ=QSqlError::UnknownError)
 
bool transaction ()
 
bool commit ()
 
bool isSelect ()
 
QVariant fetchBlob (ISC_QUAD *bId)
 
bool writeBlob (qsizetype iPos, const QByteArray &ba)
 
QVariant fetchArray (int pos, ISC_QUAD *arr)
 
bool writeArray (qsizetype i, const QList< QVariant > &list)
 
- Public Member Functions inherited from QSqlCachedResultPrivate
bool canSeek (int i) const
 
int cacheCount () const
 
void init (int count, bool fo)
 
void cleanup ()
 
int nextIndex ()
 
void revertLast ()
 
 QSqlResultPrivate (QSqlResult *q, const QSqlDriver *drv)
 
- Public Member Functions inherited from QSqlResultPrivate
 QSqlResultPrivate (QSqlResult *q, const QSqlDriver *drv)
 
virtual ~QSqlResultPrivate ()=default
 
void clearValues ()
 
void resetBindCount ()
 
void clearIndex ()
 
void clear ()
 
virtual QString fieldSerial (qsizetype) const
 
QString positionalToNamedBinding (const QString &query) const
 
QString namedToPositionalBinding (const QString &query)
 
QString holderAt (int index) const
 

Public Attributes

ISC_STATUS status [20]
 
isc_tr_handle trans
 
bool localTransaction
 
isc_stmt_handle stmt
 
isc_db_handle ibase
 
XSQLDA * sqlda
 
XSQLDA * inda
 
int queryType
 
- Public Attributes inherited from QSqlCachedResultPrivate
QSqlCachedResult::ValueCache cache
 
int rowCacheEnd = 0
 
int colCount = 0
 
bool atEnd = false
 
- Public Attributes inherited from QSqlResultPrivate
QSqlResultq_ptr = nullptr
 
QPointer< QSqlDriversqldriver
 
QString sql
 
QSqlError error
 
QString executedQuery
 
QHash< int, QSql::ParamType > types
 
QList< QVariantvalues
 
IndexMap indexes
 
QHolderVector holders
 
QSqlResult::BindingSyntax binds = QSqlResult::PositionalBinding
 
QSql::NumericalPrecisionPolicy precisionPolicy = QSql::LowPrecisionDouble
 
int idx = QSql::BeforeFirstRow
 
int bindCount = 0
 
bool active = false
 
bool isSel = false
 
bool forwardOnly = false
 
bool positionalBindingEnabled = true
 

Additional Inherited Members

- Public Types inherited from QSqlResultPrivate
using IndexMap = QHash<QString, QList<int>>
 
using QHolderVector = QList<QHolder>
 
- Static Public Member Functions inherited from QSqlResultPrivate
static bool isVariantNull (const QVariant &variant)
 

Detailed Description

Definition at line 447 of file qsql_ibase.cpp.

Constructor & Destructor Documentation

◆ QIBaseResultPrivate()

QIBaseResultPrivate::QIBaseResultPrivate ( QIBaseResult * q,
const QIBaseDriver * drv )

Definition at line 493 of file qsql_ibase.cpp.

◆ ~QIBaseResultPrivate()

QIBaseResultPrivate::~QIBaseResultPrivate ( )
inline

Definition at line 455 of file qsql_ibase.cpp.

References cleanup().

+ Here is the call graph for this function:

Member Function Documentation

◆ cleanup()

void QIBaseResultPrivate::cleanup ( )

Definition at line 505 of file qsql_ibase.cpp.

References commit(), delDA(), inda, localTransaction, queryType, sqlda, status, stmt, and trans.

Referenced by ~QIBaseResultPrivate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ commit()

bool QIBaseResultPrivate::commit ( )

Definition at line 962 of file qsql_ibase.cpp.

References isError(), localTransaction, QT_TRANSLATE_NOOP, status, trans, and QSqlError::TransactionError.

Referenced by cleanup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fetchArray()

QVariant QIBaseResultPrivate::fetchArray ( int pos,
ISC_QUAD * arr )

Definition at line 670 of file qsql_ibase.cpp.

References ba, QByteArray::data(), i, ibase, isError(), list, pos, QT_TRANSLATE_NOOP, readArrayBuffer(), QByteArray::resize(), sqlda, QSqlError::StatementError, status, and trans.

+ Here is the call graph for this function:

◆ fetchBlob()

QVariant QIBaseResultPrivate::fetchBlob ( ISC_QUAD * bId)

Definition at line 544 of file qsql_ibase.cpp.

References ba, QByteArray::data(), false, ibase, isError(), QIBaseChunkSize, QT_TRANSLATE_NOOP, read(), QByteArray::resize(), QSqlError::StatementError, status, and trans.

+ Here is the call graph for this function:

◆ isError()

bool QIBaseResultPrivate::isError ( const char * msg,
QSqlError::ErrorType typ = QSqlError::UnknownError )
inline

Definition at line 458 of file qsql_ibase.cpp.

References getIBaseError(), QString::number(), status, and QCoreApplication::translate().

Referenced by commit(), fetchArray(), fetchBlob(), isSelect(), transaction(), writeArray(), and writeBlob().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isSelect()

bool QIBaseResultPrivate::isSelect ( )

Definition at line 928 of file qsql_ibase.cpp.

References isError(), QT_TRANSLATE_NOOP, queryType, QSqlError::StatementError, status, and stmt.

+ Here is the call graph for this function:

◆ transaction()

bool QIBaseResultPrivate::transaction ( )

Definition at line 941 of file qsql_ibase.cpp.

References ibase, isError(), localTransaction, QT_TRANSLATE_NOOP, status, trans, and QSqlError::TransactionError.

+ Here is the call graph for this function:

◆ writeArray()

bool QIBaseResultPrivate::writeArray ( qsizetype i,
const QList< QVariant > & list )

Definition at line 868 of file qsql_ibase.cpp.

References arg, ba, createArrayBuffer(), QByteArray::data(), QSqlResultPrivate::error, i, ibase, inda, isError(), list, qIBaseTypeName(), QT_TRANSLATE_NOOP, QByteArray::resize(), QList< T >::size(), QSqlError::StatementError, status, and trans.

+ Here is the call graph for this function:

◆ writeBlob()

bool QIBaseResultPrivate::writeBlob ( qsizetype iPos,
const QByteArray & ba )

Definition at line 524 of file qsql_ibase.cpp.

References ba, QByteArray::data(), i, ibase, inda, isError(), QIBaseChunkSize, qMin(), QT_TRANSLATE_NOOP, QByteArray::size(), QSqlError::StatementError, status, and trans.

+ Here is the call graph for this function:

Member Data Documentation

◆ ibase

isc_db_handle QIBaseResultPrivate::ibase

Definition at line 486 of file qsql_ibase.cpp.

Referenced by fetchArray(), fetchBlob(), transaction(), writeArray(), and writeBlob().

◆ inda

XSQLDA* QIBaseResultPrivate::inda

Definition at line 488 of file qsql_ibase.cpp.

Referenced by cleanup(), writeArray(), and writeBlob().

◆ localTransaction

bool QIBaseResultPrivate::localTransaction

Definition at line 484 of file qsql_ibase.cpp.

Referenced by cleanup(), commit(), and transaction().

◆ queryType

int QIBaseResultPrivate::queryType

Definition at line 489 of file qsql_ibase.cpp.

Referenced by cleanup(), and isSelect().

◆ sqlda

XSQLDA* QIBaseResultPrivate::sqlda

Definition at line 487 of file qsql_ibase.cpp.

Referenced by cleanup(), and fetchArray().

◆ status

ISC_STATUS QIBaseResultPrivate::status[20]

◆ stmt

isc_stmt_handle QIBaseResultPrivate::stmt

Definition at line 485 of file qsql_ibase.cpp.

Referenced by cleanup(), and isSelect().

◆ trans

isc_tr_handle QIBaseResultPrivate::trans

Definition at line 482 of file qsql_ibase.cpp.

Referenced by cleanup(), commit(), fetchArray(), fetchBlob(), transaction(), writeArray(), and writeBlob().


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