Loading...
Searching...
No Matches
CdsRestRecordIterator.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace CdsRestDataProvider {
class CdsRestRecordIterator : public AbstractDataProviderRecordIterator {
public:
private:
CdsRestClient::CdsRestClient rest;
string name;
hash<CdsRestRecordInfo> record_info;
Qore::ListHashIterator i;
public:
constructor(CdsRestClient::CdsRestClient rest, string name, hash<CdsRestRecordInfo> record_info, *hash<auto> where_cond, *hash<auto> search_options);
bool valid();
bool next();
hash<auto> getValue();
auto memberGate(string key);
string getOrClause(list<auto> arglist);
*string makeQuery(*hash<auto> where_cond, *hash<auto> search_options);
*hash<string, DataProvider::AbstractDataField> getRecordType();
string getArgValue(string key, auto value);
protected:
string getOrderBy(softlist<string> coll);
public:
protected:
bool checkColumnName(string col);
public:
protected:
string getColumnNames(*softlist<auto> column_names);
public:
protected:
string doWhereExpression(hash<auto> where_cond, *hash<auto> search_options);
public:
protected:
string doWhereExpressionIntern(string key, auto value);
public:
};
};
CdsRestDataProvider::CdsRestRecordIterator
Defines the record iterator class for Table-based iterators.
Definition CdsRestRecordIterator.qc.dox.h:28
CdsRestDataProvider::CdsRestRecordIterator::makeQuery
*string makeQuery(*hash< auto > where_cond, *hash< auto > search_options)
Returns the filter for a request.
CdsRestDataProvider::CdsRestRecordIterator::name
string name
current object name
Definition CdsRestRecordIterator.qc.dox.h:37
CdsRestDataProvider::CdsRestRecordIterator::i
Qore::ListHashIterator i
record iterator
Definition CdsRestRecordIterator.qc.dox.h:43
CdsRestDataProvider::CdsRestRecordIterator::getOrClause
string getOrClause(list< auto > arglist)
Returns "or" clauses.
CdsRestDataProvider::CdsRestRecordIterator::memberGate
auto memberGate(string key)
Returns the value of the given field in the current row, if the iterator is valid.
CdsRestDataProvider::CdsRestRecordIterator::getValue
hash< auto > getValue()
Returns a single record if the iterator is valid.
CdsRestDataProvider::CdsRestRecordIterator::rest
CdsRestClient::CdsRestClient rest
The REST client object for API calls.
Definition CdsRestRecordIterator.qc.dox.h:34
CdsRestDataProvider::CdsRestRecordIterator::next
bool next()
Increments the row pointer when retrieving rows from a select statement; returns True if there is a r...
CdsRestDataProvider::CdsRestRecordIterator::valid
bool valid()
Returns True if the iterator is valid.
CdsRestDataProvider::CdsRestRecordIterator::record_info
hash< CdsRestRecordInfo > record_info
Record info for the entity.
Definition CdsRestRecordIterator.qc.dox.h:40
CdsRestDataProvider::CdsRestRecordIterator::constructor
constructor(CdsRestClient::CdsRestClient rest, string name, hash< CdsRestRecordInfo > record_info, *hash< auto > where_cond, *hash< auto > search_options)
creates the iterator
CdsRestDataProvider::CdsRestRecordIterator::getRecordType
*hash< string, DataProvider::AbstractDataField > getRecordType()
Returns the record description, if available.
CdsRestDataProvider
Qore CdsRestDataProvider module definition.
Definition CdsEntityDataProvider.qc.dox.h:26
CdsRestDataProvider::key
string key
Key field, if any.
Definition CdsEntityDataProvider.qc.dox.h:39