|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.beasys.commerce.foundation.BelongingImpl
com.beasys.commerce.ebusiness.shoppingcart.ShoppingCartLineImpl
@Deprecated public class ShoppingCartLineImpl
This class combines an Item, a Quantity and a Money. The item is a reference to an entity bean.
ShoppingCartLine,
ShoppingCartLineHome,
Serialized Form| Field Summary | |
|---|---|
ProductItem |
productItem
Deprecated See BEA Commerce product offering |
double |
quantity
Deprecated See BEA Commerce product offering |
Money |
shipping
Deprecated See BEA Commerce product offering |
Money |
tax
Deprecated See BEA Commerce product offering |
Money |
unitPrice
Deprecated See BEA Commerce product offering |
| Fields inherited from class com.beasys.commerce.foundation.BelongingImpl |
|---|
__classIdentifier, __containingBelonging, __containingEntity, __mapKey, __sequenceNumber, _isDirty |
| Constructor Summary | |
|---|---|
ShoppingCartLineImpl()
Deprecated See BEA Commerce product offering |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Deprecated See BEA Commerce product offering |
Money |
getBaseSavings()
Deprecated See BEA Commerce product offering |
Money |
getBaseTotal()
Deprecated See BEA Commerce product offering |
Money |
getDiscountedPrice()
Deprecated See BEA Commerce product offering |
ArrayList |
getDiscountPresentations()
Deprecated See BEA Commerce product offering |
Money |
getLineTotal(int totalType)
Deprecated See BEA Commerce product offering |
ProductItem |
getProductItem()
Deprecated See BEA Commerce product offering |
double |
getQuantity()
Deprecated See BEA Commerce product offering |
Money |
getSavings()
Deprecated See BEA Commerce product offering |
Money |
getShipping()
Deprecated See BEA Commerce product offering |
Money |
getTax()
Deprecated See BEA Commerce product offering |
Money |
getUnitPrice()
Deprecated See BEA Commerce product offering |
String |
interfaceName()
Deprecated See BEA Commerce product offering |
void |
setByValue(Belonging value)
Deprecated See BEA Commerce product offering |
void |
setDiscountedPrice(Money discountedPrice)
Deprecated See BEA Commerce product offering |
void |
setDiscountPresentations(ArrayList discountPresentations)
Deprecated See BEA Commerce product offering |
void |
setProductItem(ProductItem productItem)
Deprecated See BEA Commerce product offering |
void |
setQuantity(double quantity)
Deprecated See BEA Commerce product offering |
void |
setShipping(Money shipping)
Deprecated See BEA Commerce product offering |
void |
setTax(Money tax)
Deprecated See BEA Commerce product offering |
void |
setUnitPrice(Money unitPrice)
Deprecated See BEA Commerce product offering |
Belonging |
value()
Deprecated See BEA Commerce product offering |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.beasys.commerce.foundation.Belonging |
|---|
clone, equals |
| Field Detail |
|---|
public Money unitPrice
public Money tax
public Money shipping
public double quantity
public ProductItem productItem
| Constructor Detail |
|---|
public ShoppingCartLineImpl()
| Method Detail |
|---|
public double getQuantity()
getQuantity in interface ShoppingCartLinepublic void setQuantity(double quantity)
setQuantity in interface ShoppingCartLinequantity - quantity to be addedpublic Money getUnitPrice()
getUnitPrice in interface ShoppingCartLinepublic void setUnitPrice(Money unitPrice)
setUnitPrice in interface ShoppingCartLineunitMoney - unitPrice to be setpublic ProductItem getProductItem()
getProductItem in interface ShoppingCartLinepublic void setProductItem(ProductItem productItem)
setProductItem in interface ShoppingCartLineproductItem - productItem to be addedpublic Belonging value()
value in interface Belongingpublic String interfaceName()
interfaceName in interface Belongingpublic void setByValue(Belonging value)
It is also possible to call set-by-value with a subclass. In this case, the specialized fields in the subclass will be ignored. The overridden fields in the subclass will be populated.
setByValue in interface BelongingsetByValue in class BelongingImplvalue - The Belonging to use for initialization.public int compareTo(Object o)
compareTo in interface ComparablecompareTo in class BelongingImplo - target object for comparision
public Money getTax()
getTax in interface ShoppingCartLinepublic void setTax(Money tax)
setTax in interface ShoppingCartLinetax - tax to be addedpublic Money getShipping()
getShipping in interface ShoppingCartLinepublic void setShipping(Money shipping)
setShipping in interface ShoppingCartLineshipping - shipping to be added
public Money getLineTotal(int totalType)
throws InvalidArgumentException
getLineTotal in interface ShoppingCartLinetotal - type
InvalidArgumentExceptionpublic Money getSavings()
getSavings in interface ShoppingCartLinepublic Money getBaseSavings()
getBaseSavings in interface ShoppingCartLinepublic Money getBaseTotal()
getBaseTotal in interface ShoppingCartLinepublic Money getDiscountedPrice()
getDiscountedPrice in interface ShoppingCartLinepublic void setDiscountedPrice(Money discountedPrice)
setDiscountedPrice in interface ShoppingCartLinediscountedPrice, - the price as discountedpublic ArrayList getDiscountPresentations()
getDiscountPresentations in interface ShoppingCartLinepublic void setDiscountPresentations(ArrayList discountPresentations)
setDiscountPresentations in interface ShoppingCartLinediscountPresentations, - an ArrayList of DiscountDescription objects
|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||