Class AlternativeProductImpl
java.lang.Object
de.hybris.platform.sap.sapordermgmtbol.transaction.item.businessobject.impl.AlternativeProductImpl
- All Implemented Interfaces:
AlternativeProduct,Cloneable
Class to define a alternative product, that might be an alternative product found by product determination or
substitution
- Version:
- 1.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Performs a deep copy of this object.Returns the description of the AlternativProductReturns the enteredProductIdType of the AlternativProduct.Returns the substitutionReasonId of the AlternativProduct.Returns the systemProductGUID of the AlternativProduct.Returns the system product id of the AlternativProductbooleanreturns true, if the alternativ product is a determination productbooleanreturns true, if the alternativ product is a substitute productvoidsetDescription(String description) Sets the description of the AlternativProduct.voidsetEnteredProductIdType(String enteredProductIdType) Sets the enteredProductIdType of the AlternativProduct.voidsetSubstitutionReasonId(String substitutionReasonId) Sets the substitutionReasonId of the AlternativProduct.voidsetSystemProductGUID(TechKey systemProductGUID) Sets the systemProductGUID of the AlternativProduct.voidsetSystemProductId(String systemProductId) Set the system product id of the AlternativProduct
-
Field Details
-
systemProductId
Product ID -
systemProductGUID
Product GUID (in ERP case identical to ID) -
enteredProductIdType
Entered Product ID -
description
Product description -
substitutionReasonId
Reason for substitution
-
-
Constructor Details
-
AlternativeProductImpl
public AlternativeProductImpl()
-
-
Method Details
-
getSystemProductId
Returns the system product id of the AlternativProduct- Specified by:
getSystemProductIdin interfaceAlternativeProduct- Returns:
- systemProductId of AlternativProduct
-
setSystemProductId
Set the system product id of the AlternativProduct- Specified by:
setSystemProductIdin interfaceAlternativeProduct- Parameters:
systemProductId- system product id of AlternativProduct
-
getDescription
Returns the description of the AlternativProduct- Specified by:
getDescriptionin interfaceAlternativeProduct- Returns:
- String
-
getEnteredProductIdType
Returns the enteredProductIdType of the AlternativProduct.- Specified by:
getEnteredProductIdTypein interfaceAlternativeProduct- Returns:
- String
-
getSubstitutionReasonId
Returns the substitutionReasonId of the AlternativProduct.- Specified by:
getSubstitutionReasonIdin interfaceAlternativeProduct- Returns:
- String
-
getSystemProductGUID
Returns the systemProductGUID of the AlternativProduct.- Specified by:
getSystemProductGUIDin interfaceAlternativeProduct- Returns:
- TechKey
-
setDescription
Sets the description of the AlternativProduct.- Specified by:
setDescriptionin interfaceAlternativeProduct- Parameters:
description- The description of the AlternativProduct
-
setEnteredProductIdType
Sets the enteredProductIdType of the AlternativProduct.- Specified by:
setEnteredProductIdTypein interfaceAlternativeProduct- Parameters:
enteredProductIdType- The enteredProductIdType of the AlternativProduct
-
setSubstitutionReasonId
Sets the substitutionReasonId of the AlternativProduct.- Specified by:
setSubstitutionReasonIdin interfaceAlternativeProduct- Parameters:
substitutionReasonId- The substitutionReasonId of the AlternativProduct
-
setSystemProductGUID
Sets the systemProductGUID of the AlternativProduct.- Specified by:
setSystemProductGUIDin interfaceAlternativeProduct- Parameters:
systemProductGUID- The systemProductGUID of the AlternativProduct
-
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 classObject- 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
-