| Qore ServiceNowRestDataProvider Module Reference 2.0

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