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 
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 
82 
83 
85 
87  *hash<string, AbstractDataField> getRecordType();
88 
89 };
90 };
bool next()
Increments the row pointer when retrieving rows from a select statement; returns True if there is a r...
destructor()
rolls back the transaction if a transaction lock was acquired in the constructor and keepTransactionL...
*hash< string, AbstractDataField > getRecordType()
Returns the record description, if available.
Defines the record iterator class for Table-based iterators.
Definition: AbstractDbRecordIterator.qc.dox.h:34
bool release_transaction
release the transaction with a rollback in the destructor?
Definition: AbstractDbRecordIterator.qc.dox.h:42
bool valid()
Returns True if the iterator is valid.
AbstractSQLStatement stmt
the statement being iterated
Definition: AbstractDbRecordIterator.qc.dox.h:39
keepTransactionLock()
Ensures that no rollback is performed when the object is destroyed.
Qore AbstractDbRecordIterator class definition.
Definition: AbstractDbRecordIterator.qc.dox.h:32
constructor(bool release_transaction, AbstractSQLStatement stmt)
creates the iterator
hash< auto > getValue()
Returns a single record if the iterator is valid.