Modifier and Type | Class and Description |
---|---|
static class |
BaseUnit.BaseUnitBuilder
Helper class to allow for fluent creation of BaseUnit instances.
|
Modifier and Type | Field and Description |
---|---|
static BaseUnitSelectable |
ALL_FIELDS
Selector for all available fields of BaseUnit.
|
static BaseUnitLink<BaseUnitText> |
TO_CNSLDTN_BASE_UNIT_T
Use with available fluent helpers to apply the to_CnsldtnBaseUnitT navigation property to query
operations.
|
static BaseUnitField<String> |
UNIT_OF_MEASURE
Use with available fluent helpers to apply the UnitOfMeasure field to query operations.
|
static BaseUnitField<Short> |
UNIT_OF_MEASURE_DSP_NMBR_OF_DCMLS
Use with available fluent helpers to apply the UnitOfMeasureDspNmbrOfDcmls field to query operations.
|
static BaseUnitField<String> |
UNIT_OF_MEASURE_ISO_CODE
Use with available fluent helpers to apply the UnitOfMeasureISOCode field to query operations.
|
static BaseUnitField<Short> |
UNIT_OF_MEASURE_NUMBER_OF_DECIMALS
Use with available fluent helpers to apply the UnitOfMeasureNumberOfDecimals field to query operations.
|
static BaseUnitField<String> |
UNIT_OF_MEASURE_TEXT
Use with available fluent helpers to apply the UnitOfMeasure_Text field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
BaseUnit() |
BaseUnit(String unitOfMeasure,
String unitOfMeasure_Text,
String unitOfMeasureISOCode,
Short unitOfMeasureNumberOfDecimals,
Short unitOfMeasureDspNmbrOfDcmls,
List<BaseUnitText> toCnsldtnBaseUnitT) |
Modifier and Type | Method and Description |
---|---|
void |
addCnsldtnBaseUnitT(BaseUnitText... entity)
Adds elements to the list of associated BaseUnitText entities.
|
void |
attachToService(String servicePath,
HttpDestinationProperties destination)
Sets the service path and destination for the fetch commands of this entity.
|
static BaseUnit.BaseUnitBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<BaseUnitText> |
fetchCnsldtnBaseUnitT()
Fetches the BaseUnitText entities (one to many) associated with this entity.
|
static <T> BaseUnitField<T> |
field(String fieldName,
Class<T> fieldType)
Use with available fluent helpers to apply an extension field to query operations.
|
static <T,DomainT> |
field(String fieldName,
TypeConverter<T,DomainT> typeConverter)
Use with available fluent helpers to apply an extension field to query operations.
|
protected void |
fromMap(Map<String,Object> inputValues) |
io.vavr.control.Option<List<BaseUnitText>> |
getCnsldtnBaseUnitTIfPresent()
Retrieval of associated BaseUnitText entities (one to many).
|
List<BaseUnitText> |
getCnsldtnBaseUnitTOrFetch()
Retrieval of associated BaseUnitText entities (one to many).
|
protected String |
getDefaultServicePath() |
HttpDestinationProperties |
getDestinationForFetch()
Convienence field for reusing the same destination with multiple queries (e.g.
|
protected String |
getEntityCollection() |
protected Map<String,Object> |
getKey() |
Class<BaseUnit> |
getType() |
String |
getUnitOfMeasure_Text()
Constraints: Not nullable, Maximum length: 10
|
String |
getUnitOfMeasure()
(Key Field) Constraints: Not nullable, Maximum length: 3
|
Short |
getUnitOfMeasureDspNmbrOfDcmls()
Constraints: none
|
String |
getUnitOfMeasureISOCode()
Constraints: Not nullable, Maximum length: 3
|
Short |
getUnitOfMeasureNumberOfDecimals()
Constraints: none
|
int |
hashCode() |
void |
setCnsldtnBaseUnitT(List<BaseUnitText> value)
Overwrites the list of associated BaseUnitText entities for the loaded navigation property
to_CnsldtnBaseUnitT.
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setUnitOfMeasure_Text(String unitOfMeasure_Text)
Constraints: Not nullable, Maximum length: 10
|
void |
setUnitOfMeasure(String unitOfMeasure)
(Key Field) Constraints: Not nullable, Maximum length: 3
|
void |
setUnitOfMeasureDspNmbrOfDcmls(Short unitOfMeasureDspNmbrOfDcmls)
Constraints: none
|
void |
setUnitOfMeasureISOCode(String unitOfMeasureISOCode)
Constraints: Not nullable, Maximum length: 3
|
void |
setUnitOfMeasureNumberOfDecimals(Short unitOfMeasureNumberOfDecimals)
Constraints: none
|
protected Map<String,Object> |
toMapOfFields() |
protected Map<String,Object> |
toMapOfNavigationProperties() |
String |
toString() |
getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
public static final BaseUnitSelectable ALL_FIELDS
public static final BaseUnitField<String> UNIT_OF_MEASURE
public static final BaseUnitField<String> UNIT_OF_MEASURE_TEXT
public static final BaseUnitField<String> UNIT_OF_MEASURE_ISO_CODE
public static final BaseUnitField<Short> UNIT_OF_MEASURE_NUMBER_OF_DECIMALS
public static final BaseUnitField<Short> UNIT_OF_MEASURE_DSP_NMBR_OF_DCMLS
public static final BaseUnitLink<BaseUnitText> TO_CNSLDTN_BASE_UNIT_T
public void setUnitOfMeasure(@Nullable String unitOfMeasure)
Original property name from the Odata EDM: UnitOfMeasure
This format is used for internal processing.The internal format is automatically replaced by either the external commercial (three-character) or technical (six-character) format before output to the screen.
unitOfMeasure
- Internal, language-independent, measurement unit format.public void setUnitOfMeasure_Text(@Nullable String unitOfMeasure_Text)
Original property name from the Odata EDM: UnitOfMeasure_Text
unitOfMeasure_Text
- Unit of measure namepublic void setUnitOfMeasureISOCode(@Nullable String unitOfMeasureISOCode)
Original property name from the Odata EDM: UnitOfMeasureISOCode
The ISO code is important for EDI. It is used to convert the internal SAP measurement units into standard measurement units. Data exchange via EDI requires internal measurement units to be converted into standard measurement units.A list of the current internationally agreed ISO codes can be ordered from the UN commission responsible (WP.4 Trade Facilitation Recommendations, Recommendation 20):UN Economic Commission for EuropeInformation OfficePalais des Nations1211 GenevaSwitzerlande-mail: info.ece@unece.orgor viewed directly on the Internet:http://www.unece.org/cefact/codesfortrade/codes_index.htmFor more information, see SAP Note 69063.
unitOfMeasureISOCode
- ISO code for measurement units. An ISO code can be assigned to several internal measurement units of a
dimension.public void setUnitOfMeasureNumberOfDecimals(@Nullable Short unitOfMeasureNumberOfDecimals)
Original property name from the Odata EDM: UnitOfMeasureNumberOfDecimals
unitOfMeasureNumberOfDecimals
- Specifies the number of decimal places to which this measurement unit should be rounded.public void setUnitOfMeasureDspNmbrOfDcmls(@Nullable Short unitOfMeasureDspNmbrOfDcmls)
Original property name from the Odata EDM: UnitOfMeasureDspNmbrOfDcmls
unitOfMeasureDspNmbrOfDcmls
- This parameter determines the number of decimal places with which this measurement unit is displayed.protected String getEntityCollection()
getEntityCollection
in class VdmEntity<BaseUnit>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<BaseUnit>
@Nonnull public static <T> BaseUnitField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
T
- The type of the extension field when performing value comparisons.fieldName
- The name of the extension field as returned by the OData service.fieldType
- The Java type to use for the extension field when performing value comparisons.@Nonnull public static <T,DomainT> BaseUnitField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
T
- The type of the extension field when performing value comparisons.DomainT
- The type of the extension field as returned by the OData service.typeConverter
- A TypeConverterfieldName
- The name of the extension field as returned by the OData service.@Nullable public HttpDestinationProperties getDestinationForFetch()
VdmEntity
getDestinationForFetch
in class VdmEntity<BaseUnit>
protected void setServicePathForFetch(@Nullable String servicePathForFetch)
VdmEntity
Note: Use with caution, as this can easily break the fetch call on this entity. See the interface of the corresponding service for the default service path.
setServicePathForFetch
in class VdmEntity<BaseUnit>
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
VdmEntity
Note: Use with caution, as this can easily break the fetch calls on this entity. See the interface of the corresponding service for the default service path.
attachToService
in class VdmEntity<BaseUnit>
servicePath
- Optional parameter. New service path to apply to this entity and any associated entities that were
previously fetched. If a null value is provided and the service path has never been set, then the
service path will be set to the default defined in the corresponding service interface.destination
- New destination to apply to this entity and any associated entities that were previously fetched.protected String getDefaultServicePath()
getDefaultServicePath
in class VdmEntity<BaseUnit>
@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<BaseUnit>
@Nonnull public List<BaseUnitText> fetchCnsldtnBaseUnitT() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
com.sap.cloud.sdk.odatav2.connectivity.ODataException
- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and
therefore has no ERP configuration context assigned. An entity is managed if it has been either
retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or
UPDATE call.@Nonnull public List<BaseUnitText> getCnsldtnBaseUnitTOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_CnsldtnBaseUnitT of a queried BaseUnit is operated lazily, an ODataException can be thrown in case of an OData query error.
Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.
com.sap.cloud.sdk.odatav2.connectivity.ODataException
- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and
therefore has no ERP configuration context assigned. An entity is managed if it has been either
retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or
UPDATE call.@Nonnull public io.vavr.control.Option<List<BaseUnitText>> getCnsldtnBaseUnitTIfPresent()
If the navigation property for an entity BaseUnit has not been resolved yet, this method will not
query further information. Instead its Option
result state will be empty
.
Option
with result state
empty
is returned.public void setCnsldtnBaseUnitT(@Nonnull List<BaseUnitText> value)
If the navigation property to_CnsldtnBaseUnitT of a queried BaseUnit is operated lazily, an ODataException can be thrown in case of an OData query error.
Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.
value
- List of BaseUnitText entities.public void addCnsldtnBaseUnitT(BaseUnitText... entity)
If the navigation property to_CnsldtnBaseUnitT of a queried BaseUnit is operated lazily, an ODataException can be thrown in case of an OData query error.
Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.
entity
- Array of BaseUnitText entities.public static BaseUnit.BaseUnitBuilder builder()
@Nullable public String getUnitOfMeasure()
Original property name from the Odata EDM: UnitOfMeasure
This format is used for internal processing.The internal format is automatically replaced by either the external commercial (three-character) or technical (six-character) format before output to the screen.
@Nullable public String getUnitOfMeasure_Text()
Original property name from the Odata EDM: UnitOfMeasure_Text
@Nullable public String getUnitOfMeasureISOCode()
Original property name from the Odata EDM: UnitOfMeasureISOCode
The ISO code is important for EDI. It is used to convert the internal SAP measurement units into standard measurement units. Data exchange via EDI requires internal measurement units to be converted into standard measurement units.A list of the current internationally agreed ISO codes can be ordered from the UN commission responsible (WP.4 Trade Facilitation Recommendations, Recommendation 20):UN Economic Commission for EuropeInformation OfficePalais des Nations1211 GenevaSwitzerlande-mail: info.ece@unece.orgor viewed directly on the Internet:http://www.unece.org/cefact/codesfortrade/codes_index.htmFor more information, see SAP Note 69063.
@Nullable public Short getUnitOfMeasureNumberOfDecimals()
Original property name from the Odata EDM: UnitOfMeasureNumberOfDecimals
@Nullable public Short getUnitOfMeasureDspNmbrOfDcmls()
Original property name from the Odata EDM: UnitOfMeasureDspNmbrOfDcmls
Copyright © 2019 SAP SE. All rights reserved.