public class ProductQuantity extends java.lang.Object implements ProductQuantityIf
| Constructor and Description |
|---|
ProductQuantity()
Constructor
|
ProductQuantity(com.workingdogs.village.Record vr,
KKCriteria c) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBundledProdQuantity()
The number of times that this product appears in the bundle.
|
ProductQuantityIf[] |
getBundlePQs()
Product quantities of bundled products
|
java.lang.String |
getCustom1() |
java.lang.String |
getCustom2() |
java.util.Calendar |
getDateAvailable() |
java.lang.String |
getEncodedOptionValues()
encodedOptionValues
|
java.util.Calendar |
getExtDateAvailable() |
java.lang.Integer |
getExtQuantity() |
OptionIf[] |
getOpts()
Array of options matching the encoded option values
|
int |
getProductId() |
PromotionResultIf[] |
getPromotionResults()
Active promotions for this product configuration
|
int |
getQuantity() |
int |
getQuantityAvailable() |
int |
getQuantityReserved()
This attribute defines the total number of products that are currently reserved.
|
java.lang.String |
getSku()
The SKU of the product
|
java.lang.String |
getVariantCode() |
void |
setBundledProdQuantity(int bundledProdQuantity)
The number of times that this product appears in the bundle.
|
void |
setBundlePQs(ProductQuantityIf[] bundlePQs)
Product quantities of bundled products
|
void |
setCustom1(java.lang.String custom1) |
void |
setCustom2(java.lang.String custom2) |
void |
setDateAvailable(java.util.Calendar dateAvailable) |
void |
setEncodedOptionValues(java.lang.String encodedOptionValues)
encodedOptionValues
|
void |
setExtDateAvailable(java.util.Calendar extDateAvailable) |
void |
setExtQuantity(java.lang.Integer extQuantity) |
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 |
setQuantityReserved(int quantityReserved)
This attribute defines the total number of products that are currently reserved.
|
void |
setSku(java.lang.String sku)
The SKU of the product
|
void |
setVariantCode(java.lang.String variantCode) |
java.lang.String |
toString() |
public ProductQuantity()
public ProductQuantity(com.workingdogs.village.Record vr,
KKCriteria c)
throws com.workingdogs.village.DataSetException
vr - the vrc - the ccom.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getEncodedOptionValues()
ProductQuantityIfThe format of the encoded key for the products_quantity table is 3{4}4{6} which means product_options of id==3 and product_options_values of id==4 followed by product_options of id==4 and product_options_values of id==6. The order is very important since the product option ids must be in ascending order.
getEncodedOptionValues in interface ProductQuantityIfpublic void setEncodedOptionValues(java.lang.String encodedOptionValues)
ProductQuantityIfThe format of the encoded key for the products_quantity table is 3{4}4{6} which means product_options of id==3 and product_options_values of id==4 followed by product_options of id==4 and product_options_values of id==6. The order is very important since the product option ids must be in ascending order.
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()
ProductQuantityIfgetSku in interface ProductQuantityIfpublic void setSku(java.lang.String sku)
ProductQuantityIfsetSku 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 setpublic int getQuantityReserved()
ProductQuantityIfgetQuantityReserved in interface ProductQuantityIfpublic void setQuantityReserved(int quantityReserved)
ProductQuantityIfsetQuantityReserved in interface ProductQuantityIfquantityReserved - the quantityReserved to setpublic int getQuantityAvailable()
public ProductQuantityIf[] getBundlePQs()
ProductQuantityIfgetBundlePQs in interface ProductQuantityIfpublic void setBundlePQs(ProductQuantityIf[] bundlePQs)
ProductQuantityIfsetBundlePQs in interface ProductQuantityIfbundlePQs - the bundlePQs to setpublic int getBundledProdQuantity()
ProductQuantityIfgetBundledProdQuantity in interface ProductQuantityIfpublic void setBundledProdQuantity(int bundledProdQuantity)
ProductQuantityIfsetBundledProdQuantity in interface ProductQuantityIfbundledProdQuantity - the bundledProdQuantity to setpublic java.lang.String getCustom1()
getCustom1 in interface ProductQuantityIfpublic void setCustom1(java.lang.String custom1)
setCustom1 in interface ProductQuantityIfcustom1 - the custom1 to setpublic java.lang.String getCustom2()
getCustom2 in interface ProductQuantityIfpublic void setCustom2(java.lang.String custom2)
setCustom2 in interface ProductQuantityIfcustom2 - the custom2 to setpublic java.lang.Integer getExtQuantity()
getExtQuantity in interface ProductQuantityIfpublic void setExtQuantity(java.lang.Integer extQuantity)
setExtQuantity in interface ProductQuantityIfextQuantity - the extQuantity to setpublic java.util.Calendar getExtDateAvailable()
getExtDateAvailable in interface ProductQuantityIfpublic void setExtDateAvailable(java.util.Calendar extDateAvailable)
setExtDateAvailable in interface ProductQuantityIfextDateAvailable - the extDateAvailable to setpublic java.lang.String getVariantCode()
getVariantCode in interface ProductQuantityIfpublic void setVariantCode(java.lang.String variantCode)
setVariantCode in interface ProductQuantityIfvariantCode - the variant code to setCopyright © 2018 DS Data Systems UK Ltd.