|
© 2005 BEA Systems, Inc. | |||||||||
| 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
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
Containment: By Value Multiplicity: 1:1 |
double |
quantity
Containment: By Value Multiplicity: 1:1 |
Money |
shipping
Containment: By Value Multiplicity: 1:1 |
Money |
tax
Containment: By Value Multiplicity: 1:1 |
Money |
unitPrice
Containment: By Value Multiplicity: 1:1 |
| Fields inherited from class com.beasys.commerce.foundation.BelongingImpl |
__classIdentifier, __containingBelonging, __containingEntity, __mapKey, __sequenceNumber, _isDirty |
| Constructor Summary | |
ShoppingCartLineImpl()
|
|
| Method Summary | |
int |
compareTo(Object o)
Compare this belonging to another |
Money |
getBaseSavings()
Get the savings from the MSRP to the base unit price, exluding non-catalog discounts, i.e. quantity * (MSRP - Unit Price) |
Money |
getBaseTotal()
Get the total excluing non-catalog discounts, i.e. |
Money |
getDiscountedPrice()
get the Discounted Price for the line |
ArrayList |
getDiscountPresentations()
get the Discount Description Array list of the discounts that apply to a particular shopping cart line |
Money |
getLineTotal(int totalType)
Gets the line total for the given total type |
ProductItem |
getProductItem()
Get the value of productItem |
double |
getQuantity()
Get the value of quantity |
Money |
getSavings()
Get the value of the savings made on this line. |
Money |
getShipping()
Get the value of shipping |
Money |
getTax()
Get the value of tax |
Money |
getUnitPrice()
Get the value of unitPrice |
String |
interfaceName()
interfaceName() returns the unqualified name of the interface from the UML model |
void |
setByValue(Belonging value)
It is possible to call set-by-value with a superclass. |
void |
setDiscountedPrice(Money discountedPrice)
Set the discount price for this line |
void |
setDiscountPresentations(ArrayList discountPresentations)
Set the value of discount Presentations of the discounts that apply to a particular shopping cart line |
void |
setProductItem(ProductItem productItem)
Set the value of productItem |
void |
setQuantity(double quantity)
Set the value of quantity |
void |
setShipping(Money shipping)
Set the value of shipping |
void |
setTax(Money tax)
Set the value of tax |
void |
setUnitPrice(Money unitPrice)
Set the value of unitPrice |
Belonging |
value()
value() is a more typesafe implementation of clone() |
| 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 ProductItem productItem
public double quantity
public Money shipping
public Money tax
public Money unitPrice
| Constructor Detail |
public ShoppingCartLineImpl()
| Method Detail |
public int compareTo(Object o)
compareTo in interface ComparablecompareTo in class BelongingImplo - target object for comparision
public Money getBaseSavings()
getBaseSavings in interface ShoppingCartLinepublic Money getBaseTotal()
getBaseTotal in interface ShoppingCartLinepublic Money getDiscountedPrice()
getDiscountedPrice in interface ShoppingCartLinepublic ArrayList getDiscountPresentations()
getDiscountPresentations in interface ShoppingCartLine
public Money getLineTotal(int totalType)
throws InvalidArgumentException
getLineTotal in interface ShoppingCartLineInvalidArgumentExceptionpublic ProductItem getProductItem()
getProductItem in interface ShoppingCartLinepublic double getQuantity()
getQuantity in interface ShoppingCartLinepublic Money getSavings()
getSavings in interface ShoppingCartLinepublic Money getShipping()
getShipping in interface ShoppingCartLinepublic Money getTax()
getTax in interface ShoppingCartLinepublic Money getUnitPrice()
getUnitPrice in interface ShoppingCartLinepublic 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 void setDiscountedPrice(Money discountedPrice)
setDiscountedPrice in interface ShoppingCartLinepublic void setDiscountPresentations(ArrayList discountPresentations)
setDiscountPresentations in interface ShoppingCartLinepublic void setProductItem(ProductItem productItem)
setProductItem in interface ShoppingCartLineproductItem - productItem to be addedpublic void setQuantity(double quantity)
setQuantity in interface ShoppingCartLinequantity - quantity to be addedpublic void setShipping(Money shipping)
setShipping in interface ShoppingCartLineshipping - shipping to be addedpublic void setTax(Money tax)
setTax in interface ShoppingCartLinetax - tax to be addedpublic void setUnitPrice(Money unitPrice)
setUnitPrice in interface ShoppingCartLineunitPrice - unitPrice to be setpublic Belonging value()
value in interface Belonging
|
© 2005 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||