Qore ServiceNowRestDataProvider Module Reference 2.0
Loading...
Searching...
No Matches
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
47
48public:
50 string name;
51
53 hash<auto> access;
54
56 hash<auto> meta;
57
59 const SysColumns = ...;
60
61
63 const Expressions = ...;
64
65
66protected:
68 hash<ServiceNowRestRecordInfo> record_info();
69
71 string uri_path = "table/";
72
73public:
74
76 constructor(ServiceNowRestClient rest, string name, hash<auto> access, hash<auto> meta) ;
77
78
80 string getName();
81
82
84 string getDesc();
85
86
87protected:
88 *hash<string, DataProvider::AbstractDataField> getRecordTypeImpl(*hash<auto> search_options);
89public:
90
91
93
98protected:
99 DataProvider::AbstractDataProviderRecordIterator searchRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
100public:
101
102
104protected:
105 hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
106public:
107
108
110
118protected:
119 *hash<auto> createRecordImpl(hash<auto> rec, *hash<auto> create_options);
120public:
121
122
124
130protected:
131 int updateRecordsImpl(hash<auto> set, hash<DataProviderExpression> where_cond, *hash<auto> search_options);
132public:
133
134
136
142protected:
143 int deleteRecordsImpl(*hash<DataProviderExpression> where_cond, *hash<auto> search_options);
144public:
145
146
148protected:
149 updateSingleRecord(string id, hash<auto> set);
150public:
151
152
154protected:
156public:
157
158
160protected:
162public:
163
164
166protected:
167 hash<DataProviderExpression> getEqualityComparisonExpression(int role, hash<DataProviderInfo> info, string key, auto value);
168public:
169
170};
171}
172
173namespace Priv {
174hash<DataProviderExpressionInfo> sym(hash<DataProviderExpressionInfo> exp, string name);
175
176}
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 SysColumns
System columns.
Definition ServiceNowTableDataProvider.qc.dox.h:59
*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:71
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:63
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