Qore ServiceNowRestDataProvider Module Reference  1.2
ServiceNowTableDataProvider.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3 
30  hash<string, AbstractDataField> record_type;
31 
33  hash<string, string> field_types;
34 
36  hash<string, bool> date_time_fields;
37 
39  hash<string, bool> bool_fields;
40 
42  hash<string, bool> int_fields;
43 }
44 
46 class ServiceNowTableDataProvider : public DataProvider::AbstractDataProvider {
47 
48 public:
50  ServiceNowRestClient::ServiceNowRestClient rest;
51 
53  string name;
54 
56  hash<auto> access;
57 
59  hash<auto> meta;
60 
62  const SysColumns = ...;
63 
64 
66  const Expressions = ...;
67 
68 
69 protected:
71  hash<ServiceNowRestRecordInfo> record_info();
72 
74  string uri_path = "table/";
75 
76 public:
77 
79  constructor(ServiceNowRestClient rest, string name, hash<auto> access, hash<auto> meta);
80 
81 
83  string getName();
84 
85 
86 protected:
87  *hash<string, DataProvider::AbstractDataField> getRecordTypeImpl(*hash<auto> search_options);
88 public:
89 
90 
92 
97 protected:
98  DataProvider::AbstractDataProviderRecordIterator searchRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
99 public:
100 
101 
103 protected:
104  hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
105 public:
106 
107 
109 
117 protected:
118  *hash<auto> createRecordImpl(hash<auto> rec, *hash<auto> create_options);
119 public:
120 
121 
123 
129 protected:
130  int updateRecordsImpl(hash<auto> set, hash<DataProviderExpression> where_cond, *hash<auto> search_options);
131 public:
132 
133 
135 
141 protected:
142  int deleteRecordsImpl(*hash<DataProviderExpression> where_cond, *hash<auto> search_options);
143 public:
144 
145 
147 protected:
148  updateSingleRecord(string id, hash<auto> set);
149 public:
150 
151 
153 protected:
154  deleteSingleRecord(string id);
155 public:
156 
157 
159 protected:
161 public:
162 
163 
165 protected:
166  hash<DataProviderExpression> getEqualityComparisonExpression(int role, hash<DataProviderInfo> info, string key, auto value);
167 public:
168 
169 };
170 }
171 
172 namespace Priv {
173 hash<DataProviderExpressionInfo> sym(hash<DataProviderExpressionInfo> exp, string label);
174 
175 }
The ServiceNowTableDataProvider data provider class.
Definition: ServiceNowTableDataProvider.qc.dox.h:46
const SysColumns
System columns.
Definition: ServiceNowTableDataProvider.qc.dox.h:62
hash< auto > meta
Metadata description.
Definition: ServiceNowTableDataProvider.qc.dox.h:59
int updateRecordsImpl(hash< auto > set, hash< DataProviderExpression > where_cond, *hash< auto > search_options)
Updates zero or more records matching the search options.
hash< auto > access
Access description.
Definition: ServiceNowTableDataProvider.qc.dox.h:56
deleteSingleRecord(string id)
deletes a single record
updateSingleRecord(string id, hash< auto > set)
updates a single record
string uri_path
URI path prefix.
Definition: ServiceNowTableDataProvider.qc.dox.h:74
hash< DataProviderExpression > getEqualityComparisonExpression(int role, hash< DataProviderInfo > info, string key, auto value)
Returns an equality comparison expression.
constructor(ServiceNowRestClient rest, string name, hash< auto > access, hash< auto > meta)
Creates the object from the arguments.
const Expressions
Supported expressions.
Definition: ServiceNowTableDataProvider.qc.dox.h:66
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
string name
Current object name.
Definition: ServiceNowTableDataProvider.qc.dox.h:53
DataProvider::AbstractDataProviderRecordIterator searchRecordsImpl(*hash< auto > where_cond, *hash< auto > search_options)
Returns an iterator for zero or more records matching the search options.
*hash< auto > createRecordImpl(hash< auto > rec, *hash< auto > create_options)
Creates the given record to the data provider.
hash< ServiceNowRestRecordInfo > record_info()
Record info for the table.
int deleteRecordsImpl(*hash< DataProviderExpression > where_cond, *hash< auto > search_options)
Deletes zero or more records.
string getName()
Returns the data provider name.
ServiceNowRestClient::ServiceNowRestClient rest
The REST client object for API calls.
Definition: ServiceNowTableDataProvider.qc.dox.h:50
number exp(number n)
Qore ServiceNowRestDataProvider module definition.
Definition: ServiceNowRestDataProvider.qc.dox.h:26
hash< string, bool > date_time_fields
Hash of date/time fields for this record.
Definition: ServiceNowTableDataProvider.qc.dox.h:36
hash< string, string > field_types
The original field type names.
Definition: ServiceNowTableDataProvider.qc.dox.h:33
hash< string, bool > bool_fields
Hash of boolean fields for this record.
Definition: ServiceNowTableDataProvider.qc.dox.h:39
hash< string, bool > int_fields
Hash of integer fields for this record.
Definition: ServiceNowTableDataProvider.qc.dox.h:42
hashdecl ServiceNowRestRecordInfo
contains ServiceNow object record information
Definition: ServiceNowTableDataProvider.qc.dox.h:28