public class BOMComparisonFluentHelper extends FluentHelperFunction<BOMComparisonFluentHelper,ComparisonResult,List<ComparisonResult>>
Constructor and Description |
---|
BOMComparisonFluentHelper(String servicePath,
LocalDateTime bOMValidityDateSecondary,
String bOMVersionSecondary,
String bOMVariantSecondary,
String bOMVariantUsageSecondary,
String plantSecondary,
String materialSecondary,
String changeNumberPrimary,
LocalDateTime bOMValidityDatePrimary,
String bOMVersionPrimary,
String bOMVariantPrimary,
String bOMVariantUsagePrimary,
String plantPrimary,
String materialPrimary,
Boolean isBOMItemNumber,
Boolean isBOMItemDescription,
Boolean isBOMItemCategory,
String changeNumberSecondary,
Boolean isBOMItemQuantity)
Creates a fluent helper object that will execute the BOMComparison OData function import with the provided
parameters.
|
Modifier and Type | Method and Description |
---|---|
protected org.apache.http.client.methods.HttpUriRequest |
createRequest(URI uri)
Creates a request for this function based on the given
URI . |
List<ComparisonResult> |
execute(HttpDestinationProperties destination)
Deprecated.
Use the improved method
executeRequest(HttpDestinationProperties) instead. |
protected Class<ComparisonResult> |
getEntityClass()
Returns a class object of the type this fluent helper works with.
|
protected String |
getFunctionName()
The exact name of the function to be called on the OData Endpoint.
|
protected Map<String,Object> |
getParameters()
Getter for the map of parameters to be used in the function call.
|
protected com.google.gson.JsonElement |
refineJsonResponse(com.google.gson.JsonElement jsonElement)
Transform the JSON element from the response to extract a result entity.
|
executeMultiple, executeRequest, executeSingle, getJsonResponseObjectName, toRequest
and, cachingMetadata, getHeaders, getHeadersForRequestAndImplicitRequests, getHeadersForRequestOnly, getParametersForRequestOnly, getServicePath, getThis, getVersionIdentifier, isCachingMetadata, onRequestAndImplicitRequests, onRequestOnly, withHeader, withHeaders, withoutCachingMetadata, withQueryParameter
public BOMComparisonFluentHelper(@Nonnull String servicePath, @Nonnull LocalDateTime bOMValidityDateSecondary, @Nonnull String bOMVersionSecondary, @Nonnull String bOMVariantSecondary, @Nonnull String bOMVariantUsageSecondary, @Nonnull String plantSecondary, @Nonnull String materialSecondary, @Nonnull String changeNumberPrimary, @Nonnull LocalDateTime bOMValidityDatePrimary, @Nonnull String bOMVersionPrimary, @Nonnull String bOMVariantPrimary, @Nonnull String bOMVariantUsagePrimary, @Nonnull String plantPrimary, @Nonnull String materialPrimary, @Nonnull Boolean isBOMItemNumber, @Nonnull Boolean isBOMItemDescription, @Nonnull Boolean isBOMItemCategory, @Nonnull String changeNumberSecondary, @Nonnull Boolean isBOMItemQuantity)
execute
method on the fluent helper object.isBOMItemNumber
- Constraints: none
Original parameter name from the Odata EDM: IsBOMItemNumber
bOMVariantSecondary
- Constraints: none
Original parameter name from the Odata EDM: BOMVariantSecondary
isBOMItemDescription
- Constraints: none
Original parameter name from the Odata EDM: IsBOMItemDescription
changeNumberPrimary
- Constraints: none
Original parameter name from the Odata EDM: ChangeNumberPrimary
isBOMItemCategory
- Constraints: none
Original parameter name from the Odata EDM: IsBOMItemCategory
plantSecondary
- Constraints: none
Original parameter name from the Odata EDM: PlantSecondary
changeNumberSecondary
- Constraints: none
Original parameter name from the Odata EDM: ChangeNumberSecondary
bOMVersionSecondary
- Constraints: none
Original parameter name from the Odata EDM: BOMVersionSecondary
bOMVariantPrimary
- Constraints: none
Original parameter name from the Odata EDM: BOMVariantPrimary
isBOMItemQuantity
- Constraints: none
Original parameter name from the Odata EDM: IsBOMItemQuantity
servicePath
- Service path to be used to call the functions against.materialSecondary
- Constraints: none
Original parameter name from the Odata EDM: MaterialSecondary
bOMVariantUsagePrimary
- Constraints: none
Original parameter name from the Odata EDM: BOMVariantUsagePrimary
plantPrimary
- Constraints: none
Original parameter name from the Odata EDM: PlantPrimary
bOMValidityDatePrimary
- Constraints: Not nullable, Precision: 0
Original parameter name from the Odata EDM: BOMValidityDatePrimary
bOMVariantUsageSecondary
- Constraints: none
Original parameter name from the Odata EDM: BOMVariantUsageSecondary
bOMValidityDateSecondary
- Constraints: Not nullable, Precision: 0
Original parameter name from the Odata EDM: BOMValidityDateSecondary
bOMVersionPrimary
- Constraints: none
Original parameter name from the Odata EDM: BOMVersionPrimary
materialPrimary
- Constraints: none
Original parameter name from the Odata EDM: MaterialPrimary
@Nonnull protected Class<ComparisonResult> getEntityClass()
FluentHelperBasic
getEntityClass
in class FluentHelperBasic<BOMComparisonFluentHelper,ComparisonResult,List<ComparisonResult>>
@Nonnull protected String getFunctionName()
FluentHelperFunction
getFunctionName
in class FluentHelperFunction<BOMComparisonFluentHelper,ComparisonResult,List<ComparisonResult>>
@Nullable protected com.google.gson.JsonElement refineJsonResponse(@Nullable com.google.gson.JsonElement jsonElement)
FluentHelperFunction
refineJsonResponse
in class FluentHelperFunction<BOMComparisonFluentHelper,ComparisonResult,List<ComparisonResult>>
jsonElement
- The optional response JSON element@Nonnull protected Map<String,Object> getParameters()
FluentHelperFunction
The map maps the ODataName of a parameter to the corresponding value.
getParameters
in class FluentHelperFunction<BOMComparisonFluentHelper,ComparisonResult,List<ComparisonResult>>
@Nonnull protected org.apache.http.client.methods.HttpUriRequest createRequest(@Nonnull URI uri)
FluentHelperFunction
URI
.
Examples for such requests are HttpGet
and HttpPost
.
createRequest
in class FluentHelperFunction<BOMComparisonFluentHelper,ComparisonResult,List<ComparisonResult>>
uri
- The URI
the request should target.@Deprecated @Nonnull public List<ComparisonResult> execute(@Nonnull HttpDestinationProperties destination) throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
executeRequest(HttpDestinationProperties)
instead.execute
in class FluentHelperBasic<BOMComparisonFluentHelper,ComparisonResult,List<ComparisonResult>>
destination
- The destination to use for the request.com.sap.cloud.sdk.odatav2.connectivity.ODataException
- The exception occurred during request executionCopyright © 2021 SAP SE. All rights reserved.