com.beasys.commerce.ebusiness.shoppingcart
Class ShoppingCartLineImpl

java.lang.Object
  extended by com.beasys.commerce.foundation.BelongingImpl
      extended by com.beasys.commerce.ebusiness.shoppingcart.ShoppingCartLineImpl
All Implemented Interfaces
ShoppingCartLine, Belonging, BusinessSmartComponent, RelationalReference, Serializable, Cloneable, Comparable

Deprecated

@Deprecated
public class ShoppingCartLineImpl
extends BelongingImpl
implements ShoppingCartLine

This class combines an Item, a Quantity and a Money. The item is a reference to an entity bean.

See Also
ShoppingCartLine, ShoppingCartLineHome, Serialized Form

Field 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 com.beasys.commerce.foundation.BelongingImpl
clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, clone, doRelationalBinding, doRelationalBinding, doRelationalBindingOnElement, doRelationalBindingOnElement, doRelationalBindingOnElement, doRelationalBindingOnSingleton, doRelationalBindingOnSingleton, doRelationalBindingOnSingleton, doRelationalBindingWithMapKey, doRelationalBindingWithMapKey, doRelationalBindingWithMapKey, enumerateRelationalBinding, enumerateRelationalBinding, equals, get__classIdentifier, get__containingBelonging, get__containingEntity, get__containingEntityReference, get__mapKey, get__sequenceNumber, getPersistenceHelperPlugin, hashCode, set__classIdentifier, set__containingBelonging, set__containingEntity, set__containingEntityReference, set__mapKey, toString
 
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

unitPrice

public Money unitPrice
Deprecated 


tax

public Money tax
Deprecated 


shipping

public Money shipping
Deprecated 


quantity

public double quantity
Deprecated 


productItem

public ProductItem productItem
Deprecated 

Constructor Detail

ShoppingCartLineImpl

public ShoppingCartLineImpl()
Deprecated 
Method Detail

getQuantity

public double getQuantity()
Deprecated 
Get the value of quantity

Specified by:
getQuantity in interface ShoppingCartLine
Returns
quantity.

setQuantity

public void setQuantity(double quantity)
Deprecated 
Set the value of quantity

Specified by:
setQuantity in interface ShoppingCartLine
Parameters
quantity - quantity to be added

getUnitPrice

public Money getUnitPrice()
Deprecated 
Get the value of unitPrice

Specified by:
getUnitPrice in interface ShoppingCartLine
Returns
unitPrice.

setUnitPrice

public void setUnitPrice(Money unitPrice)
Deprecated 
Set the value of unitPrice

Specified by:
setUnitPrice in interface ShoppingCartLine
Parameters
unitMoney - unitPrice to be set

getProductItem

public ProductItem getProductItem()
Deprecated 
Get the value of productItem

Specified by:
getProductItem in interface ShoppingCartLine
Returns
productItem.

setProductItem

public void setProductItem(ProductItem productItem)
Deprecated 
Set the value of productItem

Specified by:
setProductItem in interface ShoppingCartLine
Parameters
productItem - productItem to be added

value

public Belonging value()
Deprecated 
value() is a more typesafe implementation of clone()

Specified by:
value in interface Belonging
Returns
a clone of this instance

interfaceName

public String interfaceName()
Deprecated 
interfaceName() returns the unqualified name of the interface from the UML model

Specified by:
interfaceName in interface Belonging
Returns
the unqualified name of the belonging interface from the UML model

setByValue

public void setByValue(Belonging value)
Deprecated 
It is possible to call set-by-value with a superclass. If that is the case, only the fields in the superclass will be set in this instance. The remaining fields get the default values.

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.

Specified by:
setByValue in interface Belonging
Overrides:
setByValue in class BelongingImpl
Parameters
value - The Belonging to use for initialization.

compareTo

public int compareTo(Object o)
Deprecated 
Compare this belonging to another

Specified by:
compareTo in interface Comparable
Specified by:
compareTo in class BelongingImpl
Parameters
o - target object for comparision
Returns
0 objects are equal

getTax

public Money getTax()
Deprecated 
Get the value of tax

Specified by:
getTax in interface ShoppingCartLine
Returns
tax.

setTax

public void setTax(Money tax)
Deprecated 
Set the value of tax

Specified by:
setTax in interface ShoppingCartLine
Parameters
tax - tax to be added

getShipping

public Money getShipping()
Deprecated 
Get the value of shipping

Specified by:
getShipping in interface ShoppingCartLine
Returns
shipping.

setShipping

public void setShipping(Money shipping)
Deprecated 
Set the value of shipping

Specified by:
setShipping in interface ShoppingCartLine
Parameters
shipping - shipping to be added

getLineTotal

public Money getLineTotal(int totalType)
                   throws InvalidArgumentException
Deprecated 
Gets the line total for the given total type

Specified by:
getLineTotal in interface ShoppingCartLine
Parameters
total - type
Throws
InvalidArgumentException

getSavings

public Money getSavings()
Deprecated 
Get the value of the savings made on this line. Calulates the difference between the Msrp and the unit price and multiplies it by the line quantity

Specified by:
getSavings in interface ShoppingCartLine
Returns
savings.

getBaseSavings

public Money getBaseSavings()
Deprecated 
Get the savings from the MSRP to the base unit price, exluding non-catalog discounts, i.e. quantity * (MSRP - Unit Price)

Specified by:
getBaseSavings in interface ShoppingCartLine
Returns
base savings

getBaseTotal

public Money getBaseTotal()
Deprecated 
Get the total excluing non-catalog discounts, i.e. the quantity * unit price for this line

Specified by:
getBaseTotal in interface ShoppingCartLine
Returns
baseTotal

getDiscountedPrice

public Money getDiscountedPrice()
Deprecated 
get the Discounted Price for the line

Specified by:
getDiscountedPrice in interface ShoppingCartLine
Returns
the price as discounted

setDiscountedPrice

public void setDiscountedPrice(Money discountedPrice)
Deprecated 
Set the discount price for this line

Specified by:
setDiscountedPrice in interface ShoppingCartLine
Parameters
discountedPrice, - the price as discounted

getDiscountPresentations

public ArrayList getDiscountPresentations()
Deprecated 
get the Discount Description Array list of the discounts that apply to a particular shopping cart line

Specified by:
getDiscountPresentations in interface ShoppingCartLine
Returns
an ArrayList of DiscountDescription objects

setDiscountPresentations

public void setDiscountPresentations(ArrayList discountPresentations)
Deprecated 
Set the value of discount Presentations of the discounts that apply to a particular shopping cart line

Specified by:
setDiscountPresentations in interface ShoppingCartLine
Parameters
discountPresentations, - an ArrayList of DiscountDescription objects


Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.