kexi
KexiDB::SQLiteCursor Class Reference
Inheritance diagram for KexiDB::SQLiteCursor:

Detailed Description
Definition at line 35 of file sqlitecursor.h.
Public Member Functions | |
virtual | ~SQLiteCursor () |
virtual QVariant | value (uint i) |
virtual const char ** | rowData () const |
virtual void | storeCurrentRow (RowData &data) const |
virtual int | serverResult () |
virtual QString | serverResultName () |
virtual QString | serverErrorMsg () |
Protected Member Functions | |
SQLiteCursor (Connection *conn, const QString &statement, uint options=NoOptions) | |
SQLiteCursor (Connection *conn, QuerySchema &query, uint options=NoOptions) | |
virtual bool | drv_open () |
virtual bool | drv_close () |
virtual void | drv_getNextRecord () |
virtual void | drv_appendCurrentRecordToBuffer () |
virtual void | drv_bufferMovePointerNext () |
virtual void | drv_bufferMovePointerPrev () |
virtual void | drv_bufferMovePointerTo (Q_LLONG at) |
virtual void | drv_clearBuffer () |
virtual void | drv_clearServerResult () |
Protected Attributes | |
SQLiteCursorData * | d |
Friends | |
class | SQLiteConnection |
Constructor & Destructor Documentation
|
Cursor will operate on conn, raw statement will be used to execute query. Definition at line 202 of file sqlitecursor.cpp. |
|
Cursor will operate on conn, query schema will be used to execute query. Definition at line 209 of file sqlitecursor.cpp. |
Member Function Documentation
|
Stores currently fetched record's values in appropriate place of the buffer. Note for driver developers: This place can be computed using m_at. Do not change value of m_at or any other Cursor members, only change your internal structures like pointer to current row, etc. If your database engine's API function (for record fetching) do not allocates such a space, you want to allocate a space for current record. Otherwise, reuse existing structure, what could be more efficient. All functions like drv_appendCurrentRecordToBuffer() operates on the buffer, i.e. array of stored rows. You are not forced to have any particular fixed structure for buffer item or buffer itself - the structure is internal and only methods like storeCurrentRecord() visible to public. Implements KexiDB::Cursor. Definition at line 339 of file sqlitecursor.cpp. |
|
Moves pointer (that points to the buffer) -- to next item in this buffer. Note for driver developers: probably just execute "your_pointer++" is enough. Implements KexiDB::Cursor. Definition at line 356 of file sqlitecursor.cpp. |
|
Like drv_bufferMovePointerNext() but execute "your_pointer--". Implements KexiDB::Cursor. Definition at line 361 of file sqlitecursor.cpp. |
|
Moves pointer (that points to the buffer) to a new place: at. Implements KexiDB::Cursor. Definition at line 368 of file sqlitecursor.cpp. |
|
Method called when cursor's buffer need to be cleared (only for buffered cursor type), eg. in close(). Reimplemented from KexiDB::Cursor. Definition at line 373 of file sqlitecursor.cpp. |
|
Clears an internal member that is used to storing last result code, the same that is returend by serverResult(). Implements KexiDB::Cursor. Definition at line 560 of file sqlitecursor.cpp. |
|
[PROTOTYPE]
Implements KexiDB::Cursor. Definition at line 422 of file sqlitecursor.cpp. |
|
Reimplemented from KexiDB::Cursor. Definition at line 555 of file sqlitecursor.cpp. |
|
Stores string value taken from field number i to str.
Reimplemented from KexiDB::Cursor. Definition at line 541 of file sqlitecursor.cpp. |
|
Reimplemented from KexiDB::Cursor. Definition at line 546 of file sqlitecursor.cpp. |
|
Puts current record's data into data (makes a deep copy). This have unspecified behaviour if the cursor is not at valid record. Note: For reimplementation in driver's code. Shortly, this method translates a row data from internal representation (probably also used in buffer) to simple public RecordData representation. Implements KexiDB::Cursor. Definition at line 427 of file sqlitecursor.cpp. |
|
Implements KexiDB::Cursor. Definition at line 508 of file sqlitecursor.cpp. |
Member Data Documentation
|
for future extensions
Reimplemented from KexiDB::Cursor. Definition at line 82 of file sqlitecursor.h. |
The documentation for this class was generated from the following files: