|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--examples.e2e.common.InventoryImpl
This class implements the Inventory
interface
Constructor Summary | |
InventoryImpl(java.lang.String id,
long min,
long max,
long available,
java.lang.String stdImageURL,
java.lang.String wideImageURL)
Use this constructor to construct an inventory object with image URLs. |
|
InventoryImpl(java.lang.String id,
java.lang.String description,
long min,
long max,
long available)
Use this constructor to construct an inventory object without image URLs. |
Method Summary | |
long |
available()
Returns the current available quantity of inventory for this item. |
java.lang.String |
description()
Returns a description for the inventory object. |
java.lang.String |
id()
Returns the identifier for the inventory object. |
java.lang.String |
imageURL(int image)
Returns the URL to an image for the product. |
boolean |
isBelowMinimum()
Returns true if the available stock is less than the minimum requirement for the product. |
long |
max()
Returns the maximum quantity of inventory that should be maintained in stock for this item. |
long |
min()
Returns the minimum quantity of inventory that should be maintained in stock for this item. |
long |
qtyBelowMinimum()
Returns the quantity required to bring the available stock to the minimum specifed for the product. |
java.lang.String |
toString()
Returns a String that represents the value of this object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public InventoryImpl(java.lang.String id, long min, long max, long available, java.lang.String stdImageURL, java.lang.String wideImageURL)
public InventoryImpl(java.lang.String id, java.lang.String description, long min, long max, long available)
Method Detail |
public java.lang.String id()
public java.lang.String description()
public long min()
public long max()
public long available()
public java.lang.String imageURL(int image)
public boolean isBelowMinimum()
public long qtyBelowMinimum()
public java.lang.String toString()
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |