Qore CdsRestDataProvider Module Reference 1.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
32 #! The original field type names
33 hash<string, string> field_types;
34
35 #! Hash of date/time fields for this record
36 hash<string, bool> date_time_fields;
37
38 #! Key field, if any
39 string key;
40
41 #! Entity set name
42 string entity_set_name;
43}
44
47
48public:
51
53 string name;
54
56 hash<auto> meta;
57
58protected:
60 hash<CdsRestRecordInfo> record_info();
61
62public:
63
65 constructor(CdsRestClient rest, string name, hash<auto> meta);
66
67
69 string getName();
70
71
72protected:
73 *hash<string, DataProvider::AbstractDataField> getRecordTypeImpl(*hash<auto> search_options);
74public:
75
76
78
84 *hash<auto> search_options) {
85 return new CdsRestRecordIterator(rest, name, record_info, where_cond, search_options);
86 }
87
89protected:
90 hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
91public:
92
93
95
103protected:
104 *hash<auto> createRecordImpl(hash<auto> rec, *hash<auto> create_options);
105public:
106
107
109
114protected:
115 string upsertRecordImpl(hash<auto> rec, *hash<auto> upsert_options);
116public:
117
118
120
126protected:
127 int updateRecordsImpl(hash<auto> set, hash<auto> where_cond, *hash<auto> search_options);
128public:
129
130
132
138protected:
139 int deleteRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
140public:
141
142
144protected:
145 updateSingleRecord(string id, hash<auto> set);
146public:
147
148
150protected:
152public:
153
154
156protected:
158public:
159
160
162protected:
164public:
165
166};
167};
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.
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
string name
current object name
Definition: CdsEntityDataProvider.qc.dox.h:53
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:56
getRecordInfoIntern()
Retrieves the record type.
int deleteRecordsImpl(*hash< auto > where_cond, *hash< auto > search_options)
Deletes zero or more records.
CdsRestClient::CdsRestClient rest
The REST client object for API calls.
Definition: CdsEntityDataProvider.qc.dox.h:50
deleteSingleRecord(string id)
deletes a single record
setEntitySetName()
Determine the entity set name for the entity.
Defines the record iterator class for Table-based iterators.
Definition: CdsRestRecordIterator.qc.dox.h:28
Qore CdsRestDataProvider module definition.
Definition: CdsEntityDataProvider.qc.dox.h:26
hashdecl CdsRestRecordInfo
contains Cds object record information
Definition: CdsEntityDataProvider.qc.dox.h:28