Qore CdsRestDataProvider Module Reference 2.0.0
Loading...
Searching...
No Matches
CdsEntityDataProvider.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
30 hash<string, AbstractDataField> record_type;
31
33 hash<string, string> field_types;
34
36 hash<string, bool> date_time_fields;
37
39 string key;
40
43}
44
47
48public:
50 string name;
51
53 hash<auto> meta;
54
55protected:
57 hash<CdsRestRecordInfo> record_info();
58
59public:
60
62 constructor(CdsRestClient rest, string name, hash<auto> meta) ;
63
64
66 string getName();
67
68
69protected:
70 *hash<string, DataProvider::AbstractDataField> getRecordTypeImpl(*hash<auto> search_options);
71public:
72
73
74protected:
75 checkRecord();
76public:
77
78
80
85protected:
86 DataProvider::AbstractDataProviderRecordIterator searchRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
87public:
88
89
91protected:
92 hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
93public:
94
95
97
105protected:
106 *hash<auto> createRecordImpl(hash<auto> rec, *hash<auto> create_options);
107public:
108
109
111
116protected:
117 string upsertRecordImpl(hash<auto> rec, *hash<auto> upsert_options);
118public:
119
120
122
128protected:
129 int updateRecordsImpl(hash<auto> set, hash<auto> where_cond, *hash<auto> search_options);
130public:
131
132
134
140protected:
141 int deleteRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
142public:
143
144
146protected:
147 updateSingleRecord(string id, hash<auto> set);
148public:
149
150
152protected:
154public:
155
156
158protected:
160public:
161
162
164protected:
166public:
167
168};
169}
The CdsEntityDataProvider data provider class.
Definition CdsEntityDataProvider.qc.dox.h:46
constructor(CdsRestClient rest, string name, hash< auto > meta)
Creates the object from the arguments.
string getName()
Returns the data provider name.
updateSingleRecord(string id, hash< auto > set)
updates a single record
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
*hash< auto > createRecordImpl(hash< auto > rec, *hash< auto > create_options)
Creates the given record to the data provider.
int updateRecordsImpl(hash< auto > set, hash< auto > where_cond, *hash< auto > search_options)
Updates zero or more records matching the search options.
DataProvider::AbstractDataProviderRecordIterator searchRecordsImpl(*hash< auto > where_cond, *hash< auto > search_options)
Returns an iterator for zero or more records matching the search options.
string name
current object name
Definition CdsEntityDataProvider.qc.dox.h:50
hash< CdsRestRecordInfo > record_info()
Record info for the entity.
string upsertRecordImpl(hash< auto > rec, *hash< auto > upsert_options)
Upserts the given record to the data provider.
hash< auto > meta
metadata description
Definition CdsEntityDataProvider.qc.dox.h:53
getRecordInfoIntern()
Retrieves the record type.
int deleteRecordsImpl(*hash< auto > where_cond, *hash< auto > search_options)
Deletes zero or more records.
deleteSingleRecord(string id)
deletes a single record
setEntitySetName()
Determine the entity set name for the entity.
The CdsRest data provider class.
Definition CdsRestDataProviderBase.qc.dox.h:28
CdsRestClient::CdsRestClient rest
The REST client object for API calls.
Definition CdsRestDataProviderBase.qc.dox.h:45
Qore CdsRestDataProvider module definition.
Definition CdsEntityDataProvider.qc.dox.h:26
hash< string, string > field_types
The original field type names.
Definition CdsEntityDataProvider.qc.dox.h:33
string key
Key field, if any.
Definition CdsEntityDataProvider.qc.dox.h:39
string entity_set_name
Entity set name.
Definition CdsEntityDataProvider.qc.dox.h:42
hashdecl CdsRestRecordInfo
contains Cds object record information
Definition CdsEntityDataProvider.qc.dox.h:28
hash< string, bool > date_time_fields
Hash of date/time fields for this record.
Definition CdsEntityDataProvider.qc.dox.h:36