public class DefaultBatchResponseResult extends Object implements BatchResponse
Modifier and Type | Method and Description |
---|---|
io.vavr.control.Try<BatchResponseChangeSet> |
get(int index)
Get the result for a single changeset.
|
<ResultT> List<ResultT> |
getReadResult(CollectionValuedFluentHelperFunction<?,ResultT,?> helper)
Convenience method to get the result for a function import request that returns a collection of primitive values
or entities on the OData batch response.
|
<EntityT extends VdmEntity<?>> |
getReadResult(FluentHelperByKey<?,EntityT,?> helper)
Convenience method to get the result for a read-by-key request on the OData batch response.
|
<EntityT extends VdmEntity<?>> |
getReadResult(FluentHelperRead<?,EntityT,?> helper)
Convenience method to get the result for a read request on the OData batch response.
|
<ResultT> ResultT |
getReadResult(SingleValuedFluentHelperFunction<?,ResultT,?> helper)
Convenience method to get the result for a function import request that returns a single primitive value or
entity on the OData batch response.
|
static DefaultBatchResponseResult |
of(ODataRequestResultMultipartGeneric response,
BatchFluentHelperBasic<?,?> initialRequest)
Static factory method to convert from generic response to typed response.
|
@Nonnull @Beta public static DefaultBatchResponseResult of(@Nonnull ODataRequestResultMultipartGeneric response, @Nonnull BatchFluentHelperBasic<?,?> initialRequest)
response
- The generic response that should be converted.initialRequest
- The initial BatchRequest@Nonnull public io.vavr.control.Try<BatchResponseChangeSet> get(int index)
BatchResponse
get
in interface BatchResponse
index
- The zero-based index of the selected changeset.@Nonnull public <EntityT extends VdmEntity<?>> List<EntityT> getReadResult(@Nonnull FluentHelperRead<?,EntityT,?> helper)
BatchResponse
getReadResult
in interface BatchResponse
EntityT
- The generic entity type.helper
- The original fluent helper instance that was used to create the request.@Nonnull public <EntityT extends VdmEntity<?>> EntityT getReadResult(@Nonnull FluentHelperByKey<?,EntityT,?> helper)
BatchResponse
getReadResult
in interface BatchResponse
EntityT
- The generic entity type.helper
- The original fluent helper instance that was used to create the request.@Nonnull public <ResultT> ResultT getReadResult(@Nonnull SingleValuedFluentHelperFunction<?,ResultT,?> helper)
BatchResponse
getReadResult
in interface BatchResponse
ResultT
- The result type of the function import requesthelper
- The original fluent helper instance that was used to create the request.@Nonnull public <ResultT> List<ResultT> getReadResult(@Nonnull CollectionValuedFluentHelperFunction<?,ResultT,?> helper)
BatchResponse
getReadResult
in interface BatchResponse
ResultT
- The result type of the function import requesthelper
- The original fluent helper instance that was used to create the request.Copyright © 2021 SAP SE. All rights reserved.