com.konakart.app
Class PromotionProduct

java.lang.Object
  extended by 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.


Constructor Summary
PromotionProduct()
          Constructor
PromotionProduct(int productId, int optionId, int optionValueId)
          Constructor
 
Method Summary
 boolean Compare(PromotionProductIf promProd)
           
 int getOptionId()
           
 int getOptionValueId()
           
 int getProductId()
           
 void setOptionId(int optionId)
           
 void setOptionValueId(int optionValueId)
           
 void setProductId(int productId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PromotionProduct

public PromotionProduct()
Constructor


PromotionProduct

public PromotionProduct(int productId,
                        int optionId,
                        int optionValueId)
Constructor

Parameters:
productId -
optionId -
optionValueId -
Method Detail

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.