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

public class SAP__UnitOfMeasure extends VdmEntity<SAP__UnitOfMeasure>

Original entity name from the Odata EDM: SAP__UnitOfMeasure

  • Field Details

    • ALL_FIELDS

      public static final SAP__UnitOfMeasureSelectable ALL_FIELDS
      Selector for all available fields of SAP__UnitOfMeasure.
    • UNIT_CODE

      public static final SAP__UnitOfMeasureField<String> UNIT_CODE
      Use with available fluent helpers to apply the UnitCode field to query operations.
    • ISO_CODE

      public static final SAP__UnitOfMeasureField<String> ISO_CODE
      Use with available fluent helpers to apply the ISOCode field to query operations.
    • EXTERNAL_CODE

      public static final SAP__UnitOfMeasureField<String> EXTERNAL_CODE
      Use with available fluent helpers to apply the ExternalCode field to query operations.
    • TEXT

      public static final SAP__UnitOfMeasureField<String> TEXT
      Use with available fluent helpers to apply the Text field to query operations.
    • DECIMAL_PLACES

      public static final SAP__UnitOfMeasureField<Short> DECIMAL_PLACES
      Use with available fluent helpers to apply the DecimalPlaces field to query operations.
  • Constructor Details

    • SAP__UnitOfMeasure

      public SAP__UnitOfMeasure()
    • SAP__UnitOfMeasure

      public SAP__UnitOfMeasure(@Nullable String unitCode, @Nullable String iSOCode, @Nullable String externalCode, @Nullable String text, @Nullable Short decimalPlaces)
  • Method Details

    • getType

      @Nonnull public Class<SAP__UnitOfMeasure> getType()
      Specified by:
      getType in class VdmObject<SAP__UnitOfMeasure>
    • setUnitCode

      public void setUnitCode(@Nullable String unitCode)
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: UnitCode

      Parameters:
      unitCode - Internal UoM
    • setISOCode

      public void setISOCode(@Nullable String iSOCode)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ISOCode

      Parameters:
      iSOCode - ISO Code
    • setExternalCode

      public void setExternalCode(@Nullable String externalCode)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ExternalCode

      Parameters:
      externalCode - Commercial
    • setText

      public void setText(@Nullable String text)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: Text

      Parameters:
      text - Meas. Unit Text
    • setDecimalPlaces

      public void setDecimalPlaces(@Nullable Short decimalPlaces)
      Constraints: none

      Original property name from the Odata EDM: DecimalPlaces

      Parameters:
      decimalPlaces - Decimal Places
    • getEntityCollection

      protected String getEntityCollection()
      Specified by:
      getEntityCollection in class VdmEntity<SAP__UnitOfMeasure>
    • getKey

      @Nonnull protected Map<String,Object> getKey()
      Overrides:
      getKey in class VdmObject<SAP__UnitOfMeasure>
    • toMapOfFields

      @Nonnull protected Map<String,Object> toMapOfFields()
      Overrides:
      toMapOfFields in class VdmObject<SAP__UnitOfMeasure>
    • fromMap

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<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 field
      fieldName - 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

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<SAP__UnitOfMeasure>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<SAP__UnitOfMeasure>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<SAP__UnitOfMeasure>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<SAP__UnitOfMeasure>
    • builder

      @Nonnull public static SAP__UnitOfMeasure.SAP__UnitOfMeasureBuilder builder()
    • getUnitCode

      @Nullable public String getUnitCode()
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: UnitCode

      Returns:
      Internal UoM
    • getISOCode

      @Nullable public String getISOCode()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ISOCode

      Returns:
      ISO Code
    • getExternalCode

      @Nullable public String getExternalCode()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ExternalCode

      Returns:
      Commercial
    • getText

      @Nullable public String getText()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: Text

      Returns:
      Meas. Unit Text
    • getDecimalPlaces

      @Nullable public Short getDecimalPlaces()
      Constraints: none

      Original property name from the Odata EDM: DecimalPlaces

      Returns:
      Decimal Places
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class VdmObject<SAP__UnitOfMeasure>
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class VdmEntity<SAP__UnitOfMeasure>
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Overrides:
      canEqual in class VdmEntity<SAP__UnitOfMeasure>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<SAP__UnitOfMeasure>