EntityT
- The generic entity type for which request builders can be instantiated.@Beta
public interface ServiceWithNavigableEntityCollection<EntityT extends VdmEntity<EntityT>>
Modifier and Type | Method and Description |
---|---|
CountRequestBuilder<EntityT> |
count()
Fetch the number of entries from the entity collection matching the filter and search expressions.
|
CreateRequestBuilder<EntityT> |
create(EntityT item)
Create a new entity and save it to the OData service.
|
DeleteRequestBuilder<EntityT> |
delete(EntityT item)
Deletes an existing entity in the OData service.
|
ServiceWithNavigableEntities.NavigableEntity<EntityT> |
forEntity(EntityT item)
Navigate to a specific entity of current property.
|
GetAllRequestBuilder<EntityT> |
getAll()
Fetch multiple entities.
|
GetByKeyRequestBuilder<EntityT> |
getByKey(EntityT item)
Fetch a single entity using the key fields of provided template entity.
|
UpdateRequestBuilder<EntityT> |
update(EntityT item)
Update an existing entity and save it to the OData service.
|
@Nonnull ServiceWithNavigableEntities.NavigableEntity<EntityT> forEntity(@Nonnull EntityT item)
item
- A template entity instance that contains all necessary key attributes.
Constraints: Not nullable
@Nonnull GetAllRequestBuilder<EntityT> getAll()
execute
method on the request builder object.@Nonnull GetByKeyRequestBuilder<EntityT> getByKey(@Nonnull EntityT item)
item
- A template entity instance that contains all necessary key attributes.
Constraints: Not nullable
execute
method on the request builder object.@Nonnull CreateRequestBuilder<EntityT> create(@Nonnull EntityT item)
item
- The entity object that will be created and saved.
Constraints: Not nullable
execute
method on the request builder object.@Nonnull UpdateRequestBuilder<EntityT> update(@Nonnull EntityT item)
item
- The entity object that will be updated.
Constraints: Not nullable
execute
method on the request builder object.@Nonnull DeleteRequestBuilder<EntityT> delete(@Nonnull EntityT item)
item
- The entity object that will be deleted.
Constraints: Not nullable
execute
method on the request builder object.@Nonnull CountRequestBuilder<EntityT> count()
execute
method on the request builder object.Copyright © 2020 SAP SE. All rights reserved.