|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 FormField Summary | |
---|---|
ProductItem |
productItem
Deprecated Containment: By Value Multiplicity: 1:1 |
double |
quantity
Deprecated Containment: By Value Multiplicity: 1:1 |
Money |
shipping
Deprecated Containment: By Value Multiplicity: 1:1 |
Money |
tax
Deprecated Containment: By Value Multiplicity: 1:1 |
Money |
unitPrice
Deprecated Containment: By Value Multiplicity: 1:1 |
Fields inherited from class com.beasys.commerce.foundation.BelongingImpl |
---|
__classIdentifier, __containingBelonging, __containingEntity, __mapKey, __sequenceNumber, _isDirty |
Constructor Summary | |
---|---|
ShoppingCartLineImpl()
Deprecated |
Method Summary | |
---|---|
int |
compareTo(Object o)
Deprecated Compare this belonging to another |
Money |
getBaseSavings()
Deprecated Get the savings from the MSRP to the base unit price, exluding non-catalog discounts, i.e. |
Money |
getBaseTotal()
Deprecated Get the total excluing non-catalog discounts, i.e. |
Money |
getDiscountedPrice()
Deprecated get the Discounted Price for the line |
ArrayList |
getDiscountPresentations()
Deprecated get the Discount Description Array list of the discounts that apply to a particular shopping cart line |
Money |
getLineTotal(int totalType)
Deprecated Gets the line total for the given total type |
ProductItem |
getProductItem()
Deprecated Get the value of productItem |
double |
getQuantity()
Deprecated Get the value of quantity |
Money |
getSavings()
Deprecated Get the value of the savings made on this line. |
Money |
getShipping()
Deprecated Get the value of shipping |
Money |
getTax()
Deprecated Get the value of tax |
Money |
getUnitPrice()
Deprecated Get the value of unitPrice |
String |
interfaceName()
Deprecated interfaceName() returns the unqualified name of the interface from the UML model |
void |
setByValue(Belonging value)
Deprecated It is possible to call set-by-value with a superclass. |
void |
setDiscountedPrice(Money discountedPrice)
Deprecated Set the discount price for this line |
void |
setDiscountPresentations(ArrayList discountPresentations)
Deprecated Set the value of discount Presentations of the discounts that apply to a particular shopping cart line |
void |
setProductItem(ProductItem productItem)
Deprecated Set the value of productItem |
void |
setQuantity(double quantity)
Deprecated Set the value of quantity |
void |
setShipping(Money shipping)
Deprecated Set the value of shipping |
void |
setTax(Money tax)
Deprecated Set the value of tax |
void |
setUnitPrice(Money unitPrice)
Deprecated Set the value of unitPrice |
Belonging |
value()
Deprecated 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 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 ShoppingCartLine
public void setQuantity(double quantity)
setQuantity
in interface ShoppingCartLine
quantity
- quantity to be addedpublic Money getUnitPrice()
getUnitPrice
in interface ShoppingCartLine
public void setUnitPrice(Money unitPrice)
setUnitPrice
in interface ShoppingCartLine
unitMoney
- unitPrice to be setpublic ProductItem getProductItem()
getProductItem
in interface ShoppingCartLine
public void setProductItem(ProductItem productItem)
setProductItem
in interface ShoppingCartLine
productItem
- productItem to be addedpublic Belonging value()
value
in interface Belonging
public String interfaceName()
interfaceName
in interface Belonging
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.
setByValue
in interface Belonging
setByValue
in class BelongingImpl
value
- The Belonging
to use for initialization.public int compareTo(Object o)
compareTo
in interface Comparable
compareTo
in class BelongingImpl
o
- target object for comparision
public Money getTax()
getTax
in interface ShoppingCartLine
public void setTax(Money tax)
setTax
in interface ShoppingCartLine
tax
- tax to be addedpublic Money getShipping()
getShipping
in interface ShoppingCartLine
public void setShipping(Money shipping)
setShipping
in interface ShoppingCartLine
shipping
- shipping to be addedpublic Money getLineTotal(int totalType) throws InvalidArgumentException
getLineTotal
in interface ShoppingCartLine
total
- type
InvalidArgumentException
public Money getSavings()
getSavings
in interface ShoppingCartLine
public Money getBaseSavings()
getBaseSavings
in interface ShoppingCartLine
public Money getBaseTotal()
getBaseTotal
in interface ShoppingCartLine
public Money getDiscountedPrice()
getDiscountedPrice
in interface ShoppingCartLine
public void setDiscountedPrice(Money discountedPrice)
setDiscountedPrice
in interface ShoppingCartLine
discountedPrice,
- the price as discountedpublic ArrayList getDiscountPresentations()
getDiscountPresentations
in interface ShoppingCartLine
public void setDiscountPresentations(ArrayList discountPresentations)
setDiscountPresentations
in interface ShoppingCartLine
discountPresentations,
- an ArrayList of DiscountDescription objects
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |