Interface NavigableEntitySingle<EntityT extends VdmEntity<EntityT>>
- Type Parameters:
EntityT
- The generic entity type for which request builders can be instantiated.
public interface NavigableEntitySingle<EntityT extends VdmEntity<EntityT>>
Related interface to provide access to type-safe request builders for the generic entity type.
-
Method Summary
Modifier and TypeMethodDescription<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.delete()
Deletes the current entity in the OData service.get()
Fetch the current entity.<NavigationT extends VdmEntity<NavigationT>>
NavigableEntityCollection<NavigationT>navigateTo
(NavigationProperty.Collection<EntityT, NavigationT> property) Navigate to a specific navigation property of current entity type.<NavigationT extends VdmEntity<NavigationT>>
NavigableEntitySingle<NavigationT>navigateTo
(NavigationProperty.Single<EntityT, NavigationT> property) Navigate to a specific navigation property of current entity type.Update an existing entity and save it to the OData service.<ResultT extends VdmEntity<ResultT>>
NavigableEntityCollection<ResultT>withFunction
(BoundFunction.SingleToCollectionEntity.Composable<EntityT, ResultT> function) Use a composable function as a path element in an OData request.<ResultT extends VdmEntity<ResultT>>
NavigableEntitySingle<ResultT>withFunction
(BoundFunction.SingleToSingleEntity.Composable<EntityT, ResultT> function) Use a composable function as a path element in an OData request.
-
Method Details
-
get
Fetch the current entity.- Returns:
- A request builder to fetch multiple entities. This request builder allows methods which modify the
underlying query to be called before executing the query itself. To perform execution, call the
execute
method on the request builder object.
-
update
Update an existing entity and save it to the OData service.- Parameters:
item
- The entity object that will be updated.Constraints: Not nullable
- Returns:
- A request builder to update an existing entity. To perform execution, call the
execute
method on the request builder object.
-
delete
Deletes the current entity in the OData service.- Returns:
- A request builder to delete an existing entity. To perform execution, call the
execute
method on the request builder object.
-
applyFunction
@Nonnull <ResultT> SingleValueFunctionRequestBuilder<ResultT> applyFunction(@Nonnull BoundFunction.SingleToSingle<EntityT, ResultT> function) Apply a bound function returning a single object to the current element.- Type Parameters:
ResultT
- The return type of the function.- Parameters:
function
- The function to apply. Functions are available on generated entity classes.- Returns:
- A new request builder for the supplied function applied to the current element.
-
applyFunction
@Nonnull <ResultT> CollectionValueFunctionRequestBuilder<ResultT> applyFunction(@Nonnull BoundFunction.SingleToCollection<EntityT, ResultT> function) Apply a bound function returning a collection of objects to the current element.- Type Parameters:
ResultT
- The type of items in the result of the function.- Parameters:
function
- The function to apply. Functions are available on generated entity classes.- Returns:
- A new request builder for the supplied function applied to the current element.
-
withFunction
@Nonnull <ResultT extends VdmEntity<ResultT>> NavigableEntitySingle<ResultT> withFunction(@Nonnull BoundFunction.SingleToSingleEntity.Composable<EntityT, ResultT> function) Use a composable function as a path element in an OData request. Similar toapplyFunction
but allows further path segments after the function. Functions must be marked ascomposable
by the service.- Type Parameters:
ResultT
- The return type of the function.- Parameters:
function
- The composable functions.- Returns:
- A request builder that allows for adding further path segments.
-
withFunction
@Nonnull <ResultT extends VdmEntity<ResultT>> NavigableEntityCollection<ResultT> withFunction(@Nonnull BoundFunction.SingleToCollectionEntity.Composable<EntityT, ResultT> function) Use a composable function as a path element in an OData request. Similar toapplyFunction
but allows further path segments after the function. Functions must be marked ascomposable
by the service.- Type Parameters:
ResultT
- The return type of the function.- Parameters:
function
- The composable functions.- Returns:
- A request builder that allows for adding further path segments.
-
applyAction
@Nonnull <ResultT> SingleValueActionRequestBuilder<ResultT> applyAction(@Nonnull BoundAction.SingleToSingle<EntityT, ResultT> action) Apply a bound action returning a single or no object to the current element.- Type Parameters:
ResultT
- The return type of the action.- Parameters:
action
- The action to apply. Actions are available on generated entity classes.- Returns:
- A new request builder for the supplied action applied to the current element.
-
applyAction
@Nonnull <ResultT> CollectionValueActionRequestBuilder<ResultT> applyAction(@Nonnull BoundAction.SingleToCollection<EntityT, ResultT> action) Apply a bound action returning a collection of elements to the current element.- Type Parameters:
ResultT
- The return type of the action.- Parameters:
action
- The action to apply. Actions are available on generated entity classes.- Returns:
- A new request builder for the supplied action applied to the current element.
-