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

public class HandlingUnitItem extends VdmEntity<HandlingUnitItem>
Handling Unit Item (Deprecated)

Original entity name from the Odata EDM: HandlingUnitItemType

  • Field Details

    • ALL_FIELDS

      public static final HandlingUnitItemSelectable ALL_FIELDS
      Selector for all available fields of HandlingUnitItem.
    • HANDLING_UNIT_EXTERNAL_ID

      public static final HandlingUnitItemField<String> HANDLING_UNIT_EXTERNAL_ID
      Use with available fluent helpers to apply the HandlingUnitExternalID field to query operations.
    • WAREHOUSE

      public static final HandlingUnitItemField<String> WAREHOUSE
      Use with available fluent helpers to apply the Warehouse field to query operations.
    • STOCK_ITEM_UUID

      public static final HandlingUnitItemField<UUID> STOCK_ITEM_UUID
      Use with available fluent helpers to apply the StockItemUUID field to query operations.
    • HANDLING_UNIT_ITEM

      public static final HandlingUnitItemField<String> HANDLING_UNIT_ITEM
      Use with available fluent helpers to apply the HandlingUnitItem field to query operations.
    • HANDLING_UNIT_REFERENCE_DOCUMENT

      public static final HandlingUnitItemField<String> HANDLING_UNIT_REFERENCE_DOCUMENT
      Use with available fluent helpers to apply the HandlingUnitReferenceDocument field to query operations.
    • HANDLING_UNIT_REF_DOCUMENT_ITEM

      public static final HandlingUnitItemField<String> HANDLING_UNIT_REF_DOCUMENT_ITEM
      Use with available fluent helpers to apply the HandlingUnitRefDocumentItem field to query operations.
    • HANDLING_UNIT_QUANTITY

      public static final HandlingUnitItemField<BigDecimal> HANDLING_UNIT_QUANTITY
      Use with available fluent helpers to apply the HandlingUnitQuantity field to query operations.
    • HANDLING_UNIT_QUANTITY_UNIT

      public static final HandlingUnitItemField<String> HANDLING_UNIT_QUANTITY_UNIT
      Use with available fluent helpers to apply the HandlingUnitQuantityUnit field to query operations.
    • HANDLING_UNIT_ALT_UNIT_OF_MEASURE

      public static final HandlingUnitItemField<String> HANDLING_UNIT_ALT_UNIT_OF_MEASURE
      Use with available fluent helpers to apply the HandlingUnitAltUnitOfMeasure field to query operations.
    • MATERIAL

      public static final HandlingUnitItemField<String> MATERIAL
      Use with available fluent helpers to apply the Material field to query operations.
    • SHELF_LIFE_EXPIRATION_DATE

      public static final HandlingUnitItemField<LocalDateTime> SHELF_LIFE_EXPIRATION_DATE
      Use with available fluent helpers to apply the ShelfLifeExpirationDate field to query operations.
    • HANDLING_UNIT_GOODS_RECEIPT_DATE

      public static final HandlingUnitItemField<LocalDateTime> HANDLING_UNIT_GOODS_RECEIPT_DATE
      Use with available fluent helpers to apply the HandlingUnitGoodsReceiptDate field to query operations.
    • TO_HANDLING_UNIT

      public static final HandlingUnitItemOneToOneLink<HandlingUnit> TO_HANDLING_UNIT
      Use with available fluent helpers to apply the to_HandlingUnit navigation property to query operations.
  • Constructor Details

    • HandlingUnitItem

      public HandlingUnitItem()
    • HandlingUnitItem

      public HandlingUnitItem(@Nullable String handlingUnitExternalID, @Nullable String warehouse, @Nullable UUID stockItemUUID, @Nullable String handlingUnitItem, @Nullable String handlingUnitReferenceDocument, @Nullable String handlingUnitRefDocumentItem, @Nullable BigDecimal handlingUnitQuantity, @Nullable String handlingUnitQuantityUnit, @Nullable String handlingUnitAltUnitOfMeasure, @Nullable String material, @Nullable LocalDateTime shelfLifeExpirationDate, @Nullable LocalDateTime handlingUnitGoodsReceiptDate, @Nullable HandlingUnit toHandlingUnit)
  • Method Details

    • getType

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

      public void setHandlingUnitExternalID(@Nullable String handlingUnitExternalID)
      (Key Field) Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: HandlingUnitExternalID

      Parameters:
      handlingUnitExternalID - External Handling Unit Identification
    • setWarehouse

      public void setWarehouse(@Nullable String warehouse)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Warehouse

      Parameters:
      warehouse - Warehouse Number/Warehouse Complex
    • setStockItemUUID

      public void setStockItemUUID(@Nullable UUID stockItemUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: StockItemUUID

      Parameters:
      stockItemUUID - GUID Stock Item
    • setHandlingUnitItem

      public void setHandlingUnitItem(@Nullable String handlingUnitItem)
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: HandlingUnitItem

      Parameters:
      handlingUnitItem - Handling Unit Item
    • setHandlingUnitReferenceDocument

      public void setHandlingUnitReferenceDocument(@Nullable String handlingUnitReferenceDocument)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: HandlingUnitReferenceDocument

      Parameters:
      handlingUnitReferenceDocument - Delivery
    • setHandlingUnitRefDocumentItem

      public void setHandlingUnitRefDocumentItem(@Nullable String handlingUnitRefDocumentItem)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: HandlingUnitRefDocumentItem

      Parameters:
      handlingUnitRefDocumentItem - The handlingUnitRefDocumentItem to set.
    • setHandlingUnitQuantity

      public void setHandlingUnitQuantity(@Nullable BigDecimal handlingUnitQuantity)
      Constraints: Not nullable, Precision: 15, Scale: 3

      Original property name from the Odata EDM: HandlingUnitQuantity

      Parameters:
      handlingUnitQuantity - Base Quantity Packed in the Handling Unit Item
    • setHandlingUnitQuantityUnit

      public void setHandlingUnitQuantityUnit(@Nullable String handlingUnitQuantityUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: HandlingUnitQuantityUnit

      Parameters:
      handlingUnitQuantityUnit - Base Unit of Measure of the Quantity to be Packed (VEMNG)
    • setHandlingUnitAltUnitOfMeasure

      public void setHandlingUnitAltUnitOfMeasure(@Nullable String handlingUnitAltUnitOfMeasure)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: HandlingUnitAltUnitOfMeasure

      Parameters:
      handlingUnitAltUnitOfMeasure - Alternative unit of measure for stock unit of measure
    • setMaterial

      public void setMaterial(@Nullable String material)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Material

      Parameters:
      material - Material Number
    • setShelfLifeExpirationDate

      public void setShelfLifeExpirationDate(@Nullable LocalDateTime shelfLifeExpirationDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ShelfLifeExpirationDate

      Parameters:
      shelfLifeExpirationDate - Shelf Life Expiration or Best-Before Date
    • setHandlingUnitGoodsReceiptDate

      public void setHandlingUnitGoodsReceiptDate(@Nullable LocalDateTime handlingUnitGoodsReceiptDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: HandlingUnitGoodsReceiptDate

      Parameters:
      handlingUnitGoodsReceiptDate - Date of Goods Receipt
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> HandlingUnitItemField<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> HandlingUnitItemField<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<HandlingUnitItem>
    • setServicePathForFetch

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

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

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

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

      @Nullable public HandlingUnit fetchHandlingUnit()
      Fetches the HandlingUnit entity (one to one) associated with this entity. This corresponds to the OData navigation property to_HandlingUnit.

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

      Returns:
      The single associated HandlingUnit 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.
    • getHandlingUnitOrFetch

      @Nullable public HandlingUnit getHandlingUnitOrFetch()
      Retrieval of associated HandlingUnit entity (one to one). This corresponds to the OData navigation property to_HandlingUnit.

      If the navigation property to_HandlingUnit of a queried HandlingUnitItem 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 HandlingUnit 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.
    • getHandlingUnitIfPresent

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

      If the navigation property for an entity HandlingUnitItem 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_HandlingUnit is already loaded, the result will contain the HandlingUnit entity. If not, an Option with result state empty is returned.
    • setHandlingUnit

      public void setHandlingUnit(HandlingUnit value)
      Overwrites the associated HandlingUnit entity for the loaded navigation property to_HandlingUnit.
      Parameters:
      value - New HandlingUnit entity.
    • builder

      @Nonnull public static HandlingUnitItem.HandlingUnitItemBuilder builder()
    • getHandlingUnitExternalID

      @Nullable public String getHandlingUnitExternalID()
      (Key Field) Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: HandlingUnitExternalID

      Returns:
      External Handling Unit Identification
    • getWarehouse

      @Nullable public String getWarehouse()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Warehouse

      Returns:
      Warehouse Number/Warehouse Complex
    • getStockItemUUID

      @Nullable public UUID getStockItemUUID()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: StockItemUUID

      Returns:
      GUID Stock Item
    • getHandlingUnitItem

      @Nullable public String getHandlingUnitItem()
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: HandlingUnitItem

      Returns:
      Handling Unit Item
    • getHandlingUnitReferenceDocument

      @Nullable public String getHandlingUnitReferenceDocument()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: HandlingUnitReferenceDocument

      Returns:
      Delivery
    • getHandlingUnitRefDocumentItem

      @Nullable public String getHandlingUnitRefDocumentItem()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: HandlingUnitRefDocumentItem

      Returns:
      The handlingUnitRefDocumentItem contained in this entity.
    • getHandlingUnitQuantity

      @Nullable public BigDecimal getHandlingUnitQuantity()
      Constraints: Not nullable, Precision: 15, Scale: 3

      Original property name from the Odata EDM: HandlingUnitQuantity

      Returns:
      Base Quantity Packed in the Handling Unit Item
    • getHandlingUnitQuantityUnit

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

      Original property name from the Odata EDM: HandlingUnitQuantityUnit

      Returns:
      Base Unit of Measure of the Quantity to be Packed (VEMNG)
    • getHandlingUnitAltUnitOfMeasure

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

      Original property name from the Odata EDM: HandlingUnitAltUnitOfMeasure

      Returns:
      Alternative unit of measure for stock unit of measure
    • getMaterial

      @Nullable public String getMaterial()
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Material

      Returns:
      Material Number
    • getShelfLifeExpirationDate

      @Nullable public LocalDateTime getShelfLifeExpirationDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ShelfLifeExpirationDate

      Returns:
      Shelf Life Expiration or Best-Before Date
    • getHandlingUnitGoodsReceiptDate

      @Nullable public LocalDateTime getHandlingUnitGoodsReceiptDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: HandlingUnitGoodsReceiptDate

      Returns:
      Date of Goods Receipt
    • toString

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

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

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

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