|
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.ShoppingCartImpl
@Deprecated public class ShoppingCartImpl
The ShoppingCart is used to contain a list of ShoppingCartLines. The ShoppingCart also has a Customer associated with it so that it can calculate Customer dependent prices if necessary.
ShoppingCart,
ShoppingCartHome,
Serialized Form| Field Summary | |
|---|---|
Money |
shipping
Deprecated See BEA Commerce product offering |
Collection |
shoppingCartLines
Deprecated See BEA Commerce product offering |
Money |
subtotal
Deprecated See BEA Commerce product offering |
Money |
total
Deprecated See BEA Commerce product offering |
| Fields inherited from class com.beasys.commerce.foundation.BelongingImpl |
|---|
__classIdentifier, __containingBelonging, __containingEntity, __mapKey, __sequenceNumber, _isDirty |
| Constructor Summary | |
|---|---|
ShoppingCartImpl()
Deprecated See BEA Commerce product offering |
|
| Method Summary | |
|---|---|
void |
addItemsFromShoppingCart(ShoppingCart items)
Deprecated See BEA Commerce product offering |
ShoppingCartLine |
addProductItem(ProductItem item,
double quantity)
Deprecated See BEA Commerce product offering |
ShoppingCartLine |
addProductItem(ProductItem item,
double quantity,
Money unitPrice)
Deprecated See BEA Commerce product offering |
boolean |
addShoppingCartLine(ShoppingCartLine element)
Deprecated See BEA Commerce product offering |
boolean |
addShoppingCartLineCollection(Collection collection)
Deprecated See BEA Commerce product offering |
void |
clearShoppingCartLineCollection()
Deprecated See BEA Commerce product offering |
int |
compareTo(Object o)
Deprecated See BEA Commerce product offering |
boolean |
containsShoppingCartLine(ShoppingCartLine element)
Deprecated See BEA Commerce product offering |
boolean |
containsShoppingCartLineCollection(Collection collection)
Deprecated See BEA Commerce product offering |
ShoppingCartLine |
createShoppingCartLine()
Deprecated See BEA Commerce product offering |
boolean |
equalsShoppingCartLineCollection(Object object)
Deprecated See BEA Commerce product offering |
ShoppingCartLine |
findShoppingCartLine(String productIdentifier)
Deprecated See BEA Commerce product offering |
double |
getCategoryQuantity(String categoryId)
Deprecated See BEA Commerce product offering |
double |
getNumberOfUnits()
Deprecated See BEA Commerce product offering |
ArrayList |
getOrderDiscountPresentations()
Deprecated See BEA Commerce product offering |
Money |
getShipping()
Deprecated See BEA Commerce product offering |
ArrayList |
getShippingDiscountPresentations()
Deprecated See BEA Commerce product offering |
Collection |
getShoppingCartLineCollection()
Deprecated See BEA Commerce product offering |
Money |
getSubtotal()
Deprecated See BEA Commerce product offering |
Money |
getTotal()
Deprecated See BEA Commerce product offering |
Money |
getTotal(int totalType)
Deprecated See BEA Commerce product offering |
Money |
getTotalPrice()
Deprecated See BEA Commerce product offering |
String |
interfaceName()
Deprecated See BEA Commerce product offering |
boolean |
isEmpty()
Deprecated See BEA Commerce product offering |
boolean |
isShoppingCartLineCollectionEmpty()
Deprecated See BEA Commerce product offering |
void |
removeAllProductItems()
Deprecated See BEA Commerce product offering |
ProductItem |
removeProductItem(String productIdentifier)
Deprecated See BEA Commerce product offering |
boolean |
removeShoppingCartLine(ShoppingCartLine element)
Deprecated See BEA Commerce product offering |
boolean |
removeShoppingCartLineCollection(Collection collection)
Deprecated See BEA Commerce product offering |
boolean |
retainShoppingCartLineCollection(Collection collection)
Deprecated See BEA Commerce product offering |
void |
setByValue(Belonging value)
Deprecated See BEA Commerce product offering |
void |
setOrderDiscountPresentations(ArrayList orderDiscountPresentations)
Deprecated See BEA Commerce product offering |
void |
setProductItemQuantity(ProductItem item,
double quantity)
Deprecated See BEA Commerce product offering |
void |
setShipping(Money shipping)
Deprecated See BEA Commerce product offering |
void |
setShippingDiscountPresentations(ArrayList shippingDiscountPresentations)
Deprecated See BEA Commerce product offering |
void |
setShoppingCartLineCollection(Collection collection)
Deprecated See BEA Commerce product offering |
void |
setSubtotal(Money subtotal)
Deprecated See BEA Commerce product offering |
void |
setTotal(Money total)
Deprecated See BEA Commerce product offering |
int |
shoppingCartLineCollectionHashCode()
Deprecated See BEA Commerce product offering |
Iterator |
shoppingCartLineCollectionIterator()
Deprecated See BEA Commerce product offering |
int |
shoppingCartLineCollectionSize()
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 shipping
public Money subtotal
public Money total
public Collection shoppingCartLines
| Constructor Detail |
|---|
public ShoppingCartImpl()
| Method Detail |
|---|
public Money getTotal()
getTotal in interface ShoppingCartpublic void setTotal(Money total)
setTotal in interface ShoppingCarttotal - total to be addedpublic Money getSubtotal()
getSubtotal in interface ShoppingCartpublic void setSubtotal(Money subtotal)
setSubtotal in interface ShoppingCartsubtotal - subtotal to be addedpublic Money getShipping()
getShipping in interface ShoppingCartpublic void setShipping(Money shipping)
setShipping in interface ShoppingCartshipping - shipping to be addedpublic Collection getShoppingCartLineCollection()
getShoppingCartLineCollection in interface ShoppingCartpublic void setShoppingCartLineCollection(Collection collection)
setShoppingCartLineCollection in interface ShoppingCartpublic boolean addShoppingCartLine(ShoppingCartLine element)
addShoppingCartLine in interface ShoppingCartpublic boolean addShoppingCartLineCollection(Collection collection)
addShoppingCartLineCollection in interface ShoppingCartpublic void clearShoppingCartLineCollection()
clearShoppingCartLineCollection in interface ShoppingCartpublic boolean containsShoppingCartLine(ShoppingCartLine element)
containsShoppingCartLine in interface ShoppingCartpublic boolean containsShoppingCartLineCollection(Collection collection)
containsShoppingCartLineCollection in interface ShoppingCartpublic boolean equalsShoppingCartLineCollection(Object object)
equalsShoppingCartLineCollection in interface ShoppingCartpublic int shoppingCartLineCollectionHashCode()
shoppingCartLineCollectionHashCode in interface ShoppingCartpublic boolean isShoppingCartLineCollectionEmpty()
isShoppingCartLineCollectionEmpty in interface ShoppingCartpublic Iterator shoppingCartLineCollectionIterator()
shoppingCartLineCollectionIterator in interface ShoppingCartpublic boolean removeShoppingCartLine(ShoppingCartLine element)
removeShoppingCartLine in interface ShoppingCartpublic boolean removeShoppingCartLineCollection(Collection collection)
removeShoppingCartLineCollection in interface ShoppingCartpublic boolean retainShoppingCartLineCollection(Collection collection)
retainShoppingCartLineCollection in interface ShoppingCartpublic int shoppingCartLineCollectionSize()
shoppingCartLineCollectionSize in interface ShoppingCartpublic 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 void addItemsFromShoppingCart(ShoppingCart items)
throws InvalidArgumentException
addItemsFromShoppingCart in interface ShoppingCartInvalidArgumentException
public void setProductItemQuantity(ProductItem item,
double quantity)
throws InvalidArgumentException
setProductItemQuantity in interface ShoppingCartInvalidArgumentException
public ProductItem removeProductItem(String productIdentifier)
throws InvalidArgumentException
removeProductItem in interface ShoppingCartproductIdentifier, - (See productItem.getKey( ).getIdentifier( ) )
InvalidArgumentExceptionpublic void removeAllProductItems()
removeAllProductItems in interface ShoppingCart
public ShoppingCartLine findShoppingCartLine(String productIdentifier)
throws ItemNotInShoppingCartException,
InvalidArgumentException
findShoppingCartLine in interface ShoppingCartproductIdentifier, - (See productItem.getKey( ).getIdentifier( ) )
ItemNotInShoppingCartException
InvalidArgumentExceptionpublic double getNumberOfUnits()
getNumberOfUnits in interface ShoppingCart
public double getCategoryQuantity(String categoryId)
throws RemoteException
getCategoryQuantity in interface ShoppingCartcategoryId, - a string that identifies the category
RemoteExceptionpublic ShoppingCartLine createShoppingCartLine()
createShoppingCartLine in interface ShoppingCart
public ShoppingCartLine addProductItem(ProductItem item,
double quantity)
throws InvalidArgumentException
addProductItem in interface ShoppingCartInvalidArgumentException
public ShoppingCartLine addProductItem(ProductItem item,
double quantity,
Money unitPrice)
throws InvalidArgumentException
addProductItem in interface ShoppingCartInvalidArgumentExceptionpublic boolean isEmpty()
isEmpty in interface ShoppingCart
public Money getTotal(int totalType)
throws InvalidArgumentException
getTotal in interface ShoppingCarttotal - type
InvalidArgumentExceptionpublic Money getTotalPrice()
getTotalPrice in interface ShoppingCartpublic ArrayList getShippingDiscountPresentations()
getShippingDiscountPresentations in interface ShoppingCartpublic void setShippingDiscountPresentations(ArrayList shippingDiscountPresentations)
setShippingDiscountPresentations in interface ShoppingCartpublic ArrayList getOrderDiscountPresentations()
getOrderDiscountPresentations in interface ShoppingCartpublic void setOrderDiscountPresentations(ArrayList orderDiscountPresentations)
setOrderDiscountPresentations in interface ShoppingCart
|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||