theory.smart.ebusiness.order
Class OrderValue
java.lang.Object
|
+--theory.smart.foundation.SmartValue
|
+--theory.smart.ebusiness.order.OrderValue
- Direct Known Subclasses:
- GiftRegistryValue
- public class OrderValue
- extends SmartValue
The Order class collects OrderLines and provides indirect access to the Items they contain. An OrderLine is an Item and the quantity that the customer intends to by. It is the conceptual equivalent of a shopping cart or basket.
The order combines the features of a list and a map. It is a list so that the positioning of the items in the order is preserved. The Order is responsible for ensuring that each item appears only once in the list and for adjusting the quantity as necessary..
When an Item is added to an Order an OrderLine is created. If an OrderLine for that Item already exists its quantity is adjusted..
- See Also:
Order
,
OrderHome
,
Order.getOrderByValue()
,
Order.setOrderByValue(OrderValue)
, Serialized Form
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
key
public java.lang.String key
key
[Order] <*>------> [String
] (Primary Key)
orderLines
public com.sun.java.util.collections.LinkedList orderLines
orderLine (List)
[Order] <*>------> [theory.smart.ebusiness.order.OrderLine
]
0..*
status
public WorkflowContext status
status
[Order] <*>------> [theory.smart.ebusiness.order.OrderWorkflow
]
customer
public SmartHandle customer
customer
[Order] <>------> [theory.smart.ebusiness.customer.Customer
]
Copyright © 2000 BEA Systems, Inc. All Rights Reserved