|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.samples.plantsbywebsphereejb.StoreItem
public class StoreItem
A class to hold a store item's data.
Constructor Summary | |
---|---|
StoreItem()
Default constructor. |
|
StoreItem(Inventory inv)
Constructor to convert an Inventory object to StoreItem. |
|
StoreItem(java.lang.String id,
java.lang.String name,
java.lang.String pkginfo,
float price,
float cost,
int category,
int quantity)
Constructor of store item |
|
StoreItem(java.lang.String id,
java.lang.String name,
java.lang.String heading,
java.lang.String desc,
java.lang.String pkginfo,
java.lang.String image,
float price,
float cost,
int quantity,
int category,
java.lang.String notes,
boolean isPublic)
Constructor of store item |
Method Summary | |
---|---|
boolean |
equals(StoreItem si)
Compares equality of store items. |
int |
getCategory()
Get the category of this store item. |
float |
getCost()
Get the cost of this store item. |
java.lang.String |
getDescription()
Get the description of this store item. |
java.lang.String |
getHeading()
Get the description heading of this store item. |
java.lang.String |
getID()
Get the ID of this store item. |
java.lang.String |
getImage()
Get the image file of this store item. |
java.lang.String |
getName()
Get the name of this store item. |
java.lang.String |
getNotes()
Get the notes of this store item. |
java.lang.String |
getPkginfo()
Get the package info of this store item. |
float |
getPrice()
Get the price of this store item. |
int |
getQuantity()
Get the quantity of this store item. |
boolean |
isPublic()
Is this store item viewable by the public? |
void |
setQuantity(int quantity)
Set the quantity of this store item. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StoreItem()
public StoreItem(java.lang.String id, java.lang.String name, java.lang.String pkginfo, float price, float cost, int category, int quantity)
id
- - id of this store item.name
- - name of this store item.pkginfo
- - package info of this store item.price
- - price of this store item.cost
- - cost of this store item.category
- - category of this store item.quantity
- - quantity of this store item.public StoreItem(java.lang.String id, java.lang.String name, java.lang.String heading, java.lang.String desc, java.lang.String pkginfo, java.lang.String image, float price, float cost, int quantity, int category, java.lang.String notes, boolean isPublic)
id
- - id of this store item.name
- - name of this store item.heading
- - description heading of this store item.desc
- - description of this store item.pkginfo
- - package info of this store item.image
- - image of this store item.price
- - price of this store item.cost
- - cost of this store item.quantity
- - quantity of this store item.category
- - category of this store item.notes
- - notes of this store item.isPublic
- - isPublic flag of this store item.public StoreItem(Inventory inv)
inv
- - Inventory itemMethod Detail |
---|
public boolean equals(StoreItem si)
public java.lang.String getID()
public java.lang.String getName()
public java.lang.String getHeading()
public java.lang.String getDescription()
public java.lang.String getPkginfo()
public java.lang.String getImage()
public float getPrice()
public float getCost()
public int getQuantity()
public int getCategory()
public java.lang.String getNotes()
public boolean isPublic()
public void setQuantity(int quantity)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |