| Qore DbDataProvider Module Reference 2.2

Loading...
Searching...
No Matches
AbstractDbRecordIterator.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
24
26 namespace DbDataProvider {
28 class AbstractDbRecordIterator : public AbstractDataProviderRecordIterator {
29
30 public:
31 protected:
33 AbstractSQLStatement stmt;
34
36 bool release_transaction;
37
38 public:
39
41
44 constructor(bool release_transaction, AbstractSQLStatement stmt);
45
46
48 destructor();
49
50
52
55 bool valid();
56
57
59
65 bool next();
66
67
69
71 hash<auto> getValue();
72
73
75 keepTransactionLock();
76
77
79
81 *hash<string, AbstractDataField> getRecordType();
82
83
85
89 *AbstractDataProviderBulkRecordInterface getBulkApi();
90
91};
92};
DbDataProvider::AbstractDbRecordIterator
Defines the record iterator class for Table-based iterators.
Definition AbstractDbRecordIterator.qc.dox.h:28
DbDataProvider::AbstractDbRecordIterator::destructor
destructor()
rolls back the transaction if a transaction lock was acquired in the constructor and keepTransactionL...
DbDataProvider::AbstractDbRecordIterator::keepTransactionLock
keepTransactionLock()
Ensures that no rollback is performed when the object is destroyed.
DbDataProvider::AbstractDbRecordIterator::next
bool next()
Increments the row pointer when retrieving rows from a select statement; returns True if there is a r...
DbDataProvider::AbstractDbRecordIterator::getBulkApi
*AbstractDataProviderBulkRecordInterface getBulkApi()
Returns the bulk data interface.
DbDataProvider::AbstractDbRecordIterator::release_transaction
bool release_transaction
release the transaction with a rollback in the destructor?
Definition AbstractDbRecordIterator.qc.dox.h:36
DbDataProvider::AbstractDbRecordIterator::stmt
AbstractSQLStatement stmt
the statement being iterated
Definition AbstractDbRecordIterator.qc.dox.h:33
DbDataProvider::AbstractDbRecordIterator::constructor
constructor(bool release_transaction, AbstractSQLStatement stmt)
creates the iterator
DbDataProvider::AbstractDbRecordIterator::valid
bool valid()
Returns True if the iterator is valid.
DbDataProvider::AbstractDbRecordIterator::getValue
hash< auto > getValue()
Returns a single record if the iterator is valid.
DbDataProvider::AbstractDbRecordIterator::getRecordType
*hash< string, AbstractDataField > getRecordType()
Returns the record description, if available.
DbDataProvider
Qore AbstractDbRecordIterator class definition.
Definition AbstractDbRecordIterator.qc.dox.h:26