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

public class Product extends VdmEntity<Product>
Product (Master Data)

Original entity name from the Odata EDM: Product

  • Field Details

    • ALL_FIELDS

      public static final ProductSelectable ALL_FIELDS
      Selector for all available fields of Product.
    • PRODUCT_ID

      public static final ProductField<String> PRODUCT_ID
      Use with available fluent helpers to apply the Product_ID field to query operations.
    • PRODUCT_TEXT

      public static final ProductField<String> PRODUCT_TEXT
      Use with available fluent helpers to apply the ProductText field to query operations.
  • Constructor Details

    • Product

      public Product()
    • Product

      public Product(@Nullable String product_ID, @Nullable String productText)
  • Method Details

    • getType

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

      public void setProduct_ID(@Nullable String product_ID)
      (Key Field) Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: Product_ID

      Parameters:
      product_ID - Product
    • setProductText

      public void setProductText(@Nullable String productText)
      Constraints: none

      Original property name from the Odata EDM: ProductText

      Parameters:
      productText - Product (Description)
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> ProductField<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> ProductField<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<Product>
    • setServicePathForFetch

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

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

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

      @Nonnull public static Product.ProductBuilder builder()
    • getProduct_ID

      @Nullable public String getProduct_ID()
      (Key Field) Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: Product_ID

      Returns:
      Product
    • getProductText

      @Nullable public String getProductText()
      Constraints: none

      Original property name from the Odata EDM: ProductText

      Returns:
      Product (Description)
    • toString

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

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

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

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