| Qore DbDataProvider Module Reference 1.0

AbstractDbRecordIterator.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3
25 // minimum required Qore version
26 // assume local scope for variables, do not use "$" signs
27 // require type definitions everywhere
29 // enable all warnings
30
32 namespace DbDataProvider {
34 class AbstractDbRecordIterator : public AbstractDataProviderRecordIterator {
35
36 public:
37 protected:
39 AbstractSQLStatement stmt;
40
42 bool release_transaction;
43
44 public:
45
47
50 constructor(bool release_transaction, AbstractSQLStatement stmt);
51
52
54 destructor();
55
56
58
61 bool valid();
62
63
65
71 bool next();
72
73
75
77 hash<auto> getValue();
78
79
81 keepTransactionLock();
82
83
85
87 *hash<string, AbstractDataField> getRecordType();
88
89 };
90 };
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::destructor
destructor()
rolls back the transaction if a transaction lock was acquired in the constructor and keepTransactionL...
DbDataProvider::AbstractDbRecordIterator::getRecordType
*hash< string, AbstractDataField > getRecordType()
Returns the record description, if available.
DbDataProvider::AbstractDbRecordIterator
Defines the record iterator class for Table-based iterators.
Definition: AbstractDbRecordIterator.qc.dox.h:34
DbDataProvider::AbstractDbRecordIterator::release_transaction
bool release_transaction
release the transaction with a rollback in the destructor?
Definition: AbstractDbRecordIterator.qc.dox.h:42
DbDataProvider::AbstractDbRecordIterator::valid
bool valid()
Returns True if the iterator is valid.
DbDataProvider::AbstractDbRecordIterator::stmt
AbstractSQLStatement stmt
the statement being iterated
Definition: AbstractDbRecordIterator.qc.dox.h:39
DbDataProvider::AbstractDbRecordIterator::keepTransactionLock
keepTransactionLock()
Ensures that no rollback is performed when the object is destroyed.
DbDataProvider
Qore AbstractDbRecordIterator class definition.
Definition: AbstractDbRecordIterator.qc.dox.h:32
DbDataProvider::AbstractDbRecordIterator::constructor
constructor(bool release_transaction, AbstractSQLStatement stmt)
creates the iterator
DbDataProvider::AbstractDbRecordIterator::getValue
hash< auto > getValue()
Returns a single record if the iterator is valid.