|
Copyright © 2006 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 FormField 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 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 © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |