SQL Relay C++ API
|
#include <sqlrcollections.h>
Inherits listcollection< const char * >.
Public Member Functions | |
sqlrrowlist () | |
sqlrrowlist (sqlrcursor *cursor) | |
sqlrrowlist (sqlrcursor *cursor, uint64_t row) | |
~sqlrrowlist () | |
void | setCursor (sqlrcursor *cursor) |
void | setRow (uint64_t row) |
bool | isReadOnly () |
bool | isBlockBased () |
uint64_t | getBlockSize () |
uint64_t | getCount () |
listnode< const char * > * | getFirst () |
listnode< const char * > * | getNext (listnode< const char * > *node) |
listnode< const char * > * | find (const char *value) |
listnode< const char * > * | find (listnode< const char * > *startnode, const char *value) |
The sqlrrowlist class is a read-only, block-based implementation of the rudiments listcollection<const char *> class.
After setting the cursor and row, it provides read-only, block-based access to the values of a single row in the result set.
The instance can be passed into any method that operates on a read-only, block-based rudiments listcollection<const char *>, or otherwise used in the same manner that a read-only, block-based rudiments listcollection<const char *> would be.
sqlrrowlist::sqlrrowlist | ( | ) |
Creates an empty instance of the sqlrrowlist class.
sqlrrowlist::sqlrrowlist | ( | sqlrcursor * | cursor | ) |
Creates an instance of the sqlrrowlist class and sets the cursor used by the instance to "cursor".
sqlrrowlist::sqlrrowlist | ( | sqlrcursor * | cursor, |
uint64_t | row ) |
Creates an instance of the sqlrrowlist class. Sets the cursor used by the instance to "cursor" and the row that the instance returns fields from to "row".
sqlrrowlist::~sqlrrowlist | ( | ) |
Deletes this instance of the sqlrrowlist class.
listnode< const char * > * sqlrrowlist::find | ( | const char * | value | ) |
Returns a pointer to the first listnode containing "value" or NULL if "value" was not found.
listnode< const char * > * sqlrrowlist::find | ( | listnode< const char * > * | startnode, |
const char * | value ) |
Returns a pointer to the first listnode after "startnode" containing "value" or NULL if "value" was not found.
uint64_t sqlrrowlist::getBlockSize | ( | ) |
Returns 1.
uint64_t sqlrrowlist::getCount | ( | ) |
Returns the number of nodes in the sqlrrowlist.
listnode< const char * > * sqlrrowlist::getFirst | ( | ) |
Returns the first node in the sqlrrowlist.
listnode< const char * > * sqlrrowlist::getNext | ( | listnode< const char * > * | node | ) |
Returns the node after "node" or NULL if this node is the last node in the list. "node" is presumed to be in the list.
bool sqlrrowlist::isBlockBased | ( | ) |
Returns true.
bool sqlrrowlist::isReadOnly | ( | ) |
Returns true.
void sqlrrowlist::setCursor | ( | sqlrcursor * | cursor | ) |
Sets the cursor used by this instance to "cursor".
void sqlrrowlist::setRow | ( | uint64_t | row | ) |
Sets the row that this instance returns fields from to "row".