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.Object
public java.lang.String getEncodedOptionValues()
ProductQuantityIf
The 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 ProductQuantityIf
public void setEncodedOptionValues(java.lang.String encodedOptionValues)
ProductQuantityIf
The 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 ProductQuantityIf
encodedOptionValues
- The encodedOptionValues to set.public int getProductId()
getProductId
in interface ProductQuantityIf
public void setProductId(int productId)
setProductId
in interface ProductQuantityIf
productId
- The productId to set.public int getQuantity()
getQuantity
in interface ProductQuantityIf
public void setQuantity(int quantity)
setQuantity
in interface ProductQuantityIf
quantity
- The quantity to set.public java.lang.String getSku()
ProductQuantityIf
getSku
in interface ProductQuantityIf
public void setSku(java.lang.String sku)
ProductQuantityIf
setSku
in interface ProductQuantityIf
sku
- The sku to set.public java.util.Calendar getDateAvailable()
getDateAvailable
in interface ProductQuantityIf
public void setDateAvailable(java.util.Calendar dateAvailable)
setDateAvailable
in interface ProductQuantityIf
dateAvailable
- the dateAvailable to setpublic OptionIf[] getOpts()
getOpts
in interface ProductQuantityIf
public void setOpts(OptionIf[] opts)
setOpts
in interface ProductQuantityIf
opts
- the opts to setpublic PromotionResultIf[] getPromotionResults()
getPromotionResults
in interface ProductQuantityIf
public void setPromotionResults(PromotionResultIf[] promotionResults)
setPromotionResults
in interface ProductQuantityIf
promotionResults
- the promotionResults to setpublic int getQuantityReserved()
ProductQuantityIf
getQuantityReserved
in interface ProductQuantityIf
public void setQuantityReserved(int quantityReserved)
ProductQuantityIf
setQuantityReserved
in interface ProductQuantityIf
quantityReserved
- the quantityReserved to setpublic int getQuantityAvailable()
public ProductQuantityIf[] getBundlePQs()
ProductQuantityIf
getBundlePQs
in interface ProductQuantityIf
public void setBundlePQs(ProductQuantityIf[] bundlePQs)
ProductQuantityIf
setBundlePQs
in interface ProductQuantityIf
bundlePQs
- the bundlePQs to setpublic int getBundledProdQuantity()
ProductQuantityIf
getBundledProdQuantity
in interface ProductQuantityIf
public void setBundledProdQuantity(int bundledProdQuantity)
ProductQuantityIf
setBundledProdQuantity
in interface ProductQuantityIf
bundledProdQuantity
- the bundledProdQuantity to setpublic java.lang.String getCustom1()
getCustom1
in interface ProductQuantityIf
public void setCustom1(java.lang.String custom1)
setCustom1
in interface ProductQuantityIf
custom1
- the custom1 to setpublic java.lang.String getCustom2()
getCustom2
in interface ProductQuantityIf
public void setCustom2(java.lang.String custom2)
setCustom2
in interface ProductQuantityIf
custom2
- the custom2 to setpublic java.lang.Integer getExtQuantity()
getExtQuantity
in interface ProductQuantityIf
public void setExtQuantity(java.lang.Integer extQuantity)
setExtQuantity
in interface ProductQuantityIf
extQuantity
- the extQuantity to setpublic java.util.Calendar getExtDateAvailable()
getExtDateAvailable
in interface ProductQuantityIf
public void setExtDateAvailable(java.util.Calendar extDateAvailable)
setExtDateAvailable
in interface ProductQuantityIf
extDateAvailable
- the extDateAvailable to setpublic java.lang.String getVariantCode()
getVariantCode
in interface ProductQuantityIf
public void setVariantCode(java.lang.String variantCode)
setVariantCode
in interface ProductQuantityIf
variantCode
- the variant code to setCopyright © 2018 DS Data Systems UK Ltd.