| Qore SalesforceRestDataProvider Module Reference 1.0.1

SalesforceRestObjectDataProvider.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3
26 namespace SalesforceRestDataProvider {
28 hashdecl SalesforceRestRecordInfo {
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> date_fields;
40
42 hash<string, bool> time_fields;
43 }
44
46 class SalesforceRestObjectDataProvider : public AbstractDataProvider {
47
48 public:
50 SalesforceRestClient rest;
51
53 string name;
54
56 hash<auto> sobject;
57
58 protected:
60 hash<auto> desc;
61
63 hash<SalesforceRestRecordInfo> record_info();
64
65 public:
66
68 constructor(SalesforceRestClient rest, string name, hash<auto> sobject);
69
70
72 string getName();
73
74
76 *string getDesc();
77
78
79 protected:
80 *hash<string, AbstractDataField> getRecordTypeImpl(*hash<auto> search_options);
81 public:
82
83
85
90 protected:
91 AbstractDataProviderRecordIterator searchRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
92 public:
93
94
96 protected:
97 hash<DataProviderInfo> getStaticInfoImpl();
98 public:
99
100
102
110 protected:
111 *hash<auto> createRecordImpl(hash<auto> rec, *hash<auto> create_options);
112 public:
113
114
116
121 protected:
122 string upsertRecordImpl(hash<auto> rec, *hash<auto> upsert_options);
123 public:
124
125
127
133 protected:
134 int updateRecordsImpl(hash<auto> set, hash<auto> where_cond, *hash<auto> search_options);
135 public:
136
137
139
145 protected:
146 int deleteRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
147 public:
148
149
151 protected:
152 updateSingleRecord(string id, hash<auto> set);
153 public:
154
155
157 protected:
158 deleteSingleRecord(string id);
159 public:
160
161
163 protected:
164 getRecordInfoIntern();
165 public:
166
167
169
173 protected:
174 *hash<auto> fixSalesforceRecord(*hash<auto> rec);
175 public:
176
177 };
178 }
SalesforceRestDataProvider::SalesforceRestObjectDataProvider
The SalesforceRestObjectDataProvider data provider class.
Definition: SalesforceRestObjectDataProvider.qc.dox.h:46
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::desc
hash< auto > desc
The description of this object type.
Definition: SalesforceRestObjectDataProvider.qc.dox.h:60
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::getDesc
*string getDesc()
Returns the data provider description.
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::getName
string getName()
Returns the data provider name.
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::fixSalesforceRecord
*hash< auto > fixSalesforceRecord(*hash< auto > rec)
Fix salesforce records for serialization.
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::sobject
hash< auto > sobject
sobject description
Definition: SalesforceRestObjectDataProvider.qc.dox.h:56
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::searchRecordsImpl
AbstractDataProviderRecordIterator searchRecordsImpl(*hash< auto > where_cond, *hash< auto > search_options)
Returns an iterator for zero or more records matching the search options.
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::getStaticInfoImpl
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::constructor
constructor(SalesforceRestClient rest, string name, hash< auto > sobject)
Creates the object from the arguments.
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::deleteSingleRecord
deleteSingleRecord(string id)
deletes a single record
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::updateRecordsImpl
int updateRecordsImpl(hash< auto > set, hash< auto > where_cond, *hash< auto > search_options)
Updates zero or more records matching the search options.
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::deleteRecordsImpl
int deleteRecordsImpl(*hash< auto > where_cond, *hash< auto > search_options)
Deletes zero or more records.
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::rest
SalesforceRestClient rest
The REST client object for API calls.
Definition: SalesforceRestObjectDataProvider.qc.dox.h:50
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::createRecordImpl
*hash< auto > createRecordImpl(hash< auto > rec, *hash< auto > create_options)
Creates the given record to the data provider.
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::updateSingleRecord
updateSingleRecord(string id, hash< auto > set)
updates a single record
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::record_info
hash< SalesforceRestRecordInfo > record_info()
Record info for this object.
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::getRecordInfoIntern
getRecordInfoIntern()
Retrieves the record type.
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::upsertRecordImpl
string upsertRecordImpl(hash< auto > rec, *hash< auto > upsert_options)
Upserts the given record to the data provider.
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::name
string name
current object name
Definition: SalesforceRestObjectDataProvider.qc.dox.h:53
SalesforceRestDataProvider
Qore SalesforceRestDataProvider module definition.
Definition: SalesforceRestDataProvider.qc.dox.h:26
SalesforceRestDataProvider::field_types
hash< string, string > field_types
The original field type names.
Definition: SalesforceRestObjectDataProvider.qc.dox.h:33
SalesforceRestDataProvider::time_fields
hash< string, bool > time_fields
Hash of time fields for this record.
Definition: SalesforceRestObjectDataProvider.qc.dox.h:42
SalesforceRestDataProvider::SalesforceRestRecordInfo
hashdecl SalesforceRestRecordInfo
contains Salesforce object record information
Definition: SalesforceRestObjectDataProvider.qc.dox.h:28
SalesforceRestDataProvider::date_time_fields
hash< string, bool > date_time_fields
Hash of date/time fields for this record.
Definition: SalesforceRestObjectDataProvider.qc.dox.h:36
SalesforceRestDataProvider::date_fields
hash< string, bool > date_fields
Hash of date fields for this record.
Definition: SalesforceRestObjectDataProvider.qc.dox.h:39