Loading...
Searching...
No Matches
CdsEntityDataProvider.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace CdsRestDataProvider {
hashdecl CdsRestRecordInfo {
hash<string, AbstractDataField> record_type;
hash<string, string> field_types;
hash<string, bool> date_time_fields;
string key;
string entity_set_name;
}
class CdsEntityDataProvider : public CdsRestDataProviderBase {
public:
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:
protected:
checkRecord();
public:
protected:
DataProvider::AbstractDataProviderRecordIterator searchRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
public:
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
DataProvider::AbstractDataProviderRecordIterator searchRecordsImpl(*hash< auto > where_cond, *hash< auto > search_options)
Returns an iterator for zero or more records matching the search options.
CdsRestDataProvider::CdsEntityDataProvider::name
string name
current object name
Definition CdsEntityDataProvider.qc.dox.h:50
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:53
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::deleteSingleRecord
deleteSingleRecord(string id)
deletes a single record
CdsRestDataProvider::CdsEntityDataProvider::setEntitySetName
setEntitySetName()
Determine the entity set name for the entity.
CdsRestDataProvider::CdsRestDataProviderBase
The CdsRest data provider class.
Definition CdsRestDataProviderBase.qc.dox.h:28
CdsRestDataProvider::CdsRestDataProviderBase::rest
CdsRestClient::CdsRestClient rest
The REST client object for API calls.
Definition CdsRestDataProviderBase.qc.dox.h:45
CdsRestDataProvider
Qore CdsRestDataProvider module definition.
Definition CdsEntityDataProvider.qc.dox.h:26
CdsRestDataProvider::field_types
hash< string, string > field_types
The original field type names.
Definition CdsEntityDataProvider.qc.dox.h:33
CdsRestDataProvider::key
string key
Key field, if any.
Definition CdsEntityDataProvider.qc.dox.h:39
CdsRestDataProvider::entity_set_name
string entity_set_name
Entity set name.
Definition CdsEntityDataProvider.qc.dox.h:42
CdsRestDataProvider::CdsRestRecordInfo
hashdecl CdsRestRecordInfo
contains Cds object record information
Definition CdsEntityDataProvider.qc.dox.h:28
CdsRestDataProvider::date_time_fields
hash< string, bool > date_time_fields
Hash of date/time fields for this record.
Definition CdsEntityDataProvider.qc.dox.h:36