SalesforceRestObjectDataProvider.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace SalesforceRestDataProvider {
hashdecl SalesforceRestRecordInfo {
hash<string, AbstractDataField> record_type;
hash<string, string> field_types;
hash<string, bool> date_time_fields;
hash<string, bool> date_fields;
hash<string, bool> time_fields;
}
class SalesforceRestObjectDataProvider : public AbstractDataProvider {
public:
SalesforceRestClient rest;
string name;
hash<auto> sobject;
protected:
hash<auto> desc;
hash<SalesforceRestRecordInfo> record_info();
public:
constructor(SalesforceRestClient rest, string name, hash<auto> sobject);
string getName();
protected:
*hash<string, AbstractDataField> getRecordTypeImpl(*hash<auto> search_options);
public:
protected:
AbstractDataProviderRecordIterator searchRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
public:
protected:
hash<DataProviderInfo> getStaticInfoImpl();
public:
protected:
*hash<auto> createRecordImpl(hash<auto> rec, *hash<auto> create_options);
public:
protected:
string upsertRecordImpl(hash<auto> rec, *hash<auto> upsert_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:
protected:
*hash<auto> fixSalesforceRecord(*hash<auto> rec);
public:
};
}
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::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:32
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