java.lang.Object
de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
de.hybris.platform.sap.sapordermgmtbol.transaction.item.businessobject.impl.SimpleItemImpl
All Implemented Interfaces:
BackendAware, BusinessObject, MessageListHolder, SimpleItem, Serializable, Cloneable, Comparable<SimpleItem>
Direct Known Subclasses:
ItemBaseImpl

public class SimpleItemImpl extends BusinessObjectBase implements SimpleItem
See Also:
  • Constructor Details

    • SimpleItemImpl

      public SimpleItemImpl()
  • Method Details

    • clone

      public Object clone() throws CloneNotSupportedException
      Description copied from class: BusinessObjectBase
      Makes a copy of the object. The MessageList is copied.
      Overrides:
      clone in class BusinessObjectBase
      Returns:
      a copy of object
      Throws:
      CloneNotSupportedException - CloneNotSupportedException
    • getProductId

      public String getProductId()
      Description copied from interface: SimpleItem
      Returns the product (name) of this item.
      Specified by:
      getProductId in interface SimpleItem
      Returns:
      product name
    • getProductGuid

      public TechKey getProductGuid()
      Get the technical key for the productId of this item.
      Specified by:
      getProductGuid in interface SimpleItem
      Returns:
      technical key for the productId
    • setProductId

      public void setProductId(String productId)
      Description copied from interface: SimpleItem
      Sets the product for this item.
      Specified by:
      setProductId in interface SimpleItem
      Parameters:
      productId - product name
    • setProductGuid

      public void setProductGuid(TechKey productGuid)
      Description copied from interface: SimpleItem
      Sets the product guid for this item.
      Specified by:
      setProductGuid in interface SimpleItem
      Parameters:
      productGuid - TechKey/guid of the product
    • isProductChanged

      public boolean isProductChanged()
      Description copied from interface: SimpleItem
      If product of the item changes (e.g. was a notebook and is now a monitor), we reuse the item but we need to know whether the product changed
      Specified by:
      isProductChanged in interface SimpleItem
      Returns:
      true if product was changed
    • setProductChanged

      public void setProductChanged(boolean productChanged)
      Description copied from interface: SimpleItem
      If product of the item changes (e.g. was a notebook and is now a monitor), we reuse the item but we need to know whether the product changed
      Specified by:
      setProductChanged in interface SimpleItem
      Parameters:
      productChanged - if true, we conside the item to be changted
    • getParentId

      public TechKey getParentId()
      Description copied from interface: SimpleItem
      Returns the TechKey (guid) of the parent item if this item is a sub item.
      If there is no parent item, null or TechKey.EMPTY_KEY is returned.
      Specified by:
      getParentId in interface SimpleItem
      Returns:
      TechKey of the parent item
    • setParentId

      public void setParentId(TechKey parentId)
      Description copied from interface: SimpleItem
      Sets parent Id for an item. For example for the sub item, free good item.
      Specified by:
      setParentId in interface SimpleItem
      Parameters:
      parentId - TechKey or null/TechKey.EMPTY_KEY
    • getDescription

      public String getDescription()
      Description copied from interface: SimpleItem
      Get descriptions on the item level.
      Specified by:
      getDescription in interface SimpleItem
      Returns:
      description
    • getQuantity

      public BigDecimal getQuantity()
      Description copied from interface: SimpleItem
      Returns the quantity of this item.
      Specified by:
      getQuantity in interface SimpleItem
      Returns:
      quantity
    • getLastQuantity

      public BigDecimal getLastQuantity()
      Description copied from interface: SimpleItem
      Returns the quantity of this item.
      Specified by:
      getLastQuantity in interface SimpleItem
      Returns:
      quantity
    • getUnit

      public String getUnit()
      Description copied from interface: SimpleItem
      Returns the UOM (Unit of Measure) of this item.
      This unit is not localised, e.g. ST
      Specified by:
      getUnit in interface SimpleItem
      Returns:
      UOM
    • setDescription

      public void setDescription(String description)
      Description copied from interface: SimpleItem
      Sets Description.
      Specified by:
      setDescription in interface SimpleItem
      Parameters:
      description - item description
    • setQuantity

      public void setQuantity(BigDecimal quantity)
      Description copied from interface: SimpleItem
      Sets an item quantity.
      Specified by:
      setQuantity in interface SimpleItem
      Parameters:
      quantity - value to set
    • setUnit

      public void setUnit(String unit)
      Description copied from interface: SimpleItem
      Set the unit (UOM) for this item.
      The value is not localised, e.g. ST
      Specified by:
      setUnit in interface SimpleItem
      Parameters:
      unit - UOM
    • setNumberInt

      public void setNumberInt(int number)
      Set the internal number for the item. The internal number is the item number (Positionsnummer) displayed on the front end and generated by the backend system. In the default case the numbers are starting with 10 and increased by 10, e.g. 10, 20, 30, 40....
      Specified by:
      setNumberInt in interface SimpleItem
      Parameters:
      number - position
    • getNumberInt

      public int getNumberInt()
      Get the internal number for the item. The internal number is the item number (Positionsnummer) displayed on the front end and generated by the backend system. In the default case the numbers are starting with 10 and increased by 10, e.g. 10, 20, 30, 40....
      Specified by:
      getNumberInt in interface SimpleItem
      Returns:
      numberInt/position
    • getTypedExtensionMap

      public Map<String,Object> getTypedExtensionMap()
      Description copied from interface: SimpleItem
      Type safe getter for the extension map
      Specified by:
      getTypedExtensionMap in interface SimpleItem
      Returns:
      extension map attached to this item
    • compareTo

      public int compareTo(SimpleItem item)
      Specified by:
      compareTo in interface Comparable<SimpleItem>
    • toString

      public String toString()
      Overrides:
      toString in class BusinessObjectBase