The CdsEntityDataProvider data provider class.
More...
The CdsEntityDataProvider data provider class.
◆ createRecordImpl()
*hash<auto> CdsRestDataProvider::CdsEntityDataProvider::createRecordImpl |
( |
hash< auto > |
rec, |
|
|
*hash< auto > |
create_options |
|
) |
| |
|
private |
Creates the given record to the data provider.
- Parameters
-
rec | a hash representing a single input record |
create_options | the create options after processing by validateCreateOptions() |
- Returns
- the data written to the data provider with the
"id"
field of the new record
- Exceptions
-
DUPLICATE-RECORD | this exception should be thrown if the provider fails due to an attempt to create a duplicate record |
◆ deleteRecordsImpl()
int CdsRestDataProvider::CdsEntityDataProvider::deleteRecordsImpl |
( |
*hash< auto > |
where_cond, |
|
|
*hash< auto > |
search_options |
|
) |
| |
|
private |
Deletes zero or more records.
- Parameters
-
where_cond | a hash for identifying the record(s) to be deleted |
search_options | the delete options after processing by validateSearchOptions() |
- Returns
- the number of records deleted
◆ searchRecordsImpl()
◆ updateRecordsImpl()
int CdsRestDataProvider::CdsEntityDataProvider::updateRecordsImpl |
( |
hash< auto > |
set, |
|
|
hash< auto > |
where_cond, |
|
|
*hash< auto > |
search_options |
|
) |
| |
|
private |
Updates zero or more records matching the search options.
- Parameters
-
set | the hash of field data to set |
where_cond | a hash for identifying the record(s) to be updated |
search_options | the update options after processing by validateSearchOptions() |
- Returns
- the number of records updated
◆ upsertRecordImpl()
string CdsRestDataProvider::CdsEntityDataProvider::upsertRecordImpl |
( |
hash< auto > |
rec, |
|
|
*hash< auto > |
upsert_options |
|
) |
| |
|
private |