load Entity
See loadEntity_(EntityValue, DataQuery?, HttpHeaders, RequestOptions).
Parameters
entity
Entity parameter.
See loadEntity_(EntityValue, DataQuery?, HttpHeaders, RequestOptions).
Parameters
entity
Entity parameter.
query
Query parameter.
See loadEntity_(EntityValue, DataQuery?, HttpHeaders, RequestOptions).
Parameters
entity
Entity parameter.
query
Query parameter.
headers
Headers parameter.
open suspend fun loadEntity(entity: EntityValue, query: DataQuery?, headers: HttpHeaders, options: RequestOptions)
Reload an existing entity from the target system.
- Example using proxy classes:
open fun loadEntityExample(): kotlin.Unit { val service = this.service; val customer = Customer(); customer.customerID = "ALFKI"; service.loadEntity(customer); this.showCustomer(customer); }
- Example using dynamic API:
open fun loadEntityExample(): kotlin.Unit { val service = this.service; val customersEntitySet = service.getEntitySet("Customers"); val customerEntityType = customersEntitySet.entityType; val customerIDProperty = customerEntityType.getProperty("CustomerID"); val customer = EntityValue.ofType(customerEntityType); customerIDProperty.setString(customer, "ALFKI"); service.loadEntity(customer); this.showCustomer(customer); }
Parameters
entity
Previously loaded entity, whose properties will be modified to reflect the loaded state.
query
(nullable) Optional data query, to specify loading criteria (especially for navigation properties).
headers
Optional request-specific headers.
options
Optional request-specific options.