ServiceNowTableDataProvider.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace ServiceNowRestDataProvider {
hashdecl ServiceNowRestRecordInfo {
hash<string, AbstractDataField> record_type;
hash<string, string> field_types;
hash<string, bool> date_time_fields;
hash<string, bool> bool_fields;
hash<string, bool> int_fields;
}
class ServiceNowTableDataProvider : public DataProvider::AbstractDataProvider {
public:
ServiceNowRestClient::ServiceNowRestClient rest;
string name;
hash<auto> access;
hash<auto> meta;
const SysColumns = ...;
protected:
hash<ServiceNowRestRecordInfo> record_info();
string uri_path = "table/";
public:
constructor(ServiceNowRestClient rest, string name, hash<auto> access, hash<auto> meta);
string getName();
protected:
*hash<string, DataProvider::AbstractDataField> getRecordTypeImpl(*hash<auto> search_options);
public:
protected:
DataProvider::AbstractDataProviderRecordIterator searchRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
public:
protected:
hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
public:
protected:
*hash<auto> createRecordImpl(hash<auto> rec, *hash<auto> create_options);
public:
protected:
int updateRecordsImpl(hash<auto> set, hash<auto> where_cond, *hash<auto> search_options);
public:
protected:
int deleteRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
public:
protected:
updateSingleRecord(string id, hash<auto> set);
public:
protected:
deleteSingleRecord(string id);
public:
protected:
getRecordInfoIntern();
public:
};
}
ServiceNowRestDataProvider::ServiceNowTableDataProvider
The ServiceNowTableDataProvider data provider class.
Definition: ServiceNowTableDataProvider.qc.dox.h:46
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::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::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::updateRecordsImpl
int updateRecordsImpl(hash< auto > set, hash< auto > where_cond, *hash< auto > search_options)
Updates zero or more records matching the search options.
ServiceNowRestDataProvider::ServiceNowTableDataProvider::uri_path
string uri_path
URI path prefix.
Definition: ServiceNowTableDataProvider.qc.dox.h:70
ServiceNowRestDataProvider::ServiceNowTableDataProvider::constructor
constructor(ServiceNowRestClient rest, string name, hash< auto > access, hash< auto > meta)
Creates the object from the arguments.
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::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::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
ServiceNowRestDataProvider::ServiceNowTableDataProvider::deleteRecordsImpl
int deleteRecordsImpl(*hash< auto > where_cond, *hash< auto > search_options)
Deletes zero or more records.
ServiceNowRestDataProvider
Qore ServiceNowRestDataProvider module definition.
Definition: ServiceNowRestDataProvider.qc.dox.h:32
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