| Qore ServiceNowRestDataProvider Module Reference 1.2

ServiceNowTableDataProvider.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3
26 namespace ServiceNowRestDataProvider {
28 hashdecl ServiceNowRestRecordInfo {
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:
160 getRecordInfoIntern();
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 }
ServiceNowRestDataProvider::ServiceNowTableDataProvider
The ServiceNowTableDataProvider data provider class.
Definition: ServiceNowTableDataProvider.qc.dox.h:46
ServiceNowRestDataProvider::ServiceNowTableDataProvider::SysColumns
const SysColumns
System columns.
Definition: ServiceNowTableDataProvider.qc.dox.h:62
ServiceNowRestDataProvider::ServiceNowTableDataProvider::getRecordInfoIntern
getRecordInfoIntern()
Retrieves the record type.
ServiceNowRestDataProvider::ServiceNowTableDataProvider::meta
hash< auto > meta
Metadata description.
Definition: ServiceNowTableDataProvider.qc.dox.h:59
ServiceNowRestDataProvider::ServiceNowTableDataProvider::updateRecordsImpl
int updateRecordsImpl(hash< auto > set, hash< DataProviderExpression > where_cond, *hash< auto > search_options)
Updates zero or more records matching the search options.
ServiceNowRestDataProvider::ServiceNowTableDataProvider::access
hash< auto > access
Access description.
Definition: ServiceNowTableDataProvider.qc.dox.h:56
ServiceNowRestDataProvider::ServiceNowTableDataProvider::deleteSingleRecord
deleteSingleRecord(string id)
deletes a single record
ServiceNowRestDataProvider::ServiceNowTableDataProvider::updateSingleRecord
updateSingleRecord(string id, hash< auto > set)
updates a single record
ServiceNowRestDataProvider::ServiceNowTableDataProvider::uri_path
string uri_path
URI path prefix.
Definition: ServiceNowTableDataProvider.qc.dox.h:74
ServiceNowRestDataProvider::ServiceNowTableDataProvider::getEqualityComparisonExpression
hash< DataProviderExpression > getEqualityComparisonExpression(int role, hash< DataProviderInfo > info, string key, auto value)
Returns an equality comparison expression.
ServiceNowRestDataProvider::ServiceNowTableDataProvider::constructor
constructor(ServiceNowRestClient rest, string name, hash< auto > access, hash< auto > meta)
Creates the object from the arguments.
ServiceNowRestDataProvider::ServiceNowTableDataProvider::Expressions
const Expressions
Supported expressions.
Definition: ServiceNowTableDataProvider.qc.dox.h:66
ServiceNowRestDataProvider::ServiceNowTableDataProvider::getStaticInfoImpl
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
ServiceNowRestDataProvider::ServiceNowTableDataProvider::name
string name
Current object name.
Definition: ServiceNowTableDataProvider.qc.dox.h:53
ServiceNowRestDataProvider::ServiceNowTableDataProvider::searchRecordsImpl
DataProvider::AbstractDataProviderRecordIterator searchRecordsImpl(*hash< auto > where_cond, *hash< auto > search_options)
Returns an iterator for zero or more records matching the search options.
ServiceNowRestDataProvider::ServiceNowTableDataProvider::createRecordImpl
*hash< auto > createRecordImpl(hash< auto > rec, *hash< auto > create_options)
Creates the given record to the data provider.
ServiceNowRestDataProvider::ServiceNowTableDataProvider::record_info
hash< ServiceNowRestRecordInfo > record_info()
Record info for the table.
ServiceNowRestDataProvider::ServiceNowTableDataProvider::deleteRecordsImpl
int deleteRecordsImpl(*hash< DataProviderExpression > where_cond, *hash< auto > search_options)
Deletes zero or more records.
ServiceNowRestDataProvider::ServiceNowTableDataProvider::getName
string getName()
Returns the data provider name.
ServiceNowRestDataProvider::ServiceNowTableDataProvider::rest
ServiceNowRestClient::ServiceNowRestClient rest
The REST client object for API calls.
Definition: ServiceNowTableDataProvider.qc.dox.h:50
exp
number exp(number n)
ServiceNowRestDataProvider
Qore ServiceNowRestDataProvider module definition.
Definition: ServiceNowRestDataProvider.qc.dox.h:26
ServiceNowRestDataProvider::date_time_fields
hash< string, bool > date_time_fields
Hash of date/time fields for this record.
Definition: ServiceNowTableDataProvider.qc.dox.h:36
ServiceNowRestDataProvider::field_types
hash< string, string > field_types
The original field type names.
Definition: ServiceNowTableDataProvider.qc.dox.h:33
ServiceNowRestDataProvider::bool_fields
hash< string, bool > bool_fields
Hash of boolean fields for this record.
Definition: ServiceNowTableDataProvider.qc.dox.h:39
ServiceNowRestDataProvider::int_fields
hash< string, bool > int_fields
Hash of integer fields for this record.
Definition: ServiceNowTableDataProvider.qc.dox.h:42
ServiceNowRestDataProvider::ServiceNowRestRecordInfo
hashdecl ServiceNowRestRecordInfo
contains ServiceNow object record information
Definition: ServiceNowTableDataProvider.qc.dox.h:28