|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.app.Basket
public class Basket
Basket class
| Constructor Summary | |
|---|---|
Basket()
Constructor |
|
Basket(com.workingdogs.village.Record vr,
org.apache.torque.util.Criteria c)
Instantiates the attributes of the Basket object from a Record object |
|
| Method Summary | |
|---|---|
java.math.BigDecimal |
calculatePrice(int scale)
Calculate the price of the basket 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.util.Calendar |
getDateAvailable()
The date when the product will become available |
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. |
ProductIf |
getProduct()
|
int |
getProductId()
|
int |
getQuantity()
|
int |
getQuantityInStock()
|
java.lang.String |
getSku()
The SKU of the product |
int |
getWishListId()
Set to the id of the wish list (gift registry) to keep track that it has been added from a gift registry. |
int |
getWishListItemId()
Set to the id of the wish list item (gift registry item) to keep track that it has been added from a gift registry and which item it corresponds to. |
boolean |
isUseBasketPrice()
When set, the price of the basket object is used rather than getting the price from the product object. |
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 |
setDateAvailable(java.util.Calendar dateAvailable)
The date when the product will become available |
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 |
setProduct(ProductIf product)
|
void |
setProductId(int productId)
|
void |
setQuantity(int quantity)
|
void |
setQuantityInStock(int quantityInStock)
|
void |
setSku(java.lang.String sku)
The SKU of the product |
void |
setUseBasketPrice(boolean useBasketPrice)
When set, the price of the basket object is used rather than getting the price from the product object. |
void |
setWishListId(int wishListId)
Set to the id of the wish list (gift registry) to keep track that it has been added from a gift registry. |
void |
setWishListItemId(int wishListItemId)
Set to the id of the wish list item (gift registry item) to keep track that it has been added from a gift registry and which item it corresponds to. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Basket()
public Basket(com.workingdogs.village.Record vr,
org.apache.torque.util.Criteria c)
throws com.workingdogs.village.DataSetException
vr - Record containing datac - Criteria containing column names
com.workingdogs.village.DataSetException| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
public java.math.BigDecimal calculatePrice(int scale)
throws KKException
scale -
KKExceptionpublic java.util.Calendar getDateAdded()
getDateAdded in interface BasketIfpublic void setDateAdded(java.util.Calendar dateAdded)
setDateAdded in interface BasketIfdateAdded - The dateAdded to set.public java.lang.String getEncodedProduct()
BasketIf
getEncodedProduct in interface BasketIfpublic void setEncodedProduct(java.lang.String encodedProduct)
BasketIf
setEncodedProduct in interface BasketIfencodedProduct - The encodedProduct to set.public int getId()
getId in interface BasketIfpublic void setId(int id)
setId in interface BasketIfid - The id to set.public OptionIf[] getOpts()
BasketIf
getOpts in interface BasketIfpublic void setOpts(OptionIf[] opts)
BasketIf
setOpts in interface BasketIfopts - The opts to set.public ProductIf getProduct()
getProduct in interface BasketIfpublic void setProduct(ProductIf product)
setProduct in interface BasketIfproduct - The product to set.public int getProductId()
getProductId in interface BasketIfpublic void setProductId(int productId)
setProductId in interface BasketIfproductId - The productId to set.public int getQuantity()
getQuantity in interface BasketIfpublic void setQuantity(int quantity)
setQuantity in interface BasketIfquantity - The quantity to set.public java.math.BigDecimal getFinalPriceExTax()
BasketIf
getFinalPriceExTax in interface BasketIfpublic void setFinalPriceExTax(java.math.BigDecimal finalPriceExTax)
BasketIf
setFinalPriceExTax in interface BasketIffinalPriceExTax - The finalPriceExTax to set.public java.math.BigDecimal getFinalPriceIncTax()
BasketIf
getFinalPriceIncTax in interface BasketIfpublic void setFinalPriceIncTax(java.math.BigDecimal finalPriceIncTax)
BasketIf
setFinalPriceIncTax in interface BasketIffinalPriceIncTax - The finalPriceIncTax to set.public int getQuantityInStock()
getQuantityInStock in interface BasketIfpublic void setQuantityInStock(int quantityInStock)
setQuantityInStock in interface BasketIfquantityInStock - The quantityInStock to set.public java.lang.String getCustom1()
getCustom1 in interface BasketIfpublic void setCustom1(java.lang.String custom1)
setCustom1 in interface BasketIfcustom1 - The custom1 to set.public java.lang.String getCustom2()
getCustom2 in interface BasketIfpublic void setCustom2(java.lang.String custom2)
setCustom2 in interface BasketIfcustom2 - The custom2 to set.public java.lang.String getCustom3()
getCustom3 in interface BasketIfpublic void setCustom3(java.lang.String custom3)
setCustom3 in interface BasketIfcustom3 - The custom3 to set.public java.lang.String getCustom4()
getCustom4 in interface BasketIfpublic void setCustom4(java.lang.String custom4)
setCustom4 in interface BasketIfcustom4 - The custom4 to set.public java.lang.String getCustom5()
getCustom5 in interface BasketIfpublic void setCustom5(java.lang.String custom5)
setCustom5 in interface BasketIfcustom5 - The custom5 to set.public java.util.Calendar getDateAvailable()
BasketIf
getDateAvailable in interface BasketIfpublic void setDateAvailable(java.util.Calendar dateAvailable)
BasketIf
setDateAvailable in interface BasketIfdateAvailable - the dateAvailable to setpublic java.lang.String getSku()
BasketIf
getSku in interface BasketIfpublic void setSku(java.lang.String sku)
BasketIf
setSku in interface BasketIfsku - the sku to setpublic int getWishListId()
BasketIf
getWishListId in interface BasketIfpublic void setWishListId(int wishListId)
BasketIf
setWishListId in interface BasketIfwishListId - the wishListId to setpublic int getWishListItemId()
BasketIf
getWishListItemId in interface BasketIfpublic void setWishListItemId(int wishListItemId)
BasketIf
setWishListItemId in interface BasketIfwishListItemId - the wishListItemId to setpublic boolean isUseBasketPrice()
BasketIf
isUseBasketPrice in interface BasketIfpublic void setUseBasketPrice(boolean useBasketPrice)
BasketIf
setUseBasketPrice in interface BasketIfuseBasketPrice - the useBasketPrice to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||