QOpenOCCIResult Class Reference

#include <QOpenOCCI.h>

Collaboration diagram for QOpenOCCIResult:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

Definition at line 176 of file QOpenOCCI.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

QVariant QOpenOCCIResult::data ( int  column_id  )  [protected]

Definition at line 501 of file QOpenOCCIResult.cpp.

bool QOpenOCCIResult::exec (  )  [protected]

Definition at line 139 of file QOpenOCCIResult.cpp.

Referenced by reset().

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]

Definition at line 342 of file QOpenOCCIResult.cpp.

Referenced by fetchFirst().

bool QOpenOCCIResult::fetchFirst (  )  [protected]

Definition at line 388 of file QOpenOCCIResult.cpp.

bool QOpenOCCIResult::fetchNext (  )  [protected]

Definition at line 397 of file QOpenOCCIResult.cpp.

Referenced by fetch(), and fetchFirst().

bool QOpenOCCIResult::fetchPrevious (  )  [protected]

Definition at line 411 of file QOpenOCCIResult.cpp.

Referenced by fetch().

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]

Definition at line 199 of file QOpenOCCI.h.

Referenced by record().

int QOpenOCCIResult::numRowsAffected (  )  [protected]

Definition at line 207 of file QOpenOCCIResult.cpp.

bool QOpenOCCIResult::prepare ( const QString &  query  )  [protected]

Definition at line 229 of file QOpenOCCIResult.cpp.

Referenced by savePrepare().

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]

Definition at line 436 of file QOpenOCCIResult.cpp.

Referenced by fetchNext().

void QOpenOCCIResult::bind ( QString  name,
const QVariant &  val,
QSql::ParamType  paramType 
) [private]

Definition at line 241 of file QOpenOCCIResult.cpp.

Referenced by exec().

void QOpenOCCIResult::updateBoundResults (  )  [private]

Definition at line 122 of file QOpenOCCIResult.cpp.

Referenced by exec().

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]

Definition at line 513 of file QOpenOCCIResult.cpp.

Referenced by addRowToCache(), and record().


Member Data Documentation

const char * QOpenOCCIResult::EXEC_FAILED = "QOpenOCCI: Execute Failed" [static, protected]

Definition at line 205 of file QOpenOCCI.h.

Referenced by exec().

const char * QOpenOCCIResult::BIND_FAILED = "QOpenOCCI: Bind Failed" [static, protected]

Definition at line 206 of file QOpenOCCI.h.

Referenced by bind().

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().

QOpenOCCIMetadata QOpenOCCIResult::mResultMetadata [private]

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]

Name to index mapping.

Definition at line 223 of file QOpenOCCI.h.

Referenced by cleanup(), and rebind().

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().


The documentation for this class was generated from the following files:
Generated on Tue Mar 18 22:47:11 2008 for QOpenOCCI by  doxygen 1.5.3