com.konakart.rmi.app
Class S_ProductQuantity

java.lang.Object
  extended by com.konakart.rmi.app.S_ProductQuantity
All Implemented Interfaces:
java.io.Serializable

public class S_ProductQuantity
extends java.lang.Object
implements java.io.Serializable

Product Quantity object which contains the quantity of a product for different option value combinations. For example, there may be different quantities in stock for the product "brown leather shoe" depending on the size.

See Also:
Serialized Form

Constructor Summary
S_ProductQuantity()
           
 
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.
 S_Option[] getOpts()
          Array of options matching the encoded option values
 int getProductId()
           
 S_PromotionResult[] 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(S_Option[] _opts)
          Array of options matching the encoded option values
 void setProductId(int _productId)
           
 void setPromotionResults(S_PromotionResult[] _promotionResults)
          Active promotions for this product configuration
 void setQuantity(int _quantity)
           
 void setSku(java.lang.String _sku)
          The SKU of the product
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

S_ProductQuantity

public S_ProductQuantity()
Method Detail

getEncodedOptionValues

public 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.

Returns:
Returns the encodedOptionValues.

setEncodedOptionValues

public 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.

Parameters:
_encodedOptionValues - The encodedOptionValues to set.

getProductId

public int getProductId()
Returns:
Returns the productId.

setProductId

public void setProductId(int _productId)
Parameters:
_productId - The productId to set.

getQuantity

public int getQuantity()
Returns:
Returns the quantity.

setQuantity

public void setQuantity(int _quantity)
Parameters:
_quantity - The quantity to set.

getDateAvailable

public java.util.Calendar getDateAvailable()
Returns:
the dateAvailable

setDateAvailable

public void setDateAvailable(java.util.Calendar _dateAvailable)
Parameters:
_dateAvailable - the dateAvailable to set

getSku

public java.lang.String getSku()
The SKU of the product

Returns:
Returns the sku.

setSku

public void setSku(java.lang.String _sku)
The SKU of the product

Parameters:
_sku - The sku to set.

getOpts

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

Returns:
the opts

setOpts

public void setOpts(S_Option[] _opts)
Array of options matching the encoded option values

Parameters:
_opts - the opts to set

getPromotionResults

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

Returns:
the promotionResults

setPromotionResults

public void setPromotionResults(S_PromotionResult[] _promotionResults)
Active promotions for this product configuration

Parameters:
_promotionResults - the promotionResults to set


Copyright © 2011 DS Data Systems UK Ltd.