$darkmode
Qore CdsRestDataProvider Module Reference 1.0.0
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 
48 public:
50  string name;
51 
53  hash<auto> meta;
54 
55 protected:
57  hash<CdsRestRecordInfo> record_info();
58 
59 public:
60 
62  constructor(CdsRestClient rest, string name, hash<auto> meta) ;
63 
64 
66  string getName();
67 
68 
69 protected:
70  *hash<string, DataProvider::AbstractDataField> getRecordTypeImpl(*hash<auto> search_options);
71 public:
72 
73 
75 
80 protected:
81  DataProvider::AbstractDataProviderRecordIterator searchRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
82 public:
83 
84 
86 protected:
87  hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
88 public:
89 
90 
92 
100 protected:
101  *hash<auto> createRecordImpl(hash<auto> rec, *hash<auto> create_options);
102 public:
103 
104 
106 
111 protected:
112  string upsertRecordImpl(hash<auto> rec, *hash<auto> upsert_options);
113 public:
114 
115 
117 
123 protected:
124  int updateRecordsImpl(hash<auto> set, hash<auto> where_cond, *hash<auto> search_options);
125 public:
126 
127 
129 
135 protected:
136  int deleteRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
137 public:
138 
139 
141 protected:
142  updateSingleRecord(string id, hash<auto> set);
143 public:
144 
145 
147 protected:
148  deleteSingleRecord(string id);
149 public:
150 
151 
153 protected:
155 public:
156 
157 
159 protected:
161 public:
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< CdsRestRecordInfo > record_info()
Record info for the entity.
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
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.
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.
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