Qore ServiceNowRestDataProvider Module Reference 2.0
Loading...
Searching...
No Matches
ServiceNowTableDataProvider.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
24
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
47
48public:
50 string name;
51
53 hash<auto> access;
54
56 hash<auto> meta;
57
59 const ProviderInfo = ...;
60
61
63 const SysColumns = ...;
64
65
67 const Expressions = ...;
68
69
70protected:
72 hash<ServiceNowRestRecordInfo> record_info();
73
75 string uri_path = "table/";
76
77public:
78
80 constructor(ServiceNowRestClient rest, string name, hash<auto> access, hash<auto> meta) ;
81
82
84 string getName();
85
86
88 string getDesc();
89
90
91protected:
92 *hash<string, DataProvider::AbstractDataField> getRecordTypeImpl(*hash<auto> search_options);
93public:
94
95
97
102protected:
103 DataProvider::AbstractDataProviderRecordIterator searchRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
104public:
105
106
108protected:
109 hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
110public:
111
112
114
122protected:
123 *hash<auto> createRecordImpl(hash<auto> rec, *hash<auto> create_options);
124public:
125
126
128
134protected:
135 int updateRecordsImpl(hash<auto> set, hash<DataProviderExpression> where_cond, *hash<auto> search_options);
136public:
137
138
140
146protected:
147 int deleteRecordsImpl(*hash<DataProviderExpression> where_cond, *hash<auto> search_options);
148public:
149
150
152protected:
153 updateSingleRecord(string id, hash<auto> set);
154public:
155
156
158protected:
160public:
161
162
164protected:
166public:
167
168
170protected:
171 hash<DataProviderExpression> getEqualityComparisonExpression(int role, hash<DataProviderInfo> info, string key, auto value);
172public:
173
174};
175}
176
177namespace Priv {
178hash<DataProviderExpressionInfo> sym(hash<DataProviderExpressionInfo> exp, string name);
179
180}
The ServiceNowRest data provider class.
Definition ServiceNowRestDataProviderBase.qc.dox.h:28
ServiceNowRestClient::ServiceNowRestClient rest
The REST client object for API calls.
Definition ServiceNowRestDataProviderBase.qc.dox.h:33
The ServiceNowTableDataProvider data provider class.
Definition ServiceNowTableDataProvider.qc.dox.h:46
const ProviderInfo
Provider info.
Definition ServiceNowTableDataProvider.qc.dox.h:59
const SysColumns
System columns.
Definition ServiceNowTableDataProvider.qc.dox.h:63
*hash< auto > createRecordImpl(hash< auto > rec, *hash< auto > create_options)
Creates the given record to the data provider.
hash< DataProviderExpression > getEqualityComparisonExpression(int role, hash< DataProviderInfo > info, string key, auto value)
Returns an equality comparison expression.
hash< auto > meta
Metadata description.
Definition ServiceNowTableDataProvider.qc.dox.h:56
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:53
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:75
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:67
string name
Current object name.
Definition ServiceNowTableDataProvider.qc.dox.h:50
DataProvider::AbstractDataProviderRecordIterator searchRecordsImpl(*hash< auto > where_cond, *hash< auto > search_options)
Returns an iterator for zero or more records matching the search options.
hash< ServiceNowRestRecordInfo > record_info()
Record info for the table.
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
int deleteRecordsImpl(*hash< DataProviderExpression > where_cond, *hash< auto > search_options)
Deletes zero or more records.
string getName()
Returns the data provider name.
string getDesc()
Returns the data provider description.
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