@Named(value="com.sap.cloud.sdk.s4hana.onpremise.v2020.datamodel.odata.services.DefaultAllergenService") public class DefaultAllergenService extends Object implements AllergenService
The service reads data from specifications with category ALLERGEN, and can retrieve allergen header data and description. You can use the Allergen Statement - Read API to read allergen exception values. .
Reference: SAP API Business Hub
OData Service: | OP_API_ALLERGEN_0001 |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
Business Object: | Allergen |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultAllergenService()
Creates a service using
AllergenService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultAllergenServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
AllergenFluentHelper |
getAllAllergen()
Fetch multiple
Allergen entities. |
AllergenDescriptionFluentHelper |
getAllAllergenDescription()
Fetch multiple
AllergenDescription entities. |
AllergenByKeyFluentHelper |
getAllergenByKey(String allergenInternalID)
Fetch a single
Allergen entity using key fields. |
AllergenDescriptionByKeyFluentHelper |
getAllergenDescriptionByKey(String allergenInternalID,
String allergenDescriptionLanguage)
Fetch a single
AllergenDescription entity using key fields. |
DefaultAllergenService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultAllergenService()
AllergenService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultAllergenService withServicePath(@Nonnull String servicePath)
AllergenService
withServicePath
in interface AllergenService
servicePath
- Service path that will override the default.@Nonnull public DefaultAllergenServiceBatch batch()
batch
in interface BatchService<AllergenServiceBatch>
@Nonnull public AllergenFluentHelper getAllAllergen()
AllergenService
Allergen
entities.getAllAllergen
in interface AllergenService
Allergen
entities. This fluent helper allows methods which modify the underlying query to be called before
executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public AllergenByKeyFluentHelper getAllergenByKey(String allergenInternalID)
AllergenService
Allergen
entity using key fields.getAllergenByKey
in interface AllergenService
allergenInternalID
- Allergen Internal ID
Constraints: Not nullable, Maximum length: 20
Allergen
entity using key fields. This fluent helper allows methods which modify the underlying query to be called
before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public AllergenDescriptionFluentHelper getAllAllergenDescription()
AllergenService
AllergenDescription
entities.getAllAllergenDescription
in interface AllergenService
AllergenDescription
entities. This fluent helper allows methods which modify the underlying query to be
called before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public AllergenDescriptionByKeyFluentHelper getAllergenDescriptionByKey(String allergenInternalID, String allergenDescriptionLanguage)
AllergenService
AllergenDescription
entity using key fields.getAllergenDescriptionByKey
in interface AllergenService
allergenInternalID
- Sequential Number of Data Record
Constraints: Not nullable, Maximum length: 20
allergenDescriptionLanguage
- Language
Constraints: Not nullable, Maximum length: 2
AllergenDescription
entity using key fields. This fluent helper allows methods which modify the
underlying query to be called before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.Copyright © 2021 SAP SE. All rights reserved.