java.lang.Object
de.hybris.platform.sap.sapordermgmtbol.transaction.item.businessobject.impl.AlternativeProductImpl
All Implemented Interfaces:
AlternativeProduct, Cloneable

public class AlternativeProductImpl extends Object implements AlternativeProduct
Class to define a alternative product, that might be an alternative product found by product determination or substitution
Version:
1.0
  • Field Details

    • systemProductId

      protected String systemProductId
      Product ID
    • systemProductGUID

      protected TechKey systemProductGUID
      Product GUID (in ERP case identical to ID)
    • enteredProductIdType

      protected String enteredProductIdType
      Entered Product ID
    • description

      protected String description
      Product description
    • substitutionReasonId

      protected String substitutionReasonId
      Reason for substitution
  • Constructor Details

    • AlternativeProductImpl

      public AlternativeProductImpl()
  • Method Details

    • getSystemProductId

      public String getSystemProductId()
      Returns the system product id of the AlternativProduct
      Specified by:
      getSystemProductId in interface AlternativeProduct
      Returns:
      systemProductId of AlternativProduct
    • setSystemProductId

      public void setSystemProductId(String systemProductId)
      Set the system product id of the AlternativProduct
      Specified by:
      setSystemProductId in interface AlternativeProduct
      Parameters:
      systemProductId - system product id of AlternativProduct
    • getDescription

      public String getDescription()
      Returns the description of the AlternativProduct
      Specified by:
      getDescription in interface AlternativeProduct
      Returns:
      String
    • getEnteredProductIdType

      public String getEnteredProductIdType()
      Returns the enteredProductIdType of the AlternativProduct.
      Specified by:
      getEnteredProductIdType in interface AlternativeProduct
      Returns:
      String
    • getSubstitutionReasonId

      public String getSubstitutionReasonId()
      Returns the substitutionReasonId of the AlternativProduct.
      Specified by:
      getSubstitutionReasonId in interface AlternativeProduct
      Returns:
      String
    • getSystemProductGUID

      public TechKey getSystemProductGUID()
      Returns the systemProductGUID of the AlternativProduct.
      Specified by:
      getSystemProductGUID in interface AlternativeProduct
      Returns:
      TechKey
    • setDescription

      public void setDescription(String description)
      Sets the description of the AlternativProduct.
      Specified by:
      setDescription in interface AlternativeProduct
      Parameters:
      description - The description of the AlternativProduct
    • setEnteredProductIdType

      public void setEnteredProductIdType(String enteredProductIdType)
      Sets the enteredProductIdType of the AlternativProduct.
      Specified by:
      setEnteredProductIdType in interface AlternativeProduct
      Parameters:
      enteredProductIdType - The enteredProductIdType of the AlternativProduct
    • setSubstitutionReasonId

      public void setSubstitutionReasonId(String substitutionReasonId)
      Sets the substitutionReasonId of the AlternativProduct.
      Specified by:
      setSubstitutionReasonId in interface AlternativeProduct
      Parameters:
      substitutionReasonId - The substitutionReasonId of the AlternativProduct
    • setSystemProductGUID

      public void setSystemProductGUID(TechKey systemProductGUID)
      Sets the systemProductGUID of the AlternativProduct.
      Specified by:
      setSystemProductGUID in interface AlternativeProduct
      Parameters:
      systemProductGUID - The systemProductGUID of the AlternativProduct
    • clone

      public Object clone()
      Performs a deep copy of this object. Because of the fact that all fields of this object consist of immutable objects like String and TechKey or primitive types the shallow copy is identical with a deep copy.
      Specified by:
      clone in interface AlternativeProduct
      Overrides:
      clone in class Object
      Returns:
      deep copy of this object
    • isSubstituteProduct

      public boolean isSubstituteProduct()
      returns true, if the alternativ product is a substitute product
      Returns:
      boolean true if the product alias is a substitute product
    • isDeterminationProduct

      public boolean isDeterminationProduct()
      returns true, if the alternativ product is a determination product
      Returns:
      boolean true if the product alias is a determination product