55 hash<ServiceNowRestRecordInfo>
record_info, *hash<auto> where_cond, *hash<auto> search_options) {
61 *
string query =
makeQuery(where_cond, search_options);
64 string uri =
"table/" +
name;
66 uri += sprintf(
"?%s", query);
68 i =
new ListHashIterator(
rest.
get(uri, NOTHING, \info).body.response.result);
69 }
catch (hash<ExceptionInfo> ex) {
73 } + info{
"response-code",
"response-body"};
74 throw ex.err, ex.desc, ex_arg;
120 *
string makeQuery(*hash<DataProviderExpression> where_cond, *hash<auto> search_options);
126 *hash<string, DataProvider::AbstractDataField>
getRecordType();
130 string getOrderBy(softlist<string> coll);
135 bool checkColumnName(
string col);
140 string getColumnNames(*softlist<auto> column_names);
145 string doWhereExpression(hash<DataProviderExpression> where_cond, *hash<auto> search_options);
150 string doWhereExpressionIntern(hash<DataProviderExpression> arg);
155 string doWhereExpression(
auto arg);
160 string getArgValue(
string key,
auto value);
*string get(string path, *hash< auto > headers, *reference< hash< auto > > info)
Defines the record iterator class for Table-based iterators.
Definition: ServiceNowRestRecordIterator.qc.dox.h:28
constructor(ServiceNowRestClient::ServiceNowRestClient rest, string name, hash< ServiceNowRestRecordInfo > record_info, *hash< auto > where_cond, *hash< auto > search_options)
creates the iterator
Definition: ServiceNowRestRecordIterator.qc.dox.h:54
bool next()
Increments the row pointer when retrieving rows from a select statement; returns True if there is a r...
hash< auto > getValue()
Returns a single record if the iterator is valid.
*string makeQuery(*hash< DataProviderExpression > where_cond, *hash< auto > search_options)
Returns the filter for a request.
string name
current object name
Definition: ServiceNowRestRecordIterator.qc.dox.h:37
bool valid()
Returns True if the iterator is valid.
ServiceNowRestClient::ServiceNowRestClient rest
The REST client object for API calls.
Definition: ServiceNowRestRecordIterator.qc.dox.h:34
*hash< string, DataProvider::AbstractDataField > getRecordType()
Returns the record description, if available.
Qore::ListHashIterator i
record iterator
Definition: ServiceNowRestRecordIterator.qc.dox.h:43
hash< ServiceNowRestRecordInfo > record_info
Record info for the entity.
Definition: ServiceNowRestRecordIterator.qc.dox.h:40
auto memberGate(string key)
Returns the value of the given field in the current row, if the iterator is valid.
Qore ServiceNowRestDataProvider module definition.
Definition: ServiceNowRestDataProvider.qc.dox.h:26