FileDocCategorySizeDatePackage
ProductBean.javaAPI DocExample1819Tue Feb 28 11:34:06 GMT 2006com.ora.jsp.beans.shopping

ProductBean

public class ProductBean extends Object implements 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.
author
Hans Bergsten, Gefion software
version
2.0

Fields Summary
private String
id
private String
name
private String
descr
private float
price
Constructors Summary
Methods Summary
public java.lang.StringgetDescr()
Returns the product description.

return
the product description

        return descr;
    
public java.lang.StringgetId()
Returns the product id.

return
the product id

        return id;
    
public java.lang.StringgetName()
Returns the product name.

return
the product name

        return name;
    
public floatgetPrice()
Returns the product price.

return
the product price

        return price;
    
voidsetDescr(java.lang.String descr)
Sets the product description.

param
descr the product description

        this.descr = descr;
    
voidsetId(java.lang.String id)
Sets the product id.

param
id the product id

        this.id = id;
    
voidsetName(java.lang.String name)
Sets the product name.

param
name the product name

        this.name = name;
    
voidsetPrice(float price)
Sets the product price.

param
price the product price

        this.price = price;