public class WishListItem extends java.lang.Object implements WishListItemIf
| Constructor and Description |
|---|
WishListItem()
Constructor
|
WishListItem(com.workingdogs.village.Record vr,
KKCriteria c)
Instantiates the attributes of the WishList object from a Record object
|
| Modifier and Type | Method and Description |
|---|---|
java.math.BigDecimal |
calculatePrice(boolean isVariantHandlingMode,
boolean isBusiness)
Calculate the price of the WishList item
|
java.lang.String |
getComments()
Comments on the wish list item
|
java.lang.String |
getCustom1() |
java.lang.String |
getCustom2() |
java.lang.String |
getCustom3() |
java.lang.String |
getCustom4() |
java.lang.String |
getCustom5() |
java.util.Calendar |
getDateAdded() |
java.lang.String |
getEncodedProduct()
The encodedProduct is in the form 1{3}5{4}1 where the first number is the product id.
|
java.math.BigDecimal |
getFinalPriceExTax()
This is the price without including tax.
|
java.math.BigDecimal |
getFinalPriceIncTax()
This is the price including tax.
|
int |
getId() |
OptionIf[] |
getOpts()
An array of Option objects that further defines the product.
|
int |
getPriority()
The priority for the wish list item.
|
ProductIf |
getProduct() |
int |
getProductId() |
int |
getQuantityDesired()
Number of items desired in a list such as a wedding list
|
int |
getQuantityInStock() |
int |
getQuantityReceived()
Number of items received in a list such as a wedding list
|
int |
getWishListId() |
void |
setComments(java.lang.String comments)
Comments on the wish list item
|
void |
setCustom1(java.lang.String custom1) |
void |
setCustom2(java.lang.String custom2) |
void |
setCustom3(java.lang.String custom3) |
void |
setCustom4(java.lang.String custom4) |
void |
setCustom5(java.lang.String custom5) |
void |
setDateAdded(java.util.Calendar dateAdded) |
void |
setEncodedProduct(java.lang.String encodedProduct)
The encodedProduct is in the form 1{3}5{4}1 where the first number is the product id.
|
void |
setFinalPriceExTax(java.math.BigDecimal finalPriceExTax)
This is the price without including tax.
|
void |
setFinalPriceIncTax(java.math.BigDecimal finalPriceIncTax)
This is the price including tax.
|
void |
setId(int id) |
void |
setOpts(OptionIf[] opts)
An array of Option objects that further defines the product.
|
void |
setPriority(int priority)
The priority for the wish list item.
|
void |
setProduct(ProductIf product) |
void |
setProductId(int productId) |
void |
setQuantityDesired(int quantityDesired)
Number of items desired in a list such as a wedding list
|
void |
setQuantityInStock(int quantityInStock) |
void |
setQuantityReceived(int quantityReceived)
Number of items received in a list such as a wedding list
|
void |
setWishListId(int wishListId) |
java.lang.String |
toString() |
public WishListItem()
public WishListItem(com.workingdogs.village.Record vr,
KKCriteria c)
throws com.workingdogs.village.DataSetException
vr - Record containing datac - Criteria containing column namescom.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.math.BigDecimal calculatePrice(boolean isVariantHandlingMode,
boolean isBusiness)
throws com.konakart.app.KKException
isVariantHandlingMode - true if enhanced variant handling mode is enabled, false otherwise.isBusiness - true if we're using business edition, false otherwise.KKException - an unexpected KKException exceptionpublic int getId()
getId in interface WishListItemIfpublic void setId(int id)
setId in interface WishListItemIfid - The id to set.public java.util.Calendar getDateAdded()
getDateAdded in interface WishListItemIfpublic void setDateAdded(java.util.Calendar dateAdded)
setDateAdded in interface WishListItemIfdateAdded - The dateAdded to set.public java.math.BigDecimal getFinalPriceIncTax()
WishListItemIfgetFinalPriceIncTax in interface WishListItemIfpublic void setFinalPriceIncTax(java.math.BigDecimal finalPriceIncTax)
WishListItemIfsetFinalPriceIncTax in interface WishListItemIffinalPriceIncTax - The finalPriceIncTax to set.public java.math.BigDecimal getFinalPriceExTax()
WishListItemIfgetFinalPriceExTax in interface WishListItemIfpublic void setFinalPriceExTax(java.math.BigDecimal finalPriceExTax)
WishListItemIfsetFinalPriceExTax in interface WishListItemIffinalPriceExTax - The finalPriceExTax to set.public int getQuantityInStock()
getQuantityInStock in interface WishListItemIfpublic void setQuantityInStock(int quantityInStock)
setQuantityInStock in interface WishListItemIfquantityInStock - The quantityInStock to set.public ProductIf getProduct()
getProduct in interface WishListItemIfpublic void setProduct(ProductIf product)
setProduct in interface WishListItemIfproduct - The product to set.public int getProductId()
getProductId in interface WishListItemIfpublic void setProductId(int productId)
setProductId in interface WishListItemIfproductId - The productId to set.public java.lang.String getEncodedProduct()
WishListItemIfgetEncodedProduct in interface WishListItemIfpublic void setEncodedProduct(java.lang.String encodedProduct)
WishListItemIfsetEncodedProduct in interface WishListItemIfencodedProduct - The encodedProduct to set.public OptionIf[] getOpts()
WishListItemIfgetOpts in interface WishListItemIfpublic void setOpts(OptionIf[] opts)
WishListItemIfsetOpts in interface WishListItemIfopts - The opts to set.public java.lang.String getCustom1()
getCustom1 in interface WishListItemIfpublic void setCustom1(java.lang.String custom1)
setCustom1 in interface WishListItemIfcustom1 - The custom1 to set.public java.lang.String getCustom2()
getCustom2 in interface WishListItemIfpublic void setCustom2(java.lang.String custom2)
setCustom2 in interface WishListItemIfcustom2 - The custom2 to set.public java.lang.String getCustom3()
getCustom3 in interface WishListItemIfpublic void setCustom3(java.lang.String custom3)
setCustom3 in interface WishListItemIfcustom3 - The custom3 to set.public java.lang.String getCustom4()
getCustom4 in interface WishListItemIfpublic void setCustom4(java.lang.String custom4)
setCustom4 in interface WishListItemIfcustom4 - The custom4 to set.public java.lang.String getCustom5()
getCustom5 in interface WishListItemIfpublic void setCustom5(java.lang.String custom5)
setCustom5 in interface WishListItemIfcustom5 - The custom5 to set.public int getWishListId()
getWishListId in interface WishListItemIfpublic void setWishListId(int wishListId)
setWishListId in interface WishListItemIfwishListId - The wishListId to set.public int getPriority()
WishListItemIfgetPriority in interface WishListItemIfpublic void setPriority(int priority)
WishListItemIfsetPriority in interface WishListItemIfpriority - The priority to set.public int getQuantityDesired()
WishListItemIfgetQuantityDesired in interface WishListItemIfpublic void setQuantityDesired(int quantityDesired)
WishListItemIfsetQuantityDesired in interface WishListItemIfquantityDesired - the quantityDesired to setpublic int getQuantityReceived()
WishListItemIfgetQuantityReceived in interface WishListItemIfpublic void setQuantityReceived(int quantityReceived)
WishListItemIfsetQuantityReceived in interface WishListItemIfquantityReceived - the quantityReceived to setpublic java.lang.String getComments()
WishListItemIfgetComments in interface WishListItemIfpublic void setComments(java.lang.String comments)
WishListItemIfsetComments in interface WishListItemIfcomments - the comments to setCopyright © 2018 DS Data Systems UK Ltd.