|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.app.ProductQuantity
public class ProductQuantity
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 |
|---|
public ProductQuantity()
public ProductQuantity(com.workingdogs.village.Record vr,
org.apache.torque.util.Criteria c)
throws com.workingdogs.village.DataSetException
vr - c -
com.workingdogs.village.DataSetException| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getEncodedOptionValues()
ProductQuantityIf
getEncodedOptionValues in interface ProductQuantityIfpublic void setEncodedOptionValues(java.lang.String encodedOptionValues)
ProductQuantityIf
setEncodedOptionValues in interface ProductQuantityIfencodedOptionValues - The encodedOptionValues to set.public int getProductId()
getProductId in interface ProductQuantityIfpublic void setProductId(int productId)
setProductId in interface ProductQuantityIfproductId - The productId to set.public int getQuantity()
getQuantity in interface ProductQuantityIfpublic void setQuantity(int quantity)
setQuantity in interface ProductQuantityIfquantity - The quantity to set.public java.lang.String getSku()
ProductQuantityIf
getSku in interface ProductQuantityIfpublic void setSku(java.lang.String sku)
ProductQuantityIf
setSku in interface ProductQuantityIfsku - The sku to set.public java.util.Calendar getDateAvailable()
getDateAvailable in interface ProductQuantityIfpublic void setDateAvailable(java.util.Calendar dateAvailable)
setDateAvailable in interface ProductQuantityIfdateAvailable - the dateAvailable to setpublic OptionIf[] getOpts()
getOpts in interface ProductQuantityIfpublic void setOpts(OptionIf[] opts)
setOpts in interface ProductQuantityIfopts - the opts to setpublic PromotionResultIf[] getPromotionResults()
getPromotionResults in interface ProductQuantityIfpublic void setPromotionResults(PromotionResultIf[] promotionResults)
setPromotionResults in interface ProductQuantityIfpromotionResults - the promotionResults to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||