|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.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 FormField Summary | |
java.util.ArrayList |
adjustmentPresentations
the list of OrderAdjustmentPresentation objects relating to a particular line. |
java.lang.String |
description
Containment: By Value Multiplicity: 1:1 |
Money |
msrp
Containment: By Value Multiplicity: 1:1 |
java.lang.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(java.lang.Object o)
Compare this belonging to another |
protected void |
freezeId()
Once this method is called, any calls to setId() will fail. |
java.util.ArrayList |
getAdjustmentPresentations()
Get the list of OrderAdjustmentPresentation objects |
java.lang.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 |
java.lang.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 |
java.lang.String |
interfaceName()
interfaceName() returns the unqualified name of the interface from the UML model |
void |
setAdjustmentPresentations(java.util.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(java.lang.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(java.lang.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 |
Field Detail |
public double quantity
public double totalLineAmount
public Money tax
public Money unitPrice
public Money shipping
public Money msrp
public java.lang.String productIdentifier
public java.lang.String description
public java.util.ArrayList adjustmentPresentations
Constructor Detail |
public OrderLineImpl()
Method Detail |
public double getQuantity()
public void setQuantity(double quantity)
quantity
- quantity to be addedpublic double getTotalLineAmount()
public void setTotalLineAmount(double totalLineAmount)
subTotalAmount
- subTotalAmount to be addedpublic Money getTax()
public void setTax(Money tax)
tax
- tax to be addedpublic Money getUnitPrice()
public void setUnitPrice(Money unitPrice)
unitPrice
- unitPrice to be addedpublic Money getShipping()
public void setShipping(Money shipping)
shipping
- shipping to be addedpublic java.lang.String getProductIdentifier()
public void setProductIdentifier(java.lang.String productIdentifier)
productIdentifier
- productIdentifier to be addedpublic Money getMsrp()
public void setMsrp(Money msrp)
Msrp
- Msrp to be addedpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- description to be addedpublic java.util.ArrayList getAdjustmentPresentations()
public void setAdjustmentPresentations(java.util.ArrayList adjustmentPresentations)
adjustments,
- the list of OrderDiscountPresentationspublic long getId()
public void setId(long id)
id
- the long order line id.protected void freezeId()
public Belonging value()
public java.lang.String interfaceName()
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.
public int compareTo(java.lang.Object o)
o
- target object for comparisionpublic Money getLineTotal(int totalType) throws InvalidArgumentException
total
- type
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |