com.beasys.commerce.ebusiness.order
Class OrderAdjustmentPresentation
java.lang.Object
|
+--com.bea.commerce.ebusiness.price.service.DiscountPresentation
|
+--com.beasys.commerce.ebusiness.order.OrderAdjustmentPresentation
- public class OrderAdjustmentPresentation
- extends DiscountPresentation
- implements java.io.Serializable
This class is used to store presentation information related to
an Order or an OrderLine adjustment computation.
It is used by JSPs to show the consumer
why they are receiving a adjustment and how the prices are computed.
A List of OrderAdjustmentPresentation's is associated
with the overall Order and each of its OrderLine.
- See Also:
com.bea.commerce.ebusiness.price.engine.DiscountPresentation
,
, Serialized Form
Constructor Summary
|
OrderAdjustmentPresentation(double quantity,
Money unitPrice,
Money discount,
java.lang.String computation,
java.lang.String reason,
long discountId,
java.lang.String adjustmentType)
This constructor calls its super-class constructor
and sets the discountId and adjustment type
data members. |
Method Summary
|
java.lang.Object |
clone()
The clone method creates a new OrderAdjustmentPresentation
object and call its contructor. |
java.lang.String |
getAdjustmentType()
|
long |
getDiscountId()
|
void |
setAdjustmentType(java.lang.String adjustmentType)
Sets the presentation string associated with the
adjustmentType of the discount, e.g. |
void |
setDiscountId(long discountId)
Sets the discountId over which the discount
is applied for this line. |
java.lang.String |
toString()
A debug statement for now. |
Methods inherited from class com.bea.commerce.ebusiness.price.service.DiscountPresentation |
getComputation,
getDiscount,
getQuantity,
getReason,
getShortText,
getUnitPrice,
set,
setComputation,
setDiscount,
setQuantity,
setReason,
setUnitPrice |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
OrderAdjustmentPresentation
public OrderAdjustmentPresentation(double quantity,
Money unitPrice,
Money discount,
java.lang.String computation,
java.lang.String reason,
long discountId,
java.lang.String adjustmentType)
- This constructor calls its super-class constructor
and sets the discountId and adjustment type
data members.
getDiscountId
public long getDiscountId()
- Returns:
- the discountId which refers to the applied discount
setDiscountId
public void setDiscountId(long discountId)
- Sets the discountId over which the discount
is applied for this line.
- Parameters:
discountId,
- a long
getAdjustmentType
public java.lang.String getAdjustmentType()
- Returns:
- the String associated with the adjusment type
setAdjustmentType
public void setAdjustmentType(java.lang.String adjustmentType)
- Sets the presentation string associated with the
adjustmentType of the discount, e.g. "10% off", "$5 off"
clone
public java.lang.Object clone()
- The clone method creates a new OrderAdjustmentPresentation
object and call its contructor.
- Overrides:
- clone in class java.lang.Object
toString
public java.lang.String toString()
- A debug statement for now.
- Overrides:
- toString in class DiscountPresentation
Copyright © 2002 BEA Systems, Inc. All Rights Reserved