|
bea Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--theory.smart.foundation.SmartValue | +--theory.smart.ebusiness.order.OrderValue
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..
Order
,
OrderHome
,
Order.getOrderByValue()
,
Order.setOrderByValue(OrderValue)
, Serialized FormField Summary | |
SmartHandle |
customer
customer [Order] <>------> [ theory.smart.ebusiness.customer.Customer ]
|
java.lang.String |
key
key [Order] <*>------> [ String ] (Primary Key)
|
com.sun.java.util.collections.LinkedList |
orderLines
orderLine (List) [Order] <*>------> [ theory.smart.ebusiness.order.OrderLine ]
0..*
|
WorkflowContext |
status
status [Order] <*>------> [ theory.smart.ebusiness.order.OrderWorkflow ]
|
Constructor Summary | |
protected |
OrderValue()
Only get/setOrderByValue methods are allowed to call this constructor. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public java.lang.String key
key
[Order] <*>------> [String
] (Primary Key)
public com.sun.java.util.collections.LinkedList orderLines
orderLine (List)
[Order] <*>------> [theory.smart.ebusiness.order.OrderLine
]
0..*
public WorkflowContext status
status
[Order] <*>------> [theory.smart.ebusiness.order.OrderWorkflow
]
public SmartHandle customer
customer
[Order] <>------> [theory.smart.ebusiness.customer.Customer
]
Constructor Detail |
protected OrderValue()
|
bea Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |