coreservlets
Class ItemOrder
java.lang.Object
|
+--coreservlets.ItemOrder
- public class ItemOrder
- extends Object
Associates a catalog Item with a specific order by
keeping track of the number ordered and the total price.
Also provides some convenience methods to get at the
Item data without first extracting the Item separately.
Taken from Core Servlets and JavaServer Pages
from Prentice Hall and Sun Microsystems Press,
http://www.coreservlets.com/.
© 2000 Marty Hall; may be freely used or adapted.
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ItemOrder
public ItemOrder(Item item)
getItem
public Item getItem()
setItem
protected void setItem(Item item)
getItemID
public String getItemID()
getShortDescription
public String getShortDescription()
getLongDescription
public String getLongDescription()
getUnitCost
public double getUnitCost()
getNumItems
public int getNumItems()
setNumItems
public void setNumItems(int n)
incrementNumItems
public void incrementNumItems()
cancelOrder
public void cancelOrder()
getTotalCost
public double getTotalCost()
 |
|---|
| CSAJSP @ amazon.com |
|---|