EntityT
- The generic entity type for which request builders can be instantiated.@Beta
public interface NavigableEntitySingle<EntityT extends VdmEntity<EntityT>>
Modifier and Type | Method and Description |
---|---|
<ResultT> CollectionValueActionRequestBuilder<ResultT> |
applyAction(BoundAction.SingleToCollection<EntityT,ResultT> action)
Apply a bound action returning a collection of elements to the current element.
|
<ResultT> SingleValueActionRequestBuilder<ResultT> |
applyAction(BoundAction.SingleToSingle<EntityT,ResultT> action)
Apply a bound action returning a single or no object to the current element.
|
<ResultT> CollectionValueFunctionRequestBuilder<ResultT> |
applyFunction(BoundFunction.SingleToCollection<EntityT,ResultT> function)
Apply a bound function returning a collection of objects to the current element.
|
<ResultT> SingleValueFunctionRequestBuilder<ResultT> |
applyFunction(BoundFunction.SingleToSingle<EntityT,ResultT> function)
Apply a bound function returning a single object to the current element.
|
DeleteRequestBuilder<EntityT> |
delete()
Deletes the current entity in the OData service.
|
GetByKeyRequestBuilder<EntityT> |
get()
Fetch the current entity.
|
<NavigationT extends VdmEntity<NavigationT>> |
navigateTo(NavigationProperty.Collection<EntityT,NavigationT> property)
Navigate to a specific navigation property of current entity type.
|
<NavigationT extends VdmEntity<NavigationT>> |
navigateTo(NavigationProperty.Single<EntityT,NavigationT> property)
Navigate to a specific navigation property of current entity type.
|
UpdateRequestBuilder<EntityT> |
update(EntityT item)
Update an existing entity and save it to the OData service.
|
<ResultT extends VdmEntity<ResultT>> |
withFunction(BoundFunction.SingleToCollectionEntity.Composable<EntityT,ResultT> function)
Use a composable function as a path element in an OData request.
|
<ResultT extends VdmEntity<ResultT>> |
withFunction(BoundFunction.SingleToSingleEntity.Composable<EntityT,ResultT> function)
Use a composable function as a path element in an OData request.
|
@Nonnull GetByKeyRequestBuilder<EntityT> get()
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()
execute
method on the request builder object.@Nonnull <NavigationT extends VdmEntity<NavigationT>> NavigableEntityCollection<NavigationT> navigateTo(@Nonnull NavigationProperty.Collection<EntityT,NavigationT> property)
NavigationT
- The generic type of target entity.property
- The navigation property (collection) to be used.@Nonnull <NavigationT extends VdmEntity<NavigationT>> NavigableEntitySingle<NavigationT> navigateTo(@Nonnull NavigationProperty.Single<EntityT,NavigationT> property)
NavigationT
- The generic type of target entity.property
- The navigation property (single) to be used.@Nonnull <ResultT> SingleValueFunctionRequestBuilder<ResultT> applyFunction(@Nonnull BoundFunction.SingleToSingle<EntityT,ResultT> function)
ResultT
- The return type of the function.function
- The function to apply. Functions are available on generated entity classes.@Nonnull <ResultT> CollectionValueFunctionRequestBuilder<ResultT> applyFunction(@Nonnull BoundFunction.SingleToCollection<EntityT,ResultT> function)
ResultT
- The type of items in the result of the function.function
- The function to apply. Functions are available on generated entity classes.@Nonnull <ResultT extends VdmEntity<ResultT>> NavigableEntitySingle<ResultT> withFunction(@Nonnull BoundFunction.SingleToSingleEntity.Composable<EntityT,ResultT> function)
applyFunction
but allows further path segments after the
function. Functions must be marked as composable
by the service.ResultT
- The return type of the function.function
- The composable functions.@Nonnull <ResultT extends VdmEntity<ResultT>> NavigableEntityCollection<ResultT> withFunction(@Nonnull BoundFunction.SingleToCollectionEntity.Composable<EntityT,ResultT> function)
applyFunction
but allows further path segments after the
function. Functions must be marked as composable
by the service.ResultT
- The return type of the function.function
- The composable functions.@Nonnull <ResultT> SingleValueActionRequestBuilder<ResultT> applyAction(@Nonnull BoundAction.SingleToSingle<EntityT,ResultT> action)
ResultT
- The return type of the action.action
- The action to apply. Actions are available on generated entity classes.@Nonnull <ResultT> CollectionValueActionRequestBuilder<ResultT> applyAction(@Nonnull BoundAction.SingleToCollection<EntityT,ResultT> action)
ResultT
- The return type of the action.action
- The action to apply. Actions are available on generated entity classes.Copyright © 2021 SAP SE. All rights reserved.