java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<SAP__Currency>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.trialbalance.SAP__Currency

public class SAP__Currency extends VdmEntity<SAP__Currency>

Original entity name from the Odata EDM: SAP__Currency

  • Field Details

    • ALL_FIELDS

      public static final SAP__CurrencySelectable ALL_FIELDS
      Selector for all available fields of SAP__Currency.
    • CURRENCY_CODE

      public static final SAP__CurrencyField<String> CURRENCY_CODE
      Use with available fluent helpers to apply the CurrencyCode field to query operations.
    • ISO_CODE

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

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

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

    • SAP__Currency

      public SAP__Currency()
    • SAP__Currency

      public SAP__Currency(@Nullable String currencyCode, @Nullable String iSOCode, @Nullable String text, @Nullable Short decimalPlaces)
  • Method Details

    • getType

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

      public void setCurrencyCode(@Nullable String currencyCode)
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: CurrencyCode

      Parameters:
      currencyCode - Currency
    • 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
    • setText

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

      Original property name from the Odata EDM: Text

      Parameters:
      text - Short Text
    • setDecimalPlaces

      public void setDecimalPlaces(@Nullable Short decimalPlaces)
      Constraints: Not nullable

      Original property name from the Odata EDM: DecimalPlaces

      Parameters:
      decimalPlaces - Decimals
    • getEntityCollection

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

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

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

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<SAP__Currency>
    • field

      @Nonnull public static <T> SAP__CurrencyField<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__CurrencyField<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__Currency>
    • setServicePathForFetch

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

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

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

      @Nonnull public static SAP__Currency.SAP__CurrencyBuilder builder()
    • getCurrencyCode

      @Nullable public String getCurrencyCode()
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: CurrencyCode

      Returns:
      Currency
    • getISOCode

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

      Original property name from the Odata EDM: ISOCode

      Returns:
      ISO Code
    • getText

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

      Original property name from the Odata EDM: Text

      Returns:
      Short Text
    • getDecimalPlaces

      @Nullable public Short getDecimalPlaces()
      Constraints: Not nullable

      Original property name from the Odata EDM: DecimalPlaces

      Returns:
      Decimals
    • toString

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

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

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

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