Loading...
Searching...
No Matches
DefaultRecordIterator.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace DataProvider {
class DefaultRecordIterator : public AbstractDataProviderRecordIterator {
public:
protected:
AbstractIterator i;
*hash<auto> where_cond;
*hash<auto> search_options;
*hash<string, AbstractDataField> record_type;
int count = 0;
*string subrecord;
public:
constructor(AbstractIterator i, *hash<auto> where_cond, *hash<auto> search_options,
*hash<string, AbstractDataField> record_type, *string subrecord) {
self.i = i;
self.where_cond = where_cond;
if (exists search_options.columns && search_options.columns.typeCode() != NT_LIST);
self.search_options = search_options;
self.record_type = record_type;
self.subrecord = subrecord;
}
bool next();
bool valid();
hash<auto> getValue();
auto memberGate(string key);
*hash<string, AbstractDataField> getRecordType();
};
};
DataProvider::AbstractDataProviderRecordIterator
Defines the abstract class for data provider iterators; the destructor releases the iterator.
Definition: AbstractDataProviderRecordIterator.qc.dox.h:339
DataProvider::DefaultRecordIterator
Default record iterator class for data providers that do not support custom read / search APIs.
Definition: DefaultRecordIterator.qc.dox.h:30
DataProvider::DefaultRecordIterator::getValue
hash< auto > getValue()
returns a single record if the iterator is valid
DataProvider::DefaultRecordIterator::getRecordType
*hash< string, AbstractDataField > getRecordType()
Returns the record description, if available.
DataProvider::DefaultRecordIterator::valid
bool valid()
returns True if the iterator is currently pointing at a valid element, False if not
DataProvider::DefaultRecordIterator::memberGate
auto memberGate(string key)
Returns the value of the given field in the current record, if the iterator is valid.
DataProvider::DefaultRecordIterator::next
bool next()
Moves the current position to the next element; returns False if there are no more elements.
DataProvider::DefaultRecordIterator::constructor
constructor(AbstractIterator i, *hash< auto > where_cond, *hash< auto > search_options, *hash< string, AbstractDataField > record_type, *string subrecord)
Returns an iterator for zero or more records matching the search options.
Definition: DefaultRecordIterator.qc.dox.h:50
DataProvider
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27