Qore CdsRestDataProvider Module Reference 2.0.0
Loading...
Searching...
No Matches
CdsEntityDataProvider.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
24
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
56 const ProviderInfo = ...;
57
58
59protected:
61 hash<CdsRestRecordInfo> record_info();
62
63public:
64
66 constructor(CdsRestClient rest, string name, hash<auto> meta) ;
67
68
70 string getName();
71
72
73protected:
74 *hash<string, DataProvider::AbstractDataField> getRecordTypeImpl(*hash<auto> search_options);
75public:
76
77
78protected:
79 checkRecord();
80public:
81
82
84
89protected:
90 DataProvider::AbstractDataProviderRecordIterator searchRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
91public:
92
93
95protected:
96 hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
97public:
98
99
101
109protected:
110 *hash<auto> createRecordImpl(hash<auto> rec, *hash<auto> create_options);
111public:
112
113
115
120protected:
121 string upsertRecordImpl(hash<auto> rec, *hash<auto> upsert_options);
122public:
123
124
126
132protected:
133 int updateRecordsImpl(hash<auto> set, hash<auto> where_cond, *hash<auto> search_options);
134public:
135
136
138
144protected:
145 int deleteRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
146public:
147
148
150protected:
151 updateSingleRecord(string id, hash<auto> set);
152public:
153
154
156protected:
158public:
159
160
162protected:
164public:
165
166
168protected:
170public:
171
172};
173}
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.
const ProviderInfo
Static provider info.
Definition CdsEntityDataProvider.qc.dox.h:56
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