com.ora.jsp.beans.shopping
Class ProductBean
java.lang.Object
|
+--com.ora.jsp.beans.shopping.ProductBean
- All Implemented Interfaces:
- java.io.Serializable
- public class ProductBean
- extends java.lang.Object
- implements java.io.Serializable
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.
- Version:
- 1.0
- Author:
- Hans Bergsten, Gefion software
- See Also:
- Serialized Form
Field Summary |
private java.lang.String |
descr
|
private java.lang.String |
id
|
private java.lang.String |
name
|
private float |
price
|
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, registerNatives, toString, wait, wait, wait |
id
private java.lang.String id
name
private java.lang.String name
descr
private java.lang.String descr
price
private float price
ProductBean
public ProductBean()
getId
public java.lang.String getId()
- Returns the product id.
- Returns:
- the product id
getName
public java.lang.String getName()
- Returns the product name.
- Returns:
- the product name
getDescr
public java.lang.String getDescr()
- Returns the product description.
- Returns:
- the product description
getPrice
public float getPrice()
- Returns the product price.
- Returns:
- the product price
setId
void setId(java.lang.String id)
- Sets the product id.
- Parameters:
id
- the product id
setName
void setName(java.lang.String name)
- Sets the product name.
- Parameters:
name
- the product name
setDescr
void setDescr(java.lang.String descr)
- Sets the product description.
- Parameters:
descr
- the product description
setPrice
void setPrice(float price)
- Sets the product price.
- Parameters:
price
- the product price