| Qore SalesforceRestDataProvider Module Reference 2.0

Loading...
Searching...
No Matches
SalesforceRestObjectDataProvider.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
24
26 namespace SalesforceRestDataProvider {
28hashdecl 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
45 hash<string, bool> no_create;
46
48 hash<string, bool> no_update;
49
51 hash<string, bool> defaulted_on_create;
52}
53
55 class SalesforceRestObjectDataProvider : public SalesforceRestDataProviderBase {
56
57 public:
59 string name;
60
62 hash<auto> sobject;
63
65 const ProviderInfo = ...;
66
67
68 protected:
70 hash<auto> desc;
71
73 hash<SalesforceRestRecordInfo> record_info();
74
75 public:
76
78 constructor(SalesforceRestClient rest, string name, hash<auto> sobject) ;
79
80
82 string getName();
83
84
86 *string getDesc();
87
88
89 protected:
90 *hash<string, AbstractDataField> getRecordTypeImpl(*hash<auto> search_options);
91 public:
92
93
94 protected:
95 *hash<string, AbstractDataField> getUpdateRecordTypeImpl(*hash<auto> search_options);
96 public:
97
98
99 protected:
100 *hash<string, AbstractDataField> getCreateRecordTypeImpl(*hash<auto> create_options);
101 public:
102
103
105
110 protected:
111 AbstractDataProviderRecordIterator searchRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
112 public:
113
114
116 protected:
117 hash<DataProviderInfo> getStaticInfoImpl();
118 public:
119
120
122
130 protected:
131 *hash<auto> createRecordImpl(hash<auto> rec, *hash<auto> create_options);
132 public:
133
134
136
141 protected:
142 string upsertRecordImpl(hash<auto> rec, *hash<auto> upsert_options);
143 public:
144
145
147
153 protected:
154 int updateRecordsImpl(hash<auto> set, hash<auto> where_cond, *hash<auto> search_options);
155 public:
156
157
159
165 protected:
166 int deleteRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
167 public:
168
169
171 protected:
172 updateSingleRecord(string id, hash<auto> set);
173 public:
174
175
177 protected:
178 deleteSingleRecord(string id);
179 public:
180
181
183 protected:
184 getRecordInfoIntern();
185 public:
186
187
189
193 protected:
194 *hash<auto> fixSalesforceRecord(*hash<auto> rec);
195 public:
196
197};
198}
SalesforceRestDataProvider::SalesforceRestDataProviderBase
The SalesforceRest data provider class.
Definition SalesforceRestDataProviderBase.qc.dox.h:28
SalesforceRestDataProvider::SalesforceRestDataProviderBase::rest
SalesforceRestClient::SalesforceRestClient rest
The REST client object for API calls.
Definition SalesforceRestDataProviderBase.qc.dox.h:48
SalesforceRestDataProvider::SalesforceRestObjectDataProvider
The SalesforceRestObjectDataProvider data provider class.
Definition SalesforceRestObjectDataProvider.qc.dox.h:55
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::desc
hash< auto > desc
The description of this object type.
Definition SalesforceRestObjectDataProvider.qc.dox.h:70
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::getDesc
*string getDesc()
Returns the data provider description.
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::getName
string getName()
Returns the data provider name.
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::sobject
hash< auto > sobject
sobject description
Definition SalesforceRestObjectDataProvider.qc.dox.h:62
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::fixSalesforceRecord
*hash< auto > fixSalesforceRecord(*hash< auto > rec)
Fix salesforce records for serialization.
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::getStaticInfoImpl
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
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::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::record_info
hash< SalesforceRestRecordInfo > record_info()
Record info for this object.
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::ProviderInfo
const ProviderInfo
Static info for the data provider.
Definition SalesforceRestObjectDataProvider.qc.dox.h:65
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::updateSingleRecord
updateSingleRecord(string id, hash< auto > set)
updates a single record
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::createRecordImpl
*hash< auto > createRecordImpl(hash< auto > rec, *hash< auto > create_options)
Creates the given record to the data provider.
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::name
string name
current object name
Definition SalesforceRestObjectDataProvider.qc.dox.h:59
SalesforceRestDataProvider
Qore SalesforceRestDataProvider module definition.
Definition SalesforceRestDataProvider.qc.dox.h:26
SalesforceRestDataProvider::no_create
hash< string, bool > no_create
Fields that cannot be included when creating records.
Definition SalesforceRestObjectDataProvider.qc.dox.h:45
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::defaulted_on_create
hash< string, bool > defaulted_on_create
Fields that get a default value on create.
Definition SalesforceRestObjectDataProvider.qc.dox.h:51
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::no_update
hash< string, bool > no_update
Fields that cannot be included when updating records.
Definition SalesforceRestObjectDataProvider.qc.dox.h:48
SalesforceRestDataProvider::date_fields
hash< string, bool > date_fields
Hash of date fields for this record.
Definition SalesforceRestObjectDataProvider.qc.dox.h:39