Loading...
Searching...
No Matches
CdsEntityDataProvider.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace CdsRestDataProvider {
hashdecl CdsRestRecordInfo {
hash<string, AbstractDataField> record_type;
#! The original field type names
hash<string, string> field_types;
#! Hash of date/time fields for this record
hash<string, bool> date_time_fields;
#! Key field, if any
string key;
#! Entity set name
string entity_set_name;
}
class CdsEntityDataProvider : public DataProvider::AbstractDataProvider {
public:
CdsRestClient::CdsRestClient rest;
string name;
hash<auto> meta;
protected:
hash<CdsRestRecordInfo> record_info();
public:
constructor(CdsRestClient rest, string name, hash<auto> meta);
string getName();
protected:
*hash<string, DataProvider::AbstractDataField> getRecordTypeImpl(*hash<auto> search_options);
public:
private DataProvider::AbstractDataProviderRecordIterator searchRecordsImpl(*hash<auto> where_cond,
*hash<auto> search_options) {
return new CdsRestRecordIterator(rest, name, record_info, where_cond, search_options);
}
protected:
hash<DataProvider::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:
setEntitySetName();
public:
};
};
CdsRestDataProvider::CdsEntityDataProvider
The CdsEntityDataProvider data provider class.
Definition: CdsEntityDataProvider.qc.dox.h:46
CdsRestDataProvider::CdsEntityDataProvider::constructor
constructor(CdsRestClient rest, string name, hash< auto > meta)
Creates the object from the arguments.
CdsRestDataProvider::CdsEntityDataProvider::getName
string getName()
Returns the data provider name.
CdsRestDataProvider::CdsEntityDataProvider::updateSingleRecord
updateSingleRecord(string id, hash< auto > set)
updates a single record
CdsRestDataProvider::CdsEntityDataProvider::getStaticInfoImpl
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
CdsRestDataProvider::CdsEntityDataProvider::createRecordImpl
*hash< auto > createRecordImpl(hash< auto > rec, *hash< auto > create_options)
Creates the given record to the data provider.
CdsRestDataProvider::CdsEntityDataProvider::updateRecordsImpl
int updateRecordsImpl(hash< auto > set, hash< auto > where_cond, *hash< auto > search_options)
Updates zero or more records matching the search options.
CdsRestDataProvider::CdsEntityDataProvider::searchRecordsImpl
private DataProvider::AbstractDataProviderRecordIterator searchRecordsImpl(*hash< auto > where_cond, *hash< auto > search_options)
Returns an iterator for zero or more records matching the search options.
Definition: CdsEntityDataProvider.qc.dox.h:83
CdsRestDataProvider::CdsEntityDataProvider::name
string name
current object name
Definition: CdsEntityDataProvider.qc.dox.h:53
CdsRestDataProvider::CdsEntityDataProvider::record_info
hash< CdsRestRecordInfo > record_info()
Record info for the entity.
CdsRestDataProvider::CdsEntityDataProvider::upsertRecordImpl
string upsertRecordImpl(hash< auto > rec, *hash< auto > upsert_options)
Upserts the given record to the data provider.
CdsRestDataProvider::CdsEntityDataProvider::meta
hash< auto > meta
metadata description
Definition: CdsEntityDataProvider.qc.dox.h:56
CdsRestDataProvider::CdsEntityDataProvider::getRecordInfoIntern
getRecordInfoIntern()
Retrieves the record type.
CdsRestDataProvider::CdsEntityDataProvider::deleteRecordsImpl
int deleteRecordsImpl(*hash< auto > where_cond, *hash< auto > search_options)
Deletes zero or more records.
CdsRestDataProvider::CdsEntityDataProvider::rest
CdsRestClient::CdsRestClient rest
The REST client object for API calls.
Definition: CdsEntityDataProvider.qc.dox.h:50
CdsRestDataProvider::CdsEntityDataProvider::deleteSingleRecord
deleteSingleRecord(string id)
deletes a single record
CdsRestDataProvider::CdsEntityDataProvider::setEntitySetName
setEntitySetName()
Determine the entity set name for the entity.
CdsRestDataProvider::CdsRestRecordIterator
Defines the record iterator class for Table-based iterators.
Definition: CdsRestRecordIterator.qc.dox.h:28
CdsRestDataProvider
Qore CdsRestDataProvider module definition.
Definition: CdsEntityDataProvider.qc.dox.h:26
CdsRestDataProvider::CdsRestRecordInfo
hashdecl CdsRestRecordInfo
contains Cds object record information
Definition: CdsEntityDataProvider.qc.dox.h:28