Class AlternativeProductImpl
- java.lang.Object
-
- de.hybris.platform.sap.sapordermgmtbol.transaction.item.businessobject.impl.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 Summary
Fields Modifier and Type Field Description protected java.lang.String
description
Product descriptionprotected java.lang.String
enteredProductIdType
Entered Product IDprotected java.lang.String
substitutionReasonId
Reason for substitutionprotected TechKey
systemProductGUID
Product GUID (in ERP case identical to ID)protected java.lang.String
systemProductId
Product ID
-
Constructor Summary
Constructors Constructor Description AlternativeProductImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
Performs a deep copy of this object.java.lang.String
getDescription()
Returns the description of the AlternativProductjava.lang.String
getEnteredProductIdType()
Returns the enteredProductIdType of the AlternativProduct.java.lang.String
getSubstitutionReasonId()
Returns the substitutionReasonId of the AlternativProduct.TechKey
getSystemProductGUID()
Returns the systemProductGUID of the AlternativProduct.java.lang.String
getSystemProductId()
Returns the system product id of the AlternativProductboolean
isDeterminationProduct()
returns true, if the alternativ product is a determination productboolean
isSubstituteProduct()
returns true, if the alternativ product is a substitute productvoid
setDescription(java.lang.String description)
Sets the description of the AlternativProduct.void
setEnteredProductIdType(java.lang.String enteredProductIdType)
Sets the enteredProductIdType of the AlternativProduct.void
setSubstitutionReasonId(java.lang.String substitutionReasonId)
Sets the substitutionReasonId of the AlternativProduct.void
setSystemProductGUID(TechKey systemProductGUID)
Sets the systemProductGUID of the AlternativProduct.void
setSystemProductId(java.lang.String systemProductId)
Set the system product id of the AlternativProduct
-
-
-
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
-
-
Method Detail
-
getSystemProductId
public java.lang.String getSystemProductId()
Returns the system product id of the AlternativProduct- Specified by:
getSystemProductId
in interfaceAlternativeProduct
- Returns:
- systemProductId of AlternativProduct
-
setSystemProductId
public void setSystemProductId(java.lang.String systemProductId)
Set the system product id of the AlternativProduct- Specified by:
setSystemProductId
in interfaceAlternativeProduct
- Parameters:
systemProductId
- system product id of AlternativProduct
-
getDescription
public java.lang.String getDescription()
Returns the description of the AlternativProduct- Specified by:
getDescription
in interfaceAlternativeProduct
- Returns:
- String
-
getEnteredProductIdType
public java.lang.String getEnteredProductIdType()
Returns the enteredProductIdType of the AlternativProduct.- Specified by:
getEnteredProductIdType
in interfaceAlternativeProduct
- Returns:
- String
-
getSubstitutionReasonId
public java.lang.String getSubstitutionReasonId()
Returns the substitutionReasonId of the AlternativProduct.- Specified by:
getSubstitutionReasonId
in interfaceAlternativeProduct
- Returns:
- String
-
getSystemProductGUID
public TechKey getSystemProductGUID()
Returns the systemProductGUID of the AlternativProduct.- Specified by:
getSystemProductGUID
in interfaceAlternativeProduct
- Returns:
- TechKey
-
setDescription
public void setDescription(java.lang.String description)
Sets the description of the AlternativProduct.- Specified by:
setDescription
in interfaceAlternativeProduct
- 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 interfaceAlternativeProduct
- 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 interfaceAlternativeProduct
- Parameters:
substitutionReasonId
- The substitutionReasonId of the AlternativProduct
-
setSystemProductGUID
public void setSystemProductGUID(TechKey systemProductGUID)
Sets the systemProductGUID of the AlternativProduct.- Specified by:
setSystemProductGUID
in interfaceAlternativeProduct
- 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 likeString
andTechKey
or primitive types the shallow copy is identical with a deep copy.- Specified by:
clone
in interfaceAlternativeProduct
- Overrides:
clone
in classjava.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
-
-