@Named(value="com.sap.cloud.sdk.s4hana.onpremise.v2020.datamodel.odata.services.DefaultDivisionService") public class DefaultDivisionService extends Object implements DivisionService
It contains division and division text nodes. This service is based on the OData protocol and can be consumed in Fiori apps and on other user interfaces..
Reference: SAP API Business Hub
OData Service: | OP_API_DIVISION_SRV_0001 |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
Business Object: | Division |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultDivisionService()
Creates a service using
DivisionService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultDivisionServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
DivisionFluentHelper |
getAllDivision()
Fetch multiple
Division entities. |
DivisionTextFluentHelper |
getAllDivisionText()
Fetch multiple
DivisionText entities. |
DivisionByKeyFluentHelper |
getDivisionByKey(String division)
Fetch a single
Division entity using key fields. |
DivisionTextByKeyFluentHelper |
getDivisionTextByKey(String division,
String language)
Fetch a single
DivisionText entity using key fields. |
DefaultDivisionService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultDivisionService()
DivisionService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultDivisionService withServicePath(@Nonnull String servicePath)
DivisionService
withServicePath
in interface DivisionService
servicePath
- Service path that will override the default.@Nonnull public DefaultDivisionServiceBatch batch()
batch
in interface BatchService<DivisionServiceBatch>
@Nonnull public DivisionFluentHelper getAllDivision()
DivisionService
Division
entities.getAllDivision
in interface DivisionService
Division
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 DivisionByKeyFluentHelper getDivisionByKey(String division)
DivisionService
Division
entity using key fields.getDivisionByKey
in interface DivisionService
division
- Division
Constraints: Not nullable, Maximum length: 2
Division
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 DivisionTextFluentHelper getAllDivisionText()
DivisionService
DivisionText
entities.getAllDivisionText
in interface DivisionService
DivisionText
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 DivisionTextByKeyFluentHelper getDivisionTextByKey(String division, String language)
DivisionService
DivisionText
entity using key fields.getDivisionTextByKey
in interface DivisionService
division
- Division
Constraints: Not nullable, Maximum length: 2
language
- Language Key
Constraints: Not nullable, Maximum length: 2
DivisionText
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.