com.konakart.app
Class PromotionProduct
java.lang.Object
com.konakart.app.PromotionProduct
- All Implemented Interfaces:
- PromotionProductIf
public class PromotionProduct
- extends java.lang.Object
- implements PromotionProductIf
A class to define a product down to the level of an option and the value of the option. It is
used to include or exclude a product from a promotion.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PromotionProduct
public PromotionProduct()
- Constructor
PromotionProduct
public PromotionProduct(int productId,
int optionId,
int optionValueId)
- Constructor
- Parameters:
productId - optionId - optionValueId -
Compare
public boolean Compare(PromotionProductIf promProd)
- Parameters:
promProd -
- Returns:
- Returns true if the object passed in as a parameter compares with this object
getOptionId
public int getOptionId()
- Specified by:
getOptionId in interface PromotionProductIf
- Returns:
- Returns the optionId.
setOptionId
public void setOptionId(int optionId)
- Specified by:
setOptionId in interface PromotionProductIf
- Parameters:
optionId - The optionId to set.
getOptionValueId
public int getOptionValueId()
- Specified by:
getOptionValueId in interface PromotionProductIf
- Returns:
- Returns the optionValueId.
setOptionValueId
public void setOptionValueId(int optionValueId)
- Specified by:
setOptionValueId in interface PromotionProductIf
- Parameters:
optionValueId - The optionValueId to set.
getProductId
public int getProductId()
- Specified by:
getProductId in interface PromotionProductIf
- Returns:
- Returns the productId.
setProductId
public void setProductId(int productId)
- Specified by:
setProductId in interface PromotionProductIf
- Parameters:
productId - The productId to set.
Copyright © 2011 DS Data Systems UK Ltd.