Qore SalesforceRestDataProvider Module Reference  1.0.1
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 
60  constructor(SalesforceRestClient rest, string name, hash<SalesforceRestRecordInfo> record_info, *hash<auto> where_cond, *hash<auto> search_options);
61 
62 
64 
67  bool valid();
68 
69 
71 
77  bool next();
78 
79 
81 
83  hash<auto> getValue();
84 
85 
87 
93  auto memberGate(string key);
94 
95 
97  string getOrClause(list<auto> arglist);
98 
99 
101  string makeQuery(*hash<auto> where_cond, *hash<auto> search_options);
102 
103 
105 
107  *hash<string, AbstractDataField> getRecordType();
108 
109 
110  string getArgValue(string key, auto value);
111 
112 
113 protected:
114  string getOrderBy(softlist<string> coll);
115 public:
116 
117 
118 protected:
119  bool checkColumnName(string col);
120 public:
121 
122 
123 protected:
124  string getColumnNames(*softlist<auto> column_names);
125 public:
126 
127 
128 protected:
129  string doColumnOperatorIntern(auto cop, auto arg, auto cve);
130 public:
131 
132 
133 protected:
134  string getColumnExpressionIntern(auto cvc);
135 public:
136 
137 
138 protected:
139  string doWhereExpression(hash<auto> where_cond, *hash<auto> search_options);
140 public:
141 
142 
143 protected:
144  string doWhereExpressionIntern(string key, auto value);
145 public:
146 
147 
148 protected:
149  string doDateTimeValue(string key, auto value);
150 public:
151 
152 };
153 };
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
*hash< string, AbstractDataField > getRecordType()
Returns the record description, if available.
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