|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ivata.mask.web.demo.valueobject.DemoValueObject
com.ivata.mask.web.demo.product.ProductDO
Represents a single product which can be ordered.
| Constructor Summary | |
ProductDO()
Construct a new product instance with no id. |
|
ProductDO(int id)
Construct a new product instance with the given unique identifier. |
|
| Method Summary | |
java.lang.String |
getDescription()
The product's description is a long text designed to make you desperate to own one immediately. |
java.lang.String |
getDisplayValue()
For products, the value displayed is always the product's name. |
java.lang.String |
getName()
The name of a product is unique among products - that short text which uniquely identifies it. |
java.math.BigDecimal |
getPrice()
What price quality? This is the cost of a single unit of the product. |
void |
setDescription(java.lang.String descriptionParam)
The product's description is a long text designed to make you desperate to own one immediately. |
void |
setName(java.lang.String nameParam)
The name of a product is unique among products - that short text which uniquely identifies it. |
void |
setPrice(java.math.BigDecimal priceParam)
Set the cost of one unit of this product. |
| Methods inherited from class com.ivata.mask.web.demo.valueobject.DemoValueObject |
getId, getIdString, setId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ProductDO()
Construct a new product instance with no id.
public ProductDO(int id)
Construct a new product instance with the given unique identifier.
id - unique identifier of this product.| Method Detail |
public java.lang.String getDescription()
public java.lang.String getDisplayValue()
com.ivata.mask.valueobject.ValueObject#getStringValue()public java.lang.String getName()
public java.math.BigDecimal getPrice()
public void setDescription(java.lang.String descriptionParam)
descriptionParam - long text designed to make you drool.public void setName(java.lang.String nameParam)
nameParam - unique name of this product.public void setPrice(java.math.BigDecimal priceParam)
priceParam - cost of a single unit of this product.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||