#include <TableCursors.h>
Inherits Table::Cursor.
Public Member Functions | |
| bool | avail () const |
| Returns true iff there are more rows.. | |
| const char * | rowData () const |
| Returns a pointer to the data of the current row. | |
| virtual void | deleteRow () const |
| Delete the current row from the database. | |
| virtual void | setTuple (const char *tuple) |
| Set the input tuple in this cursors internal context. | |
| virtual void | reset () |
| Point the cursor at the first valid row. | |
| virtual TableScanCursor & | operator++ () |
| Move forward to the next valid row Set that row data as the index 1 duple in the eval context. | |
| virtual string | as_string () const |
| String representation of this cursor. | |
| TableScanCursor (Table *table, ptr< Expression > where_clause) | |
| virtual | ~TableScanCursor () |
| Close the database cursor on destruction. | |
Static Public Member Functions | |
| ptr< TableScanCursor > | factory (Table *table, ptr< SQLWhereClause > wc) |
|
||||||||||||
|
|
|
|
Close the database cursor on destruction. TODO: Some kind of pool of these, maybe. |
|
|
String representation of this cursor.
Reimplemented from Table::Cursor.
|
|
|
Returns true iff there are more rows..
Implements Table::Cursor.
|
|
|
Delete the current row from the database. Valid only if avail(). Implements Table::Cursor.
|
|
||||||||||||
|
|
|
|
Move forward to the next valid row Set that row data as the index 1 duple in the eval context.
Implements Table::Cursor.
|
|
|
Point the cursor at the first valid row. This will need to be called before the cursor is valid after construction. Implements Table::Cursor.
|
|
|
Returns a pointer to the data of the current row. Valid only if avail(). Implements Table::Cursor.
|
|
|
Set the input tuple in this cursors internal context. Must be called before reset, if the cursor is going to use data from the input tuple. Implements Table::Cursor.
|
1.3.8