The ServiceNowTableDataProvider data provider class.
More...
Inherits DataProvider::AbstractDataProvider.
|
hash< auto > | access |
| Access description.
|
|
const | Expressions |
| Supported expressions.
|
|
hash< auto > | meta |
| Metadata description.
|
|
string | name |
| Current object name.
|
|
ServiceNowRestClient::ServiceNowRestClient | rest |
| The REST client object for API calls.
|
|
const | SysColumns |
| System columns.
|
|
◆ createRecordImpl()
__7_ hash<auto> ServiceNowRestDataProvider::ServiceNowTableDataProvider::createRecordImpl |
( |
hash< auto > |
rec, |
|
|
__7_ hash< auto > |
create_options |
|
) |
| |
|
protected |
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 ServiceNowRestDataProvider::ServiceNowTableDataProvider::deleteRecordsImpl |
( |
__7_ hash< DataProviderExpression > |
where_cond, |
|
|
__7_ hash< auto > |
search_options |
|
) |
| |
|
protected |
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()
private DataProvider::AbstractDataProviderRecordIterator ServiceNowRestDataProvider::ServiceNowTableDataProvider::searchRecordsImpl |
( |
__7_ hash< auto > |
where_cond, |
|
|
*hash< auto > |
search_options |
|
) |
| |
|
inline |
Returns an iterator for zero or more records matching the search options.
- Parameters
-
where_cond | the search criteria |
search_options | the search options after processing by validateSearchOptions() |
- See also
- requestSearchRecordsImpl()
◆ updateRecordsImpl()
private int ServiceNowRestDataProvider::ServiceNowTableDataProvider::updateRecordsImpl |
( |
hash< auto > |
set, |
|
|
hash< DataProviderExpression > |
where_cond, |
|
|
*hash< auto > |
search_options |
|
) |
| |
|
inline |
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