#include <QOpenOCCI.h>
Public Member Functions | |
QOpenOCCIResult (const QSqlDriver *d=NULL, OCI_Connection *c=NULL, unsigned int prefetch_memory=DEFAULT_MEMORY_PREFETCH, unsigned int prefetch_rows=DEFAULT_ROWS_PREFETCH) | |
~QOpenOCCIResult () | |
Protected Member Functions | |
QVariant | data (int) |
bool | exec () |
bool | isNull (int) |
bool | reset (const QString &) |
bool | fetch (int) |
bool | fetchFirst () |
bool | fetchNext () |
bool | fetchPrevious () |
bool | fetchLast () |
QSqlRecord | record () const |
int | size () |
int | numRowsAffected () |
bool | prepare (const QString &query) |
bool | savePrepare (const QString &query) |
void | setQuery (const QString &query) |
Static Protected Attributes | |
static const char * | EXEC_FAILED = "QOpenOCCI: Execute Failed" |
static const char * | BIND_FAILED = "QOpenOCCI: Bind Failed" |
Private Member Functions | |
void | addRowToCache () |
void | bind (QString name, const QVariant &val, QSql::ParamType paramType) |
void | updateBoundResults () |
void | cleanup () |
void | rebind (int bound_index, const QVariant &val, QSql::ParamType paramType) |
Static Private Member Functions | |
static QVariant::Type | ocilib_to_qvariant_type (int occi_type) |
Private Attributes | |
OCI_Connection * | mConnection |
Oracle's Connection object. | |
OCI_Statement * | mStatement |
Oracle's Statement object. | |
OCI_Resultset * | mResultSet |
Oracle's ResultSet object. | |
QOpenOCCIMetadata | mResultMetadata |
QOpenOCCIBindData | mBindData |
map< QString, int > | mBindNameIndex |
Name to index mapping. | |
QOpenOCCICache | mCache |
The row cache used for fetchPrevious. |
Definition at line 176 of file QOpenOCCI.h.
QOpenOCCIResult::QOpenOCCIResult | ( | const QSqlDriver * | d = NULL , |
|
OCI_Connection * | c = NULL , |
|||
unsigned int | prefetch_memory = DEFAULT_MEMORY_PREFETCH , |
|||
unsigned int | prefetch_rows = DEFAULT_ROWS_PREFETCH | |||
) |
Definition at line 89 of file QOpenOCCIResult.cpp.
QOpenOCCIResult::~QOpenOCCIResult | ( | ) |
Definition at line 102 of file QOpenOCCIResult.cpp.
QVariant QOpenOCCIResult::data | ( | int | column_id | ) | [protected] |
Definition at line 501 of file QOpenOCCIResult.cpp.
bool QOpenOCCIResult::exec | ( | ) | [protected] |
bool QOpenOCCIResult::isNull | ( | int | column_id | ) | [protected] |
Definition at line 430 of file QOpenOCCIResult.cpp.
bool QOpenOCCIResult::reset | ( | const QString & | query | ) | [protected] |
Definition at line 198 of file QOpenOCCIResult.cpp.
bool QOpenOCCIResult::fetch | ( | int | row_id | ) | [protected] |
bool QOpenOCCIResult::fetchFirst | ( | ) | [protected] |
Definition at line 388 of file QOpenOCCIResult.cpp.
bool QOpenOCCIResult::fetchNext | ( | ) | [protected] |
bool QOpenOCCIResult::fetchPrevious | ( | ) | [protected] |
bool QOpenOCCIResult::fetchLast | ( | ) | [protected] |
Definition at line 423 of file QOpenOCCIResult.cpp.
QSqlRecord QOpenOCCIResult::record | ( | ) | const [protected] |
Definition at line 370 of file QOpenOCCIResult.cpp.
int QOpenOCCIResult::size | ( | ) | [inline, protected] |
int QOpenOCCIResult::numRowsAffected | ( | ) | [protected] |
Definition at line 207 of file QOpenOCCIResult.cpp.
bool QOpenOCCIResult::prepare | ( | const QString & | query | ) | [protected] |
bool QOpenOCCIResult::savePrepare | ( | const QString & | query | ) | [protected] |
Definition at line 235 of file QOpenOCCIResult.cpp.
void QOpenOCCIResult::setQuery | ( | const QString & | query | ) | [protected] |
Definition at line 213 of file QOpenOCCIResult.cpp.
void QOpenOCCIResult::addRowToCache | ( | ) | [private] |
void QOpenOCCIResult::bind | ( | QString | name, | |
const QVariant & | val, | |||
QSql::ParamType | paramType | |||
) | [private] |
void QOpenOCCIResult::updateBoundResults | ( | ) | [private] |
void QOpenOCCIResult::cleanup | ( | ) | [private] |
Definition at line 219 of file QOpenOCCIResult.cpp.
Referenced by prepare(), reset(), setQuery(), and ~QOpenOCCIResult().
void QOpenOCCIResult::rebind | ( | int | bound_index, | |
const QVariant & | val, | |||
QSql::ParamType | paramType | |||
) | [private] |
Definition at line 114 of file QOpenOCCIResult.cpp.
QVariant::Type QOpenOCCIResult::ocilib_to_qvariant_type | ( | int | occi_type | ) | [static, private] |
const char * QOpenOCCIResult::EXEC_FAILED = "QOpenOCCI: Execute Failed" [static, protected] |
const char * QOpenOCCIResult::BIND_FAILED = "QOpenOCCI: Bind Failed" [static, protected] |
OCI_Connection* QOpenOCCIResult::mConnection [private] |
Oracle's Connection object.
Definition at line 216 of file QOpenOCCI.h.
Referenced by bind(), and ~QOpenOCCIResult().
OCI_Statement* QOpenOCCIResult::mStatement [private] |
Oracle's Statement object.
Definition at line 217 of file QOpenOCCI.h.
Referenced by bind(), exec(), numRowsAffected(), prepare(), QOpenOCCIResult(), reset(), setQuery(), and ~QOpenOCCIResult().
OCI_Resultset* QOpenOCCIResult::mResultSet [private] |
Oracle's ResultSet object.
Definition at line 218 of file QOpenOCCI.h.
Referenced by addRowToCache(), cleanup(), exec(), and fetchNext().
Definition at line 220 of file QOpenOCCI.h.
Referenced by addRowToCache(), data(), exec(), and record().
QOpenOCCIBindData QOpenOCCIResult::mBindData [private] |
Definition at line 221 of file QOpenOCCI.h.
Referenced by bind(), cleanup(), and updateBoundResults().
map<QString, int> QOpenOCCIResult::mBindNameIndex [private] |
QOpenOCCICache QOpenOCCIResult::mCache [private] |
The row cache used for fetchPrevious.
Definition at line 225 of file QOpenOCCI.h.
Referenced by addRowToCache(), cleanup(), data(), fetchLast(), fetchNext(), fetchPrevious(), and isNull().