@Beta
public interface OperationsOnEntityCollections
Modifier and Type | Method and Description |
---|---|
<EntityT extends VdmEntity<EntityT>,ResultT> |
applyAction(BoundAction.CollectionToCollection<EntityT,ResultT> action)
Apply a bound action returning a collection of objects to the current entity collection.
|
<EntityT extends VdmEntity<EntityT>,ResultT> |
applyAction(BoundAction.CollectionToSingle<EntityT,ResultT> action)
Apply a bound action returning a single or no object to an entity collection of the service.
|
<EntityT extends VdmEntity<EntityT>,ResultT> |
applyFunction(BoundFunction.CollectionToCollection<EntityT,ResultT> function)
Apply a bound function returning a collection of objects to the current element.
|
<EntityT extends VdmEntity<EntityT>,ResultT> |
applyFunction(BoundFunction.CollectionToSingle<EntityT,ResultT> function)
Apply a bound function returning a single object to the current element.
|
<EntityT extends VdmEntity<EntityT>> |
forEntity(EntityT entity)
Create a generic type-safe request using navigation properties on entity sets of the OData service.
|
<EntityT extends VdmEntity<EntityT>,ResultT extends VdmEntity<ResultT>> |
withFunction(BoundFunction.CollectionToCollectionEntity.Composable<EntityT,ResultT> function)
Use a composable function as a path element in an OData request.
|
<EntityT extends VdmEntity<EntityT>,ResultT extends VdmEntity<ResultT>> |
withFunction(BoundFunction.CollectionToSingleEntity.Composable<EntityT,ResultT> function)
Use a composable function as a path element in an OData request.
|
@Nonnull <EntityT extends VdmEntity<EntityT>> NavigableEntitySingle<EntityT> forEntity(@Nonnull EntityT entity)
EntityT
- The generic entity type for which navigation properties can be accessed.entity
- A template entity instance that contains all necessary key attributes.
Constraints: Not nullable
@Nonnull <EntityT extends VdmEntity<EntityT>,ResultT extends VdmEntity<ResultT>> NavigableEntitySingle<ResultT> withFunction(@Nonnull BoundFunction.CollectionToSingleEntity.Composable<EntityT,ResultT> function)
applyFunction
but allows further path segments after the
function. Functions must be marked as composable
by the service.EntityT
- The entity typeResultT
- The return type of the function.function
- The composable functions.@Nonnull <EntityT extends VdmEntity<EntityT>,ResultT extends VdmEntity<ResultT>> NavigableEntityCollection<ResultT> withFunction(@Nonnull BoundFunction.CollectionToCollectionEntity.Composable<EntityT,ResultT> function)
applyFunction
but allows further path segments after the
function. Functions must be marked as composable
by the service.EntityT
- The entity typeResultT
- The return type of the function.function
- The composable functions.@Nonnull <EntityT extends VdmEntity<EntityT>,ResultT> CollectionValueActionRequestBuilder<ResultT> applyAction(@Nonnull BoundAction.CollectionToCollection<EntityT,ResultT> action)
EntityT
- The entity typeResultT
- The return type of the action.action
- The action to apply. Actions are available on generated entity classes.@Nonnull <EntityT extends VdmEntity<EntityT>,ResultT> SingleValueActionRequestBuilder<ResultT> applyAction(@Nonnull BoundAction.CollectionToSingle<EntityT,ResultT> action)
EntityT
- The type this function is bound toResultT
- The return type of the action.action
- The action to apply. Actions are available on generated entity classes.@Nonnull <EntityT extends VdmEntity<EntityT>,ResultT> SingleValueFunctionRequestBuilder<ResultT> applyFunction(@Nonnull BoundFunction.CollectionToSingle<EntityT,ResultT> function)
EntityT
- The type this function is bound toResultT
- The return type of the function.function
- The function to apply. Functions are available on generated entity classes.@Nonnull <EntityT extends VdmEntity<EntityT>,ResultT> CollectionValueFunctionRequestBuilder<ResultT> applyFunction(@Nonnull BoundFunction.CollectionToCollection<EntityT,ResultT> function)
EntityT
- The type this function is bound toResultT
- The type of items in the result of the function.function
- The function to apply. Functions are available on generated entity classes.Copyright © 2021 SAP SE. All rights reserved.