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.StringdescriptionProduct descriptionprotected java.lang.StringenteredProductIdTypeEntered Product IDprotected java.lang.StringsubstitutionReasonIdReason for substitutionprotected TechKeysystemProductGUIDProduct GUID (in ERP case identical to ID)protected java.lang.StringsystemProductIdProduct ID
-
Constructor Summary
Constructors Constructor Description AlternativeProductImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Performs a deep copy of this object.java.lang.StringgetDescription()Returns the description of the AlternativProductjava.lang.StringgetEnteredProductIdType()Returns the enteredProductIdType of the AlternativProduct.java.lang.StringgetSubstitutionReasonId()Returns the substitutionReasonId of the AlternativProduct.TechKeygetSystemProductGUID()Returns the systemProductGUID of the AlternativProduct.java.lang.StringgetSystemProductId()Returns the system product id of the AlternativProductbooleanisDeterminationProduct()returns true, if the alternativ product is a determination productbooleanisSubstituteProduct()returns true, if the alternativ product is a substitute productvoidsetDescription(java.lang.String description)Sets the description of the AlternativProduct.voidsetEnteredProductIdType(java.lang.String enteredProductIdType)Sets the enteredProductIdType of the AlternativProduct.voidsetSubstitutionReasonId(java.lang.String substitutionReasonId)Sets the substitutionReasonId of the AlternativProduct.voidsetSystemProductGUID(TechKey systemProductGUID)Sets the systemProductGUID of the AlternativProduct.voidsetSystemProductId(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:
getSystemProductIdin interfaceAlternativeProduct- Returns:
- systemProductId of AlternativProduct
-
setSystemProductId
public void setSystemProductId(java.lang.String systemProductId)
Set the system product id of the AlternativProduct- Specified by:
setSystemProductIdin interfaceAlternativeProduct- Parameters:
systemProductId- system product id of AlternativProduct
-
getDescription
public java.lang.String getDescription()
Returns the description of the AlternativProduct- Specified by:
getDescriptionin interfaceAlternativeProduct- Returns:
- String
-
getEnteredProductIdType
public java.lang.String getEnteredProductIdType()
Returns the enteredProductIdType of the AlternativProduct.- Specified by:
getEnteredProductIdTypein interfaceAlternativeProduct- Returns:
- String
-
getSubstitutionReasonId
public java.lang.String getSubstitutionReasonId()
Returns the substitutionReasonId of the AlternativProduct.- Specified by:
getSubstitutionReasonIdin interfaceAlternativeProduct- Returns:
- String
-
getSystemProductGUID
public TechKey getSystemProductGUID()
Returns the systemProductGUID of the AlternativProduct.- Specified by:
getSystemProductGUIDin interfaceAlternativeProduct- Returns:
- TechKey
-
setDescription
public void setDescription(java.lang.String description)
Sets the description of the AlternativProduct.- Specified by:
setDescriptionin interfaceAlternativeProduct- Parameters:
description- The description of the AlternativProduct
-
setEnteredProductIdType
public void setEnteredProductIdType(java.lang.String enteredProductIdType)
Sets the enteredProductIdType of the AlternativProduct.- Specified by:
setEnteredProductIdTypein interfaceAlternativeProduct- Parameters:
enteredProductIdType- The enteredProductIdType of the AlternativProduct
-
setSubstitutionReasonId
public void setSubstitutionReasonId(java.lang.String substitutionReasonId)
Sets the substitutionReasonId of the AlternativProduct.- Specified by:
setSubstitutionReasonIdin interfaceAlternativeProduct- Parameters:
substitutionReasonId- The substitutionReasonId of the AlternativProduct
-
setSystemProductGUID
public void setSystemProductGUID(TechKey systemProductGUID)
Sets the systemProductGUID of the AlternativProduct.- Specified by:
setSystemProductGUIDin 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 likeStringandTechKeyor primitive types the shallow copy is identical with a deep copy.- Specified by:
clonein interfaceAlternativeProduct- Overrides:
clonein 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
-
-