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:
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
75
80protected:
81 DataProvider::AbstractDataProviderRecordIterator searchRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
82public:
83
84
86protected:
87 hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
88public:
89
90
92
100protected:
101 *hash<auto> createRecordImpl(hash<auto> rec, *hash<auto> create_options);
102public:
103
104
106
111protected:
112 string upsertRecordImpl(hash<auto> rec, *hash<auto> upsert_options);
113public:
114
115
117
123protected:
124 int updateRecordsImpl(hash<auto> set, hash<auto> where_cond, *hash<auto> search_options);
125public:
126
127
129
135protected:
136 int deleteRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
137public:
138
139
141protected:
142 updateSingleRecord(string id, hash<auto> set);
143public:
144
145
147protected:
149public:
150
151
153protected:
155public:
156
157
159protected:
161public:
162
163};
164};
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:33
Qore CdsRestDataProvider module definition.
Definition: CdsEntityDataProvider.qc.dox.h:26
hashdecl CdsRestRecordInfo
contains Cds object record information
Definition: CdsEntityDataProvider.qc.dox.h:28