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.Object
public 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 WishListItemIf
public void setId(int id)
setId
in interface WishListItemIf
id
- The id to set.public java.util.Calendar getDateAdded()
getDateAdded
in interface WishListItemIf
public void setDateAdded(java.util.Calendar dateAdded)
setDateAdded
in interface WishListItemIf
dateAdded
- The dateAdded to set.public java.math.BigDecimal getFinalPriceIncTax()
WishListItemIf
getFinalPriceIncTax
in interface WishListItemIf
public void setFinalPriceIncTax(java.math.BigDecimal finalPriceIncTax)
WishListItemIf
setFinalPriceIncTax
in interface WishListItemIf
finalPriceIncTax
- The finalPriceIncTax to set.public java.math.BigDecimal getFinalPriceExTax()
WishListItemIf
getFinalPriceExTax
in interface WishListItemIf
public void setFinalPriceExTax(java.math.BigDecimal finalPriceExTax)
WishListItemIf
setFinalPriceExTax
in interface WishListItemIf
finalPriceExTax
- The finalPriceExTax to set.public int getQuantityInStock()
getQuantityInStock
in interface WishListItemIf
public void setQuantityInStock(int quantityInStock)
setQuantityInStock
in interface WishListItemIf
quantityInStock
- The quantityInStock to set.public ProductIf getProduct()
getProduct
in interface WishListItemIf
public void setProduct(ProductIf product)
setProduct
in interface WishListItemIf
product
- The product to set.public int getProductId()
getProductId
in interface WishListItemIf
public void setProductId(int productId)
setProductId
in interface WishListItemIf
productId
- The productId to set.public java.lang.String getEncodedProduct()
WishListItemIf
getEncodedProduct
in interface WishListItemIf
public void setEncodedProduct(java.lang.String encodedProduct)
WishListItemIf
setEncodedProduct
in interface WishListItemIf
encodedProduct
- The encodedProduct to set.public OptionIf[] getOpts()
WishListItemIf
getOpts
in interface WishListItemIf
public void setOpts(OptionIf[] opts)
WishListItemIf
setOpts
in interface WishListItemIf
opts
- The opts to set.public java.lang.String getCustom1()
getCustom1
in interface WishListItemIf
public void setCustom1(java.lang.String custom1)
setCustom1
in interface WishListItemIf
custom1
- The custom1 to set.public java.lang.String getCustom2()
getCustom2
in interface WishListItemIf
public void setCustom2(java.lang.String custom2)
setCustom2
in interface WishListItemIf
custom2
- The custom2 to set.public java.lang.String getCustom3()
getCustom3
in interface WishListItemIf
public void setCustom3(java.lang.String custom3)
setCustom3
in interface WishListItemIf
custom3
- The custom3 to set.public java.lang.String getCustom4()
getCustom4
in interface WishListItemIf
public void setCustom4(java.lang.String custom4)
setCustom4
in interface WishListItemIf
custom4
- The custom4 to set.public java.lang.String getCustom5()
getCustom5
in interface WishListItemIf
public void setCustom5(java.lang.String custom5)
setCustom5
in interface WishListItemIf
custom5
- The custom5 to set.public int getWishListId()
getWishListId
in interface WishListItemIf
public void setWishListId(int wishListId)
setWishListId
in interface WishListItemIf
wishListId
- The wishListId to set.public int getPriority()
WishListItemIf
getPriority
in interface WishListItemIf
public void setPriority(int priority)
WishListItemIf
setPriority
in interface WishListItemIf
priority
- The priority to set.public int getQuantityDesired()
WishListItemIf
getQuantityDesired
in interface WishListItemIf
public void setQuantityDesired(int quantityDesired)
WishListItemIf
setQuantityDesired
in interface WishListItemIf
quantityDesired
- the quantityDesired to setpublic int getQuantityReceived()
WishListItemIf
getQuantityReceived
in interface WishListItemIf
public void setQuantityReceived(int quantityReceived)
WishListItemIf
setQuantityReceived
in interface WishListItemIf
quantityReceived
- the quantityReceived to setpublic java.lang.String getComments()
WishListItemIf
getComments
in interface WishListItemIf
public void setComments(java.lang.String comments)
WishListItemIf
setComments
in interface WishListItemIf
comments
- the comments to setCopyright © 2018 DS Data Systems UK Ltd.