Qore ServiceNowRestDataProvider Module Reference  1.1
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 
65 protected:
67  hash<ServiceNowRestRecordInfo> record_info();
68 
70  string uri_path = "table/";
71 
72 public:
73 
75  constructor(ServiceNowRestClient rest, string name, hash<auto> access, hash<auto> meta);
76 
77 
79  string getName();
80 
81 
82 protected:
83  *hash<string, DataProvider::AbstractDataField> getRecordTypeImpl(*hash<auto> search_options);
84 public:
85 
86 
88 
93 protected:
94  DataProvider::AbstractDataProviderRecordIterator searchRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
95 public:
96 
97 
99 protected:
100  hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
101 public:
102 
103 
105 
113 protected:
114  *hash<auto> createRecordImpl(hash<auto> rec, *hash<auto> create_options);
115 public:
116 
117 
119 
125 protected:
126  int updateRecordsImpl(hash<auto> set, hash<auto> where_cond, *hash<auto> search_options);
127 public:
128 
129 
131 
137 protected:
138  int deleteRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
139 public:
140 
141 
143 protected:
144  updateSingleRecord(string id, hash<auto> set);
145 public:
146 
147 
149 protected:
150  deleteSingleRecord(string id);
151 public:
152 
153 
155 protected:
157 public:
158 
159 };
160 }
hash< string, bool > bool_fields
Hash of boolean fields for this record.
Definition: ServiceNowTableDataProvider.qc.dox.h:39
string name
current object name
Definition: ServiceNowTableDataProvider.qc.dox.h:53
int updateRecordsImpl(hash< auto > set, hash< auto > where_cond, *hash< auto > search_options)
Updates zero or more records matching the search options.
hash< ServiceNowRestRecordInfo > record_info()
Record info for the table.
deleteSingleRecord(string id)
deletes a single record
hash< string, bool > int_fields
Hash of integer fields for this record.
Definition: ServiceNowTableDataProvider.qc.dox.h:42
string getName()
Returns the data provider name.
const SysColumns
system columns
Definition: ServiceNowTableDataProvider.qc.dox.h:62
hash< string, string > field_types
The original field type names.
Definition: ServiceNowTableDataProvider.qc.dox.h:33
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
hash< string, bool > date_time_fields
Hash of date/time fields for this record.
Definition: ServiceNowTableDataProvider.qc.dox.h:36
int deleteRecordsImpl(*hash< auto > where_cond, *hash< auto > search_options)
Deletes zero or more records.
*hash< auto > createRecordImpl(hash< auto > rec, *hash< auto > create_options)
Creates the given record to the data provider.
Qore ServiceNowRestDataProvider module definition.
Definition: ServiceNowRestDataProvider.qc.dox.h:32
constructor(ServiceNowRestClient rest, string name, hash< auto > access, hash< auto > meta)
Creates the object from the arguments.
The ServiceNowTableDataProvider data provider class.
Definition: ServiceNowTableDataProvider.qc.dox.h:46
hashdecl ServiceNowRestRecordInfo
contains ServiceNow object record information
Definition: ServiceNowTableDataProvider.qc.dox.h:28
string uri_path
URI path prefix.
Definition: ServiceNowTableDataProvider.qc.dox.h:70
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 > meta
metadata description
Definition: ServiceNowTableDataProvider.qc.dox.h:59
hash< auto > access
access description
Definition: ServiceNowTableDataProvider.qc.dox.h:56
ServiceNowRestClient::ServiceNowRestClient rest
The REST client object for API calls.
Definition: ServiceNowTableDataProvider.qc.dox.h:50
updateSingleRecord(string id, hash< auto > set)
updates a single record