SalesforceRestRecordIterator.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
// minimum required Qore version
// assume local scope for variables, do not use "$" signs
// require type definitions everywhere
// enable all warnings
namespace SalesforceRestDataProvider {
class SalesforceRestRecordIterator : public AbstractDataProviderRecordIterator {
public:
private:
SalesforceRestClient rest;
string name;
hash<SalesforceRestRecordInfo> record_info;
ListHashIterator i;
public:
constructor(SalesforceRestClient rest, string name, hash<SalesforceRestRecordInfo> 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, 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 doColumnOperatorIntern(auto cop, auto arg, auto cve);
public:
protected:
string getColumnExpressionIntern(auto cvc);
public:
protected:
string doWhereExpression(hash<auto> where_cond, *hash<auto> search_options);
public:
protected:
string doWhereExpressionIntern(string key, auto value);
public:
protected:
string doDateTimeValue(string key, auto value);
public:
};
};
SalesforceRestDataProvider::SalesforceRestRecordIterator
Defines the record iterator class for Table-based iterators.
Definition: SalesforceRestRecordIterator.qc.dox.h:34
SalesforceRestDataProvider::SalesforceRestRecordIterator::getOrClause
string getOrClause(list< auto > arglist)
Returns "or" clauses.
SalesforceRestDataProvider::SalesforceRestRecordIterator::record_info
hash< SalesforceRestRecordInfo > record_info
The record info for this object.
Definition: SalesforceRestRecordIterator.qc.dox.h:46
SalesforceRestDataProvider::SalesforceRestRecordIterator::rest
SalesforceRestClient rest
The REST client object for API calls.
Definition: SalesforceRestRecordIterator.qc.dox.h:40
SalesforceRestDataProvider::SalesforceRestRecordIterator::name
string name
current object name
Definition: SalesforceRestRecordIterator.qc.dox.h:43
SalesforceRestDataProvider::SalesforceRestRecordIterator::getValue
hash< auto > getValue()
Returns a single record if the iterator is valid.
SalesforceRestDataProvider::SalesforceRestRecordIterator::i
ListHashIterator i
record iterator
Definition: SalesforceRestRecordIterator.qc.dox.h:49
SalesforceRestDataProvider::SalesforceRestRecordIterator::valid
bool valid()
Returns True if the iterator is valid.
SalesforceRestDataProvider::SalesforceRestRecordIterator::getRecordType
*hash< string, AbstractDataField > getRecordType()
Returns the record description, if available.
SalesforceRestDataProvider::SalesforceRestRecordIterator::memberGate
auto memberGate(string key)
Returns the value of the given field in the current row, if the iterator is valid.
SalesforceRestDataProvider::SalesforceRestRecordIterator::makeQuery
string makeQuery(*hash< auto > where_cond, *hash< auto > search_options)
Returns the SQL for a request.
SalesforceRestDataProvider::SalesforceRestRecordIterator::next
bool next()
Increments the row pointer when retrieving rows from a select statement; returns True if there is a r...
SalesforceRestDataProvider::SalesforceRestRecordIterator::constructor
constructor(SalesforceRestClient rest, string name, hash< SalesforceRestRecordInfo > record_info, *hash< auto > where_cond, *hash< auto > search_options)
creates the iterator
SalesforceRestDataProvider
Qore SalesforceRestDataProvider module definition.
Definition: SalesforceRestDataProvider.qc.dox.h:32