|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ora.jsp.beans.shopping.ProductBean
This class represents a product. It holds information about the product's name, description and price. All setter methods have package scope, since they are only used by the the CatalogBean.
Field Summary | |
private java.lang.String |
descr
|
private java.lang.String |
id
|
private java.lang.String |
name
|
private float |
price
|
Constructor Summary | |
ProductBean()
|
Method Summary | |
java.lang.String |
getDescr()
Returns the product description. |
java.lang.String |
getId()
Returns the product id. |
java.lang.String |
getName()
Returns the product name. |
float |
getPrice()
Returns the product price. |
(package private) void |
setDescr(java.lang.String descr)
Sets the product description. |
(package private) void |
setId(java.lang.String id)
Sets the product id. |
(package private) void |
setName(java.lang.String name)
Sets the product name. |
(package private) void |
setPrice(float price)
Sets the product price. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String id
private java.lang.String name
private java.lang.String descr
private float price
Constructor Detail |
public ProductBean()
Method Detail |
public java.lang.String getId()
public java.lang.String getName()
public java.lang.String getDescr()
public float getPrice()
void setId(java.lang.String id)
id
- the product idvoid setName(java.lang.String name)
name
- the product namevoid setDescr(java.lang.String descr)
descr
- the product descriptionvoid setPrice(float price)
price
- the product price
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |