| Qore ServiceNowRestDataProvider Module Reference 2.0

Loading...
Searching...
No Matches
ServiceNowRestRecordIterator.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
24
26 namespace ServiceNowRestDataProvider {
28 class ServiceNowRestRecordIterator : public AbstractDataProviderRecordIterator {
29
30 public:
31
32 private:
34 ServiceNowRestClient::ServiceNowRestClient rest;
35
37 string name;
38
40 hash<ServiceNowRestRecordInfo> record_info;
41
43 Qore::ListHashIterator i;
44
45 public:
46
48
54 constructor(ServiceNowRestClient::ServiceNowRestClient rest, string name, hash<ServiceNowRestRecordInfo> record_info, *hash<auto> where_cond, *hash<auto> search_options);
55
56
58
61 bool valid();
62
63
65
71 bool next();
72
73
75
77 hash<auto> getValue();
78
79
81
87 auto memberGate(string key);
88
89
90 /*
91 #! Returns "or" clauses
92 string getOrClause(list<auto> arglist) {
93 list<auto> l = map $1, (map doWhereExpression($1), arglist), $1;
94 return l ? (foldl $1 + "^OR" + $2, l) : "";
95 }
96 */
97
99 *string makeQuery(*hash<DataProviderExpression> where_cond, *hash<auto> search_options);
100
101
103
105 *hash<string, DataProvider::AbstractDataField> getRecordType();
106
107
108 protected:
109 string getOrderBy(softlist<string> coll);
110 public:
111
112
113 protected:
114 bool checkColumnName(string col);
115 public:
116
117
118 protected:
119 string getColumnNames(*softlist<auto> column_names);
120 public:
121
122
123 protected:
124 string doWhereExpression(hash<DataProviderExpression> where_cond, *hash<auto> search_options);
125 public:
126
127
128 protected:
129 string doWhereExpressionIntern(hash<DataProviderExpression> arg);
130 public:
131
132
133 protected:
134 string doWhereExpression(auto arg);
135 public:
136
137
138 protected:
139 string getArgValue(string key, auto value);
140 public:
141
142};
143};
Qore::ListHashIterator
ServiceNowRestDataProvider::ServiceNowRestRecordIterator
Defines the record iterator class for Table-based iterators.
Definition ServiceNowRestRecordIterator.qc.dox.h:28
ServiceNowRestDataProvider::ServiceNowRestRecordIterator::constructor
constructor(ServiceNowRestClient::ServiceNowRestClient rest, string name, hash< ServiceNowRestRecordInfo > record_info, *hash< auto > where_cond, *hash< auto > search_options)
creates the iterator
ServiceNowRestDataProvider::ServiceNowRestRecordIterator::next
bool next()
Increments the row pointer when retrieving rows from a select statement; returns True if there is a r...
ServiceNowRestDataProvider::ServiceNowRestRecordIterator::getValue
hash< auto > getValue()
Returns a single record if the iterator is valid.
ServiceNowRestDataProvider::ServiceNowRestRecordIterator::makeQuery
*string makeQuery(*hash< DataProviderExpression > where_cond, *hash< auto > search_options)
Returns the filter for a request.
ServiceNowRestDataProvider::ServiceNowRestRecordIterator::name
string name
current object name
Definition ServiceNowRestRecordIterator.qc.dox.h:37
ServiceNowRestDataProvider::ServiceNowRestRecordIterator::valid
bool valid()
Returns True if the iterator is valid.
ServiceNowRestDataProvider::ServiceNowRestRecordIterator::rest
ServiceNowRestClient::ServiceNowRestClient rest
The REST client object for API calls.
Definition ServiceNowRestRecordIterator.qc.dox.h:34
ServiceNowRestDataProvider::ServiceNowRestRecordIterator::getRecordType
*hash< string, DataProvider::AbstractDataField > getRecordType()
Returns the record description, if available.
ServiceNowRestDataProvider::ServiceNowRestRecordIterator::i
Qore::ListHashIterator i
record iterator
Definition ServiceNowRestRecordIterator.qc.dox.h:43
ServiceNowRestDataProvider::ServiceNowRestRecordIterator::record_info
hash< ServiceNowRestRecordInfo > record_info
Record info for the entity.
Definition ServiceNowRestRecordIterator.qc.dox.h:40
ServiceNowRestDataProvider::ServiceNowRestRecordIterator::memberGate
auto memberGate(string key)
Returns the value of the given field in the current row, if the iterator is valid.
ServiceNowRestDataProvider
Qore ServiceNowRestDataProvider module definition.
Definition ServiceNowRestDataProvider.qc.dox.h:26