Class AlternativeProductImpl

  • All Implemented Interfaces:
    AlternativeProduct, java.lang.Cloneable

    public class AlternativeProductImpl
    extends java.lang.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 Detail

      • systemProductId

        protected java.lang.String systemProductId
        Product ID
      • systemProductGUID

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

        protected java.lang.String enteredProductIdType
        Entered Product ID
      • description

        protected java.lang.String description
        Product description
      • substitutionReasonId

        protected java.lang.String substitutionReasonId
        Reason for substitution
    • Constructor Detail

      • AlternativeProductImpl

        public AlternativeProductImpl()
    • Method Detail

      • getSystemProductId

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

        public void setSystemProductId​(java.lang.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 java.lang.String getDescription()
        Returns the description of the AlternativProduct
        Specified by:
        getDescription in interface AlternativeProduct
        Returns:
        String
      • getEnteredProductIdType

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

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

        public void setDescription​(java.lang.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​(java.lang.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​(java.lang.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 java.lang.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 java.lang.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