|
BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This class combines an item and a quantity. The item is a reference to an entity bean. This class is persisted inside an order.
item
[OrderLine] <>------> [theory.smart.ebusiness.item.Item]
quantity
[OrderLine] <*>------> [theory.smart.axiom.units.Quantity]
price
[OrderLine] <*>------> [theory.smart.axiom.units.Price]
OrderLineHome,
OrderLineImpl| Method Summary | |
void |
correctPrice(Price newPrice)
Forcibly correct a price once it has been locked in. |
Item |
getItem()
Get the remote object reference of item |
Price |
getItemPrice(Customer customer)
Get the price for a single unit using the Item's price calculation policy. |
Price |
getLinePrice(Customer customer)
Get the value of the order by using the priceCalculationPolicy to determing the price and multiplying the price by the quantity. |
Price |
getPrice()
Get the value of price |
Quantity |
getQuantity()
Get the value of quantity |
void |
lockinPrice(Customer customer)
Freeze the price of the item by getting the Item price and storing a local copy of the value. |
void |
setItem(Item item)
Set the remote object reference of item |
void |
setPrice(Price price)
Set the value of price |
void |
setQuantity(Quantity quantity)
Set the value of quantity |
| Methods inherited from interface theory.smart.foundation.Belonging |
equals,
value |
| Methods inherited from interface com.sun.java.util.collections.Comparable |
compareTo |
| Method Detail |
public Item getItem()
throws java.rmi.RemoteException
public void setItem(Item item)
throws java.rmi.RemoteException
items - item to be addedpublic Quantity getQuantity()
public void setQuantity(Quantity quantity)
quantities - quantity to be addedpublic Price getPrice()
public void setPrice(Price price)
prices - price to be added
public Price getLinePrice(Customer customer)
throws java.rmi.RemoteException
public Price getItemPrice(Customer customer)
throws java.rmi.RemoteException
public void lockinPrice(Customer customer)
throws java.rmi.RemoteException
public void correctPrice(Price newPrice)
throws java.rmi.RemoteException
|
BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||