|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--test.ojb.tutorial2.Product
represents product objects in the tutorial system
Field Summary | |
protected java.lang.String |
name
product name |
protected double |
price
price per item |
protected int |
stock
stock of currently available items |
Constructor Summary | |
Product()
|
Method Summary | |
int |
getId()
Insert the method's description here. |
java.lang.String |
getName()
Insert the method's description here. |
double |
getPrice()
Insert the method's description here. |
int |
getStock()
Insert the method's description here. |
void |
setId(int new_id)
Insert the method's description here. |
void |
setName(java.lang.String newName)
Insert the method's description here. |
void |
setPrice(double newPrice)
Insert the method's description here. |
void |
setStock(int newStock)
Insert the method's description here. |
java.lang.String |
toString()
Insert the method's description here. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected double price
protected int stock
protected java.lang.String name
Constructor Detail |
public Product()
Method Detail |
public int getId()
public java.lang.String getName()
public double getPrice()
public int getStock()
public void setId(int new_id)
new_id
- intpublic void setName(java.lang.String newName)
newName
- java.lang.Stringpublic void setPrice(double newPrice)
newPrice
- doublepublic void setStock(int newStock)
newStock
- intpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |