Class SAP__UnitOfMeasure
java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<SAP__UnitOfMeasure>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.trialbalance.SAP__UnitOfMeasure
Original entity name from the Odata EDM: SAP__UnitOfMeasure
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SAP__UnitOfMeasureSelectableSelector for all available fields of SAP__UnitOfMeasure.static final SAP__UnitOfMeasureField<Short>Use with available fluent helpers to apply the DecimalPlaces field to query operations.static final SAP__UnitOfMeasureField<String>Use with available fluent helpers to apply the ExternalCode field to query operations.static final SAP__UnitOfMeasureField<String>Use with available fluent helpers to apply the ISOCode field to query operations.static final SAP__UnitOfMeasureField<String>Use with available fluent helpers to apply the Text field to query operations.static final SAP__UnitOfMeasureField<String>Use with available fluent helpers to apply the UnitCode field to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanstatic <T,DomainT>
SAP__UnitOfMeasureField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> SAP__UnitOfMeasureField<T>Use with available fluent helpers to apply an extension field to query operations.protected voidConstraints: noneprotected Stringprotected StringConstraints: Not nullable, Maximum length: 3Constraints: Not nullable, Maximum length: 3getKey()getText()Constraints: Not nullable, Maximum length: 30getType()(Key Field) Constraints: Not nullable, Maximum length: 3inthashCode()voidsetDecimalPlaces(Short decimalPlaces) Constraints: nonevoidsetExternalCode(String externalCode) Constraints: Not nullable, Maximum length: 3voidsetISOCode(String iSOCode) Constraints: Not nullable, Maximum length: 3protected voidsetServicePathForFetch(String servicePathForFetch) voidConstraints: Not nullable, Maximum length: 30voidsetUnitCode(String unitCode) (Key Field) Constraints: Not nullable, Maximum length: 3toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity
fetchFieldAsList, fetchFieldAsSingle, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields, toMapOfNavigationProperties
-
Field Details
-
ALL_FIELDS
Selector for all available fields of SAP__UnitOfMeasure. -
UNIT_CODE
Use with available fluent helpers to apply the UnitCode field to query operations. -
ISO_CODE
Use with available fluent helpers to apply the ISOCode field to query operations. -
EXTERNAL_CODE
Use with available fluent helpers to apply the ExternalCode field to query operations. -
TEXT
Use with available fluent helpers to apply the Text field to query operations. -
DECIMAL_PLACES
Use with available fluent helpers to apply the DecimalPlaces field to query operations.
-
-
Constructor Details
-
SAP__UnitOfMeasure
public SAP__UnitOfMeasure() -
SAP__UnitOfMeasure
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<SAP__UnitOfMeasure>
-
setUnitCode
(Key Field) Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: UnitCode
- Parameters:
unitCode- Internal UoM
-
setISOCode
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: ISOCode
- Parameters:
iSOCode- ISO Code
-
setExternalCode
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: ExternalCode
- Parameters:
externalCode- Commercial
-
setText
Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: Text
- Parameters:
text- Meas. Unit Text
-
setDecimalPlaces
Constraints: noneOriginal property name from the Odata EDM: DecimalPlaces
- Parameters:
decimalPlaces- Decimal Places
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<SAP__UnitOfMeasure>
-
getKey
- Overrides:
getKeyin classVdmObject<SAP__UnitOfMeasure>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<SAP__UnitOfMeasure>
-
fromMap
- Overrides:
fromMapin classVdmObject<SAP__UnitOfMeasure>
-
field
@Nonnull public static <T> SAP__UnitOfMeasureField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType) Use with available fluent helpers to apply an extension field to query operations.- Type Parameters:
T- The type of the extension field when performing value comparisons.- Parameters:
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.- Returns:
- A representation of an extension field from this entity.
-
field
@Nonnull public static <T,DomainT> SAP__UnitOfMeasureField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.- Type Parameters:
T- The type of the extension field when performing value comparisons.DomainT- The type of the extension field as returned by the OData service.- Parameters:
typeConverter- A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the fieldfieldName- The name of the extension field as returned by the OData service.- Returns:
- A representation of an extension field from this entity, holding a reference to the given TypeConverter.
-
getDestinationForFetch
- Overrides:
getDestinationForFetchin classVdmEntity<SAP__UnitOfMeasure>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<SAP__UnitOfMeasure>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<SAP__UnitOfMeasure>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<SAP__UnitOfMeasure>
-
builder
-
getUnitCode
(Key Field) Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: UnitCode
- Returns:
- Internal UoM
-
getISOCode
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: ISOCode
- Returns:
- ISO Code
-
getExternalCode
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: ExternalCode
- Returns:
- Commercial
-
getText
Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: Text
- Returns:
- Meas. Unit Text
-
getDecimalPlaces
Constraints: noneOriginal property name from the Odata EDM: DecimalPlaces
- Returns:
- Decimal Places
-
toString
- Overrides:
toStringin classVdmObject<SAP__UnitOfMeasure>
-
equals
- Overrides:
equalsin classVdmEntity<SAP__UnitOfMeasure>
-
canEqual
- Overrides:
canEqualin classVdmEntity<SAP__UnitOfMeasure>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<SAP__UnitOfMeasure>
-