|
© 2002 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.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(java.lang.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. |
Money |
getBaseTotal()
Get the total excluing non-catalog discounts, i.e. |
Money |
getDiscountedPrice()
get the Discounted Price for the line |
java.util.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 |
java.lang.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(java.util.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 |
| 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()
public void setQuantity(double quantity)
quantity - quantity to be addedpublic Money getUnitPrice()
public void setUnitPrice(Money unitPrice)
unitMoney - unitPrice to be setpublic ProductItem getProductItem()
public void setProductItem(ProductItem productItem)
productItem - productItem to be addedpublic Belonging value()
public java.lang.String interfaceName()
public 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.
public int compareTo(java.lang.Object o)
o - target object for comparisionpublic Money getTax()
public void setTax(Money tax)
tax - tax to be addedpublic Money getShipping()
public void setShipping(Money shipping)
shipping - shipping to be added
public Money getLineTotal(int totalType)
throws InvalidArgumentException
total - typepublic Money getSavings()
public Money getBaseSavings()
public Money getBaseTotal()
public Money getDiscountedPrice()
public void setDiscountedPrice(Money discountedPrice)
discountedPrice, - the price as discountedpublic java.util.ArrayList getDiscountPresentations()
public void setDiscountPresentations(java.util.ArrayList discountPresentations)
discountPresentations, - an ArrayList of DiscountDescription objects
|
© 2002 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||