Qore DbDataProvider Module Reference
1.0
|
Defines the record iterator class for Table-based iterators. More...
Public Member Methods | |
constructor (bool release_transaction, AbstractSQLStatement stmt) | |
creates the iterator More... | |
destructor () | |
rolls back the transaction if a transaction lock was acquired in the constructor and keepTransactionLock() was not called | |
*hash< string, AbstractDataField > | getRecordType () |
Returns the record description, if available. More... | |
hash< auto > | getValue () |
Returns a single record if the iterator is valid. More... | |
keepTransactionLock () | |
Ensures that no rollback is performed when the object is destroyed. | |
bool | next () |
Increments the row pointer when retrieving rows from a select statement; returns True if there is a row to retrieve, False if not. More... | |
bool | valid () |
Returns True if the iterator is valid. More... | |
Private Attributes | |
bool | release_transaction |
release the transaction with a rollback in the destructor? | |
AbstractSQLStatement | stmt |
the statement being iterated | |
Defines the record iterator class for Table-based iterators.
DbDataProvider::AbstractDbRecordIterator::constructor | ( | bool | release_transaction, |
AbstractSQLStatement | stmt | ||
) |
creates the iterator
release_transaction | release the transaction with a rollback in the destructor? |
stmt | the SQL statement to iterate |
Returns the record description, if available.
hash<auto> DbDataProvider::AbstractDbRecordIterator::getValue | ( | ) |
Returns a single record if the iterator is valid.
INVALID-ITERATOR | the iterator is not pointing at a valid element |
bool DbDataProvider::AbstractDbRecordIterator::next | ( | ) |