java.lang .Object com.ivata.mask.web.demo.valueobject .DemoValueObject com.ivata.mask.web.demo.order.item .OrderItemDO OrderItemDO final public class OrderItemDO extends DemoValueObject (Code)
Represents a single order item of this imaginary system.
author: Colin MacLeodauthor: colin.macleod@ivata.com since: ivata masks 0.2 (2004-05-20)version: $Revision: 1.5 $
Constructor Summary 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.
Method Summary public String getDisplayValue () For an order item, the display value is given as "product
x quantity".public ProductDO getProduct () Identifies the product being ordered as this item.public intgetQuantity () Number of units of product being ordered.public voidsetProduct (ProductDO productParam) Identifies the product being ordered as this item.public voidsetQuantity (int quantityParam) Number of units of product being ordered.
OrderItemDO public OrderItemDO()(Code)
Construct a new order item instance with no id.
OrderItemDO public OrderItemDO(int idParam)(Code)
Construct a new order item instance with the given unique identifier.
Parameters: idParam - unique identifier of this product.
getProduct public ProductDO getProduct()(Code) Identifies the product being ordered as this item.
product instance for this order.
getQuantity public int getQuantity()(Code) Number of units of product being ordered.
number of units of product being ordered.
setProduct public void setProduct(ProductDO productParam)(Code) Identifies the product being ordered as this item.
Parameters: productParam - new product instance for this order.
setQuantity public void setQuantity(int quantityParam)(Code) Number of units of product being ordered.
Parameters: quantityParam - number of units of product being ordered.