|
|||||||||||
| 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.order.item.OrderItemDO
Represents a single order item of this imaginary system.
| Constructor Summary | |
OrderItemDO()
Construct a new order item instance with no id. |
|
OrderItemDO(int idParam)
Construct a new order item instance with the given unique identifier. |
|
| Method Summary | |
java.lang.String |
getDisplayValue()
For an order item, the display value is given as "product x quantity". |
ProductDO |
getProduct()
Identifies the product being ordered as this item. |
int |
getQuantity()
Number of units of product being ordered. |
void |
setProduct(ProductDO productParam)
Identifies the product being ordered as this item. |
void |
setQuantity(int quantityParam)
Number of units of product being ordered. |
| 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 OrderItemDO()
Construct a new order item instance with no id.
public OrderItemDO(int idParam)
Construct a new order item instance with the given unique identifier.
idParam - unique identifier of this product.| Method Detail |
public ProductDO getProduct()
public int getQuantity()
public void setProduct(ProductDO productParam)
productParam - new product instance for this order.public void setQuantity(int quantityParam)
quantityParam - number of units of product being ordered.public java.lang.String getDisplayValue()
com.ivata.mask.valueobject.ValueObject#getStringValue()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||