|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.app.OrderProduct
public class OrderProduct
OrderProduct class
| Constructor Summary | |
|---|---|
OrderProduct()
Constructor |
|
OrderProduct(com.workingdogs.village.Record vr,
org.apache.torque.util.Criteria c)
Instantiates the attributes of the OrderProduct object from a Record object |
|
| Method Summary | |
|---|---|
void |
calculateTotals(int scale,
int taxQuantityRule)
We calculate finalPriceIncTax, finalPriceExTax and tax starting from price which is the price of one product without options and without tax. |
java.lang.String |
getCustom1()
|
java.lang.String |
getCustom2()
|
java.lang.String |
getCustom3()
|
java.lang.String |
getCustom4()
|
java.lang.String |
getCustom5()
|
java.math.BigDecimal |
getDiscountPercent()
Used mainly with percentage tiered pricing discounts to store the percentage discount. |
java.math.BigDecimal |
getFinalPriceExTax()
|
java.math.BigDecimal |
getFinalPriceIncTax()
|
int |
getId()
|
java.lang.String |
getModel()
The product model. |
java.lang.String |
getName()
The product name. |
OptionIf[] |
getOpts()
An array of Option objects defining how the details of the product. |
OrderIf |
getOrder()
|
int |
getOrderId()
|
java.math.BigDecimal |
getPrice()
The price of a single product without tax or options. |
java.math.BigDecimal |
getPrice0()
|
java.math.BigDecimal |
getPrice1()
|
java.math.BigDecimal |
getPrice2()
|
java.math.BigDecimal |
getPrice3()
|
ProductIf |
getProduct()
|
int |
getProductId()
|
int |
getQuantity()
|
java.lang.String |
getSku()
The SKU of the product |
int |
getState()
The state of the product when added to the order. |
java.math.BigDecimal |
getTax()
The amount of tax added. |
java.lang.String |
getTaxCode()
tax code used when looking up tax from an external service |
java.math.BigDecimal |
getTaxRate()
The tax rate applied. |
int |
getType()
product type. |
java.math.BigDecimal |
getWeight()
The weight 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. |
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 |
setDiscountPercent(java.math.BigDecimal discountPercent)
Used mainly with percentage tiered pricing discounts to store the percentage discount. |
void |
setFinalPriceExTax(java.math.BigDecimal finalPriceExTax)
|
void |
setFinalPriceIncTax(java.math.BigDecimal finalPriceIncTax)
|
void |
setId(int id)
|
void |
setModel(java.lang.String model)
The product model. |
void |
setName(java.lang.String name)
The product name. |
void |
setOpts(OptionIf[] opts)
An array of Option objects defining how the details of the product. |
void |
setOrder(OrderIf order)
|
void |
setOrderId(int orderId)
|
void |
setPrice(java.math.BigDecimal price)
The price of a single product without tax or options. |
void |
setPrice0(java.math.BigDecimal price0)
|
void |
setPrice1(java.math.BigDecimal price1)
|
void |
setPrice2(java.math.BigDecimal price2)
|
void |
setPrice3(java.math.BigDecimal price3)
|
void |
setProduct(ProductIf product)
|
void |
setProductId(int productId)
|
void |
setQuantity(int quantity)
|
void |
setSku(java.lang.String sku)
The SKU of the product |
void |
setState(int state)
The state of the product when added to the order. |
void |
setTax(java.math.BigDecimal tax)
The amount of tax added. |
void |
setTaxCode(java.lang.String taxCode)
tax code used when looking up tax from an external service |
void |
setTaxRate(java.math.BigDecimal taxRate)
The tax rate applied. |
void |
setType(int type)
product type. |
void |
setWeight(java.math.BigDecimal weight)
The weight of the product |
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 OrderProduct()
public OrderProduct(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 void calculateTotals(int scale,
int taxQuantityRule)
scale - The scale used in the calculationstaxQuantityRule - The tax calculation rule to usepublic int getId()
getId in interface OrderProductIfpublic void setId(int id)
setId in interface OrderProductIfid - The id to set.public java.lang.String getModel()
OrderProductIf
getModel in interface OrderProductIfpublic void setModel(java.lang.String model)
OrderProductIf
setModel in interface OrderProductIfmodel - The model to set.public java.lang.String getName()
OrderProductIf
getName in interface OrderProductIfpublic void setName(java.lang.String name)
OrderProductIf
setName in interface OrderProductIfname - The name to set.public OptionIf[] getOpts()
OrderProductIf
getOpts in interface OrderProductIfpublic void setOpts(OptionIf[] opts)
OrderProductIf
setOpts in interface OrderProductIfopts - The opts to set.public OrderIf getOrder()
getOrder in interface OrderProductIfpublic void setOrder(OrderIf order)
setOrder in interface OrderProductIforder - The order to set.public int getOrderId()
getOrderId in interface OrderProductIfpublic void setOrderId(int orderId)
setOrderId in interface OrderProductIforderId - The orderId to set.public java.math.BigDecimal getPrice()
OrderProductIf
getPrice in interface OrderProductIfpublic void setPrice(java.math.BigDecimal price)
OrderProductIf
setPrice in interface OrderProductIfprice - The price to set.public ProductIf getProduct()
getProduct in interface OrderProductIfpublic void setProduct(ProductIf product)
setProduct in interface OrderProductIfproduct - The product to set.public int getProductId()
getProductId in interface OrderProductIfpublic void setProductId(int productId)
setProductId in interface OrderProductIfproductId - The productId to set.public int getQuantity()
getQuantity in interface OrderProductIfpublic void setQuantity(int quantity)
setQuantity in interface OrderProductIfquantity - The quantity to set.public java.math.BigDecimal getFinalPriceExTax()
getFinalPriceExTax in interface OrderProductIfpublic void setFinalPriceExTax(java.math.BigDecimal finalPriceExTax)
setFinalPriceExTax in interface OrderProductIffinalPriceExTax - The finalPriceExTax to set.public java.math.BigDecimal getFinalPriceIncTax()
getFinalPriceIncTax in interface OrderProductIfpublic void setFinalPriceIncTax(java.math.BigDecimal finalPriceIncTax)
setFinalPriceIncTax in interface OrderProductIffinalPriceIncTax - The finalPriceIncTax to set.public java.math.BigDecimal getTaxRate()
OrderProductIf
getTaxRate in interface OrderProductIfpublic void setTaxRate(java.math.BigDecimal taxRate)
OrderProductIf
setTaxRate in interface OrderProductIftaxRate - The taxRate to set.public java.math.BigDecimal getTax()
OrderProductIf
getTax in interface OrderProductIfpublic void setTax(java.math.BigDecimal tax)
OrderProductIf
setTax in interface OrderProductIftax - The tax to set.public int getType()
OrderProductIf
getType in interface OrderProductIfpublic void setType(int type)
OrderProductIf
setType in interface OrderProductIftype - The type to set.public java.lang.String getCustom1()
getCustom1 in interface OrderProductIfpublic void setCustom1(java.lang.String custom1)
setCustom1 in interface OrderProductIfcustom1 - The custom1 to set.public java.lang.String getCustom2()
getCustom2 in interface OrderProductIfpublic void setCustom2(java.lang.String custom2)
setCustom2 in interface OrderProductIfcustom2 - The custom2 to set.public java.lang.String getCustom3()
getCustom3 in interface OrderProductIfpublic void setCustom3(java.lang.String custom3)
setCustom3 in interface OrderProductIfcustom3 - The custom3 to set.public java.lang.String getCustom4()
getCustom4 in interface OrderProductIfpublic void setCustom4(java.lang.String custom4)
setCustom4 in interface OrderProductIfcustom4 - The custom4 to set.public java.lang.String getCustom5()
getCustom5 in interface OrderProductIfpublic void setCustom5(java.lang.String custom5)
setCustom5 in interface OrderProductIfcustom5 - The custom5 to set.public java.math.BigDecimal getPrice0()
getPrice0 in interface OrderProductIfpublic void setPrice0(java.math.BigDecimal price0)
setPrice0 in interface OrderProductIfprice0 - The price0 to set.public java.math.BigDecimal getPrice1()
getPrice1 in interface OrderProductIfpublic void setPrice1(java.math.BigDecimal price1)
setPrice1 in interface OrderProductIfprice1 - The price1 to set.public java.math.BigDecimal getPrice2()
getPrice2 in interface OrderProductIfpublic void setPrice2(java.math.BigDecimal price2)
setPrice2 in interface OrderProductIfprice2 - The price2 to set.public java.math.BigDecimal getPrice3()
getPrice3 in interface OrderProductIfpublic void setPrice3(java.math.BigDecimal price3)
setPrice3 in interface OrderProductIfprice3 - The price3 to set.public java.lang.String getSku()
OrderProductIf
getSku in interface OrderProductIfpublic void setSku(java.lang.String sku)
OrderProductIf
setSku in interface OrderProductIfsku - the sku to setpublic int getState()
OrderProductIf
getState in interface OrderProductIfpublic void setState(int state)
OrderProductIf
setState in interface OrderProductIfstate - the state to setpublic int getWishListId()
OrderProductIf
getWishListId in interface OrderProductIfpublic void setWishListId(int wishListId)
OrderProductIf
setWishListId in interface OrderProductIfwishListId - the wishListId to setpublic int getWishListItemId()
OrderProductIf
getWishListItemId in interface OrderProductIfpublic void setWishListItemId(int wishListItemId)
OrderProductIf
setWishListItemId in interface OrderProductIfwishListItemId - the wishListItemId to setpublic java.math.BigDecimal getDiscountPercent()
OrderProductIf
getDiscountPercent in interface OrderProductIfpublic void setDiscountPercent(java.math.BigDecimal discountPercent)
OrderProductIf
setDiscountPercent in interface OrderProductIfdiscountPercent - the discountPercent to setpublic java.math.BigDecimal getWeight()
OrderProductIf
getWeight in interface OrderProductIfpublic void setWeight(java.math.BigDecimal weight)
OrderProductIf
setWeight in interface OrderProductIfweight - the weight to setpublic java.lang.String getTaxCode()
OrderProductIf
getTaxCode in interface OrderProductIfpublic void setTaxCode(java.lang.String taxCode)
OrderProductIf
setTaxCode in interface OrderProductIftaxCode - the taxCode to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||