com.konakart.app
Class ProductQuantity

java.lang.Object
  extended by com.konakart.app.ProductQuantity
All Implemented Interfaces:
ProductQuantityIf

public class ProductQuantity
extends java.lang.Object
implements ProductQuantityIf

Product Quantity object which contains the quantity of a product for different option value combinations


Constructor Summary
ProductQuantity()
          Constructor
ProductQuantity(com.workingdogs.village.Record vr, org.apache.torque.util.Criteria c)
           
 
Method Summary
 java.util.Calendar getDateAvailable()
           
 java.lang.String getEncodedOptionValues()
          encodedOptionValues: {4}3{3}6 which means product_options of id==4 and product_options_values of id==3 followed by product_options of id==3 and product_options_values of id==6.
 OptionIf[] getOpts()
          Array of options matching the encoded option values
 int getProductId()
           
 PromotionResultIf[] getPromotionResults()
          Active promotions for this product configuration
 int getQuantity()
           
 java.lang.String getSku()
          The SKU of the product
 void setDateAvailable(java.util.Calendar dateAvailable)
           
 void setEncodedOptionValues(java.lang.String encodedOptionValues)
          encodedOptionValues: {4}3{3}6 which means product_options of id==4 and product_options_values of id==3 followed by product_options of id==3 and product_options_values of id==6.
 void setOpts(OptionIf[] opts)
          Array of options matching the encoded option values
 void setProductId(int productId)
           
 void setPromotionResults(PromotionResultIf[] promotionResults)
          Active promotions for this product configuration
 void setQuantity(int quantity)
           
 void setSku(java.lang.String sku)
          The SKU of the product
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProductQuantity

public ProductQuantity()
Constructor


ProductQuantity

public ProductQuantity(com.workingdogs.village.Record vr,
                       org.apache.torque.util.Criteria c)
                throws com.workingdogs.village.DataSetException
Parameters:
vr -
c -
Throws:
com.workingdogs.village.DataSetException
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
Returns a string containing the attributes of the Option object.

getEncodedOptionValues

public java.lang.String getEncodedOptionValues()
Description copied from interface: ProductQuantityIf
encodedOptionValues: {4}3{3}6 which means product_options of id==4 and product_options_values of id==3 followed by product_options of id==3 and product_options_values of id==6.

Specified by:
getEncodedOptionValues in interface ProductQuantityIf
Returns:
Returns the encodedOptionValues.

setEncodedOptionValues

public void setEncodedOptionValues(java.lang.String encodedOptionValues)
Description copied from interface: ProductQuantityIf
encodedOptionValues: {4}3{3}6 which means product_options of id==4 and product_options_values of id==3 followed by product_options of id==3 and product_options_values of id==6.

Specified by:
setEncodedOptionValues in interface ProductQuantityIf
Parameters:
encodedOptionValues - The encodedOptionValues to set.

getProductId

public int getProductId()
Specified by:
getProductId in interface ProductQuantityIf
Returns:
Returns the productId.

setProductId

public void setProductId(int productId)
Specified by:
setProductId in interface ProductQuantityIf
Parameters:
productId - The productId to set.

getQuantity

public int getQuantity()
Specified by:
getQuantity in interface ProductQuantityIf
Returns:
Returns the quantity.

setQuantity

public void setQuantity(int quantity)
Specified by:
setQuantity in interface ProductQuantityIf
Parameters:
quantity - The quantity to set.

getSku

public java.lang.String getSku()
Description copied from interface: ProductQuantityIf
The SKU of the product

Specified by:
getSku in interface ProductQuantityIf
Returns:
Returns the sku.

setSku

public void setSku(java.lang.String sku)
Description copied from interface: ProductQuantityIf
The SKU of the product

Specified by:
setSku in interface ProductQuantityIf
Parameters:
sku - The sku to set.

getDateAvailable

public java.util.Calendar getDateAvailable()
Specified by:
getDateAvailable in interface ProductQuantityIf
Returns:
the dateAvailable

setDateAvailable

public void setDateAvailable(java.util.Calendar dateAvailable)
Specified by:
setDateAvailable in interface ProductQuantityIf
Parameters:
dateAvailable - the dateAvailable to set

getOpts

public OptionIf[] getOpts()
Array of options matching the encoded option values

Specified by:
getOpts in interface ProductQuantityIf
Returns:
the opts

setOpts

public void setOpts(OptionIf[] opts)
Array of options matching the encoded option values

Specified by:
setOpts in interface ProductQuantityIf
Parameters:
opts - the opts to set

getPromotionResults

public PromotionResultIf[] getPromotionResults()
Active promotions for this product configuration

Specified by:
getPromotionResults in interface ProductQuantityIf
Returns:
the promotionResults

setPromotionResults

public void setPromotionResults(PromotionResultIf[] promotionResults)
Active promotions for this product configuration

Specified by:
setPromotionResults in interface ProductQuantityIf
Parameters:
promotionResults - the promotionResults to set


Copyright © 2011 DS Data Systems UK Ltd.