| 
© 2004 BEA Systems, Inc. | |||||||||
| 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.order.OrderLineImpl
OrderLine represents one line in an Order. It contains a reference to an Item, a Quantity, a unitPrice and a list of Adjustments to the total line price.
OrderLine, 
OrderLineHome, 
Serialized Form| Field Summary | |
 ArrayList | 
adjustmentPresentations
the list of OrderAdjustmentPresentation objects relating to a particular line.  | 
 String | 
description
Containment: By Value Multiplicity: 1:1  | 
 Money | 
msrp
Containment: By Value Multiplicity: 1:1  | 
 String | 
productIdentifier
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  | 
 double | 
totalLineAmount
The total for the line  | 
 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 | |
OrderLineImpl()
 | 
|
| Method Summary | |
 int | 
compareTo(Object o)
Compare this belonging to another  | 
protected  void | 
freezeId()
Once this method is called, any calls to setId() will fail.  | 
 ArrayList | 
getAdjustmentPresentations()
Get the list of OrderAdjustmentPresentation objects  | 
 String | 
getDescription()
Get the value of description  | 
 long | 
getId()
Get order line id.  | 
 Money | 
getLineTotal(int totalType)
Gets the line total for the given total type  | 
 Money | 
getMsrp()
Get the value of Msrp  | 
 String | 
getProductIdentifier()
Get the value of productIdentifier  | 
 double | 
getQuantity()
Get the value of quantity  | 
 Money | 
getShipping()
Get the value of shipping  | 
 Money | 
getTax()
Get the value of tax  | 
 double | 
getTotalLineAmount()
Get the value of totalLineAmount  | 
 Money | 
getUnitPrice()
Get the value of unitPrice  | 
 String | 
interfaceName()
interfaceName() returns the unqualified name of the interface from the UML model  | 
 void | 
setAdjustmentPresentations(ArrayList adjustmentPresentations)
Set the list of OrderAdjustmentPresentation object  | 
 void | 
setByValue(Belonging value)
It is possible to call set-by-value with a superclass.  | 
 void | 
setDescription(String description)
Set the value of description  | 
 void | 
setId(long id)
Set the order line id.  | 
 void | 
setMsrp(Money msrp)
Set the value of Msrp  | 
 void | 
setProductIdentifier(String productIdentifier)
Set the value of productIdentifier  | 
 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 | 
setTotalLineAmount(double totalLineAmount)
Set the value of subTotalAmount  | 
 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 | 
| Methods inherited from interface com.beasys.commerce.foundation.Belonging | 
clone, equals | 
| Field Detail | 
public ArrayList adjustmentPresentations
public String description
public Money msrp
public String productIdentifier
public double quantity
public Money shipping
public Money tax
public double totalLineAmount
public Money unitPrice
| Constructor Detail | 
public OrderLineImpl()
| Method Detail | 
public int compareTo(Object o)
compareTo in interface ComparablecompareTo in class BelongingImplo - target object for comparision
protected void freezeId()
public ArrayList getAdjustmentPresentations()
getAdjustmentPresentations in interface OrderLinepublic String getDescription()
getDescription in interface OrderLinepublic long getId()
getId in interface OrderLine
public Money getLineTotal(int totalType)
                   throws InvalidArgumentException
getLineTotal in interface OrderLineInvalidArgumentExceptionpublic Money getMsrp()
getMsrp in interface OrderLinepublic String getProductIdentifier()
getProductIdentifier in interface OrderLinepublic double getQuantity()
getQuantity in interface OrderLinepublic Money getShipping()
getShipping in interface OrderLinepublic Money getTax()
getTax in interface OrderLinepublic double getTotalLineAmount()
getTotalLineAmount in interface OrderLinepublic Money getUnitPrice()
getUnitPrice in interface OrderLinepublic String interfaceName()
interfaceName in interface Belongingpublic void setAdjustmentPresentations(ArrayList adjustmentPresentations)
setAdjustmentPresentations in interface OrderLinepublic 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 void setDescription(String description)
setDescription in interface OrderLinedescription - description to be addedpublic void setId(long id)
setId in interface OrderLineid - the long order line id.public void setMsrp(Money msrp)
setMsrp in interface OrderLinemsrp - msrp to be addedpublic void setProductIdentifier(String productIdentifier)
setProductIdentifier in interface OrderLineproductIdentifier - productIdentifier to be addedpublic void setQuantity(double quantity)
setQuantity in interface OrderLinequantity - quantity to be addedpublic void setShipping(Money shipping)
setShipping in interface OrderLineshipping - shipping to be addedpublic void setTax(Money tax)
setTax in interface OrderLinetax - tax to be addedpublic void setTotalLineAmount(double totalLineAmount)
setTotalLineAmount in interface OrderLinetotalLineAmount - quantity to be addedpublic void setUnitPrice(Money unitPrice)
setUnitPrice in interface OrderLineunitPrice - unitPrice to be addedpublic Belonging value()
value in interface Belonging
  | 
© 2004 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||