SalesforceRestObjectDataProvider.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
// minimum required Qore version
// assume local scope for variables, do not use "$" signs
// require type definitions everywhere
// strict argument handling
// enable all warnings
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:
};
}
SalesforceRestDataProvider::date_time_fields
hash< string, bool > date_time_fields
Hash of date/time fields for this record.
Definition: SalesforceRestObjectDataProvider.qc.dox.h:42
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::name
string name
current object name
Definition: SalesforceRestObjectDataProvider.qc.dox.h:59
SalesforceRestDataProvider::SalesforceRestObjectDataProvider
The SalesforceRestObjectDataProvider data provider class.
Definition: SalesforceRestObjectDataProvider.qc.dox.h:52
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::upsertRecordImpl
string upsertRecordImpl(hash< auto > rec, *hash< auto > upsert_options)
Upserts the given record to the data provider.
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::updateSingleRecord
updateSingleRecord(string id, hash< auto > set)
updates a single record
SalesforceRestDataProvider::date_fields
hash< string, bool > date_fields
Hash of date fields for this record.
Definition: SalesforceRestObjectDataProvider.qc.dox.h:45
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::desc
hash< auto > desc
The description of this object type.
Definition: SalesforceRestObjectDataProvider.qc.dox.h:66
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::time_fields
hash< string, bool > time_fields
Hash of time fields for this record.
Definition: SalesforceRestObjectDataProvider.qc.dox.h:48
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::getRecordInfoIntern
getRecordInfoIntern()
Retrieves the record type.
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::record_info
hash< SalesforceRestRecordInfo > record_info()
Record info for this object.
SalesforceRestDataProvider::SalesforceRestRecordInfo
hashdecl SalesforceRestRecordInfo
contains Salesforce object record information
Definition: SalesforceRestObjectDataProvider.qc.dox.h:34
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::rest
SalesforceRestClient rest
The REST client object for API calls.
Definition: SalesforceRestObjectDataProvider.qc.dox.h:56
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::sobject
hash< auto > sobject
sobject description
Definition: SalesforceRestObjectDataProvider.qc.dox.h:62
SalesforceRestDataProvider::field_types
hash< string, string > field_types
The original field type names.
Definition: SalesforceRestObjectDataProvider.qc.dox.h:39
SalesforceRestDataProvider
Qore SalesforceRestDataProvider module definition.
Definition: SalesforceRestDataProvider.qc.dox.h:32
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::deleteRecordsImpl
int deleteRecordsImpl(*hash< auto > where_cond, *hash< auto > search_options)
Deletes zero or more records.
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::getStaticInfoImpl
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::deleteSingleRecord
deleteSingleRecord(string id)
deletes a single record
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::constructor
constructor(SalesforceRestClient rest, string name, hash< auto > sobject)
Creates the object from the arguments.
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::createRecordImpl
*hash< auto > createRecordImpl(hash< auto > rec, *hash< auto > create_options)
Creates the given record to the data provider.
SalesforceRestDataProvider::SalesforceRestObjectDataProvider::getName
string getName()
Returns the data provider name.