Qore SalesforceRestDataProvider Module Reference  1.0
SalesforceRestRecordIterator.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 
34 class SalesforceRestRecordIterator : public AbstractDataProviderRecordIterator {
35 
36 public:
37 
38 private:
40  SalesforceRestClient rest;
41 
43  string name;
44 
46  hash<SalesforceRestRecordInfo> record_info;
47 
49  ListHashIterator i;
50 
51 public:
52 
54 
57  constructor(SalesforceRestClient rest, string name, hash<SalesforceRestRecordInfo> record_info, *hash<auto> where_cond, *hash<auto> search_options);
58 
59 
61 
64  bool valid();
65 
66 
68 
74  bool next();
75 
76 
78 
80  hash<auto> getValue();
81 
82 
84 
90  auto memberGate(string key);
91 
92 
94  string getOrClause(list<auto> arglist);
95 
96 
98  string makeQuery(*hash<auto> where_cond, *hash<auto> search_options);
99 
100 
101 protected:
102  string getOrderBy(softlist<string> coll);
103 public:
104 
105 
106 protected:
107  bool checkColumnName(string col);
108 public:
109 
110 
111 protected:
112  string getColumnNames(*softlist<auto> column_names);
113 public:
114 
115 
116 protected:
117  string doColumnOperatorIntern(auto cop, auto arg, auto cve);
118 public:
119 
120 
121 protected:
122  string getColumnExpressionIntern(auto cvc);
123 public:
124 
125 
126 protected:
127  string doWhereExpression(hash<auto> where_cond, *hash<auto> search_options);
128 public:
129 
130 
131 protected:
132  string doWhereExpressionIntern(string key, auto value);
133 public:
134 
135 
136  string getArgValue(string key, auto value);
137 
138 
139 protected:
140  string doDateTimeValue(string key, auto value);
141 public:
142 
143 };
144 };
Qore SalesforceRestDataProvider module definition.
Definition: SalesforceRestDataProvider.qc.dox.h:32
string makeQuery(*hash< auto > where_cond, *hash< auto > search_options)
Returns the SQL for a request.
Defines the record iterator class for Table-based iterators.
Definition: SalesforceRestRecordIterator.qc.dox.h:34
string name
current object name
Definition: SalesforceRestRecordIterator.qc.dox.h:43
hash< auto > getValue()
Returns a single record if the iterator is valid.
bool valid()
Returns True if the iterator is valid.
bool next()
Increments the row pointer when retrieving rows from a select statement; returns True if there is a r...
string getOrClause(list< auto > arglist)
Returns "or" clauses.
hash< SalesforceRestRecordInfo > record_info
The record info for this object.
Definition: SalesforceRestRecordIterator.qc.dox.h:46
SalesforceRestClient rest
The REST client object for API calls.
Definition: SalesforceRestRecordIterator.qc.dox.h:40
auto memberGate(string key)
Returns the value of the given field in the current row, if the iterator is valid.
constructor(SalesforceRestClient rest, string name, hash< SalesforceRestRecordInfo > record_info, *hash< auto > where_cond, *hash< auto > search_options)
creates the iterator
ListHashIterator i
record iterator
Definition: SalesforceRestRecordIterator.qc.dox.h:49