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

public class WhseInbDelivItemSerialNumber extends VdmEntity<WhseInbDelivItemSerialNumber>
Whse Inb Delivery Item Serial Number

Original entity name from the Odata EDM: WhseInbDelivItemSerialNumberType

  • Field Details

  • Constructor Details

    • WhseInbDelivItemSerialNumber

      public WhseInbDelivItemSerialNumber()
    • WhseInbDelivItemSerialNumber

      public WhseInbDelivItemSerialNumber(@Nullable String inboundDelivery, @Nullable String inboundDeliveryItem, @Nullable String eWMSerialNumber, @Nullable WhseInboundDeliveryItem toWhseInboundDeliveryItem)
  • Method Details

    • getType

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

      public void setInboundDelivery(@Nullable String inboundDelivery)
      (Key Field) Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: InboundDelivery

      Parameters:
      inboundDelivery - Document Number
    • setInboundDeliveryItem

      public void setInboundDeliveryItem(@Nullable String inboundDeliveryItem)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: InboundDeliveryItem

      Parameters:
      inboundDeliveryItem - Item Number
    • setEWMSerialNumber

      public void setEWMSerialNumber(@Nullable String eWMSerialNumber)
      (Key Field) Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: EWMSerialNumber

      Parameters:
      eWMSerialNumber - The eWMSerialNumber to set.
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> WhseInbDelivItemSerialNumberField<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> WhseInbDelivItemSerialNumberField<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<WhseInbDelivItemSerialNumber>
    • setServicePathForFetch

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

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

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<WhseInbDelivItemSerialNumber>
    • toMapOfNavigationProperties

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<WhseInbDelivItemSerialNumber>
    • fetchWhseInboundDeliveryItem

      @Nullable public WhseInboundDeliveryItem fetchWhseInboundDeliveryItem()
      Fetches the WhseInboundDeliveryItem entity (one to one) associated with this entity. This corresponds to the OData navigation property to_WhseInboundDeliveryItem.

      Please note: This method will not cache or persist the query results.

      Returns:
      The single associated WhseInboundDeliveryItem entity, or null if an entity is not associated.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.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.
    • getWhseInboundDeliveryItemOrFetch

      @Nullable public WhseInboundDeliveryItem getWhseInboundDeliveryItemOrFetch()
      Retrieval of associated WhseInboundDeliveryItem entity (one to one). This corresponds to the OData navigation property to_WhseInboundDeliveryItem.

      If the navigation property to_WhseInboundDeliveryItem of a queried WhseInbDelivItemSerialNumber 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.

      Returns:
      List of associated WhseInboundDeliveryItem entity.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.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.
    • getWhseInboundDeliveryItemIfPresent

      @Nonnull public io.vavr.control.Option<WhseInboundDeliveryItem> getWhseInboundDeliveryItemIfPresent()
      Retrieval of associated WhseInboundDeliveryItem entity (one to one). This corresponds to the OData navigation property to_WhseInboundDeliveryItem.

      If the navigation property for an entity WhseInbDelivItemSerialNumber has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property to_WhseInboundDeliveryItem is already loaded, the result will contain the WhseInboundDeliveryItem entity. If not, an Option with result state empty is returned.
    • setWhseInboundDeliveryItem

      public void setWhseInboundDeliveryItem(WhseInboundDeliveryItem value)
      Overwrites the associated WhseInboundDeliveryItem entity for the loaded navigation property to_WhseInboundDeliveryItem.
      Parameters:
      value - New WhseInboundDeliveryItem entity.
    • builder

    • getInboundDelivery

      @Nullable public String getInboundDelivery()
      (Key Field) Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: InboundDelivery

      Returns:
      Document Number
    • getInboundDeliveryItem

      @Nullable public String getInboundDeliveryItem()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: InboundDeliveryItem

      Returns:
      Item Number
    • getEWMSerialNumber

      @Nullable public String getEWMSerialNumber()
      (Key Field) Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: EWMSerialNumber

      Returns:
      The eWMSerialNumber contained in this entity.
    • toString

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

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

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

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