|
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.EntityImpl | +--theory.smart.ebusiness.shipping.PackingListImpl
A Packing list contains order, shipping method and shipping address. It is created by the ShippingManager. The client is responsible for creating the packing list and passing it to invoicing This class contains a reference to a customer in the form of a customerKey. It is a String to avoid the shipping system from depending on customer. The reference has to be the primary key of the customer. Is is the responsibility of the ShippingMethod to determine the cost of delivering the Items using its ShippingCostCalculationPolicy.
Primary Key = theory.smart.ebusiness.shipping.PackingListPk
PackingList
,
PackingListHome
,
PackingListValue
, Serialized FormField Summary | |
SmartHandle |
order
order [PackingList] <>------> [ theory.smart.ebusiness.order.Order ]
|
java.lang.String |
orderKey
orderKey [PackingList] <*>------> [ String ] (Primary Key)
|
Address |
shippingAddress
shippingAddress [PackingList] <*>------> [ theory.smart.axiom.contact.Address ]
|
SmartHandle |
shippingMethod
shippingMethod [PackingList] <>------> [ theory.smart.ebusiness.shipping.ShippingMethod ]
|
java.lang.String |
specialInstructions
specialInstructions [PackingList] <*>------> [ String ]
|
Fields inherited from class theory.smart.foundation.EntityImpl |
ctx,
isDirty,
isLoaded |
Constructor Summary | |
PackingListImpl()
|
Method Summary | |
void |
ejbActivate()
ejbActivate method. |
PackingListPk |
ejbCreate(PackingListPk packingListPk)
|
java.util.Enumeration |
ejbFindAll()
|
PackingListPk |
ejbFindByPrimaryKey(PackingListPk pk)
|
void |
ejbLoad()
ejbLoad method. |
void |
ejbPassivate()
ejbPassivate method. |
void |
ejbPostCreate(PackingListPk packingListPk)
|
void |
ejbRemove()
ejbRemove method. |
void |
ejbStore()
ejbStore method. |
Customer |
getCustomer()
Acquire a reference to the customer that is store in the Order that is associated with this PackingList |
Order |
getOrder()
Get the remote object reference of order |
java.lang.String |
getOrderKey()
|
PackingListValue |
getPackingListByValue()
Get all of PackingList's attributes. |
Address |
getShippingAddress()
Get the value of shippingAddress |
Price |
getShippingCost()
Using the shipping method calculate the cost for shipping the order associated with this packinglist. |
ShippingMethod |
getShippingMethod()
Get the remote object reference of shippingMethod |
java.lang.String |
getSpecialInstructions()
Get the value of specialInstructions |
java.lang.String |
getStatus()
|
void |
setEntityContext(javax.ejb.EntityContext ctx)
setEntityContext method. |
void |
setOrder(Order order)
Set the remote object reference of order |
void |
setPackingListByValue(PackingListValue value)
Set all of PackingList's attributes to the passed in value. |
void |
setShippingAddress(Address shippingAddress)
Set the value of shippingAddress |
void |
setShippingMethod(ShippingMethod shippingMethod)
Set the remote object reference of shippingMethod |
void |
setSpecialInstructions(java.lang.String specialInstructions)
Set the value of specialInstructions |
void |
unsetEntityContext()
unsetEntityContext method. |
Methods inherited from class theory.smart.foundation.EntityImpl |
ejbCreate,
ejbPostCreate,
getEntityContext,
isModified |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public java.lang.String orderKey
orderKey
[PackingList] <*>------> [String
] (Primary Key)
public java.lang.String specialInstructions
specialInstructions
[PackingList] <*>------> [String
]
public SmartHandle shippingMethod
shippingMethod
[PackingList] <>------> [theory.smart.ebusiness.shipping.ShippingMethod
]
public SmartHandle order
order
[PackingList] <>------> [theory.smart.ebusiness.order.Order
]
public Address shippingAddress
shippingAddress
[PackingList] <*>------> [theory.smart.axiom.contact.Address
]
Constructor Detail |
public PackingListImpl() throws javax.ejb.CreateException
Method Detail |
public PackingListValue getPackingListByValue() throws java.rmi.RemoteException
public void setPackingListByValue(PackingListValue value) throws java.rmi.RemoteException
PackingListValue
- the PackingList value objectpublic PackingListPk ejbCreate(PackingListPk packingListPk) throws javax.ejb.CreateException, java.rmi.RemoteException
public void ejbPostCreate(PackingListPk packingListPk) throws javax.ejb.CreateException, java.rmi.RemoteException
public void ejbLoad() throws java.rmi.RemoteException
public void ejbStore() throws java.rmi.RemoteException
public void ejbRemove() throws java.rmi.RemoteException, javax.ejb.RemoveException
public void ejbActivate() throws java.rmi.RemoteException
public void ejbPassivate() throws java.rmi.RemoteException
public void setEntityContext(javax.ejb.EntityContext ctx) throws java.rmi.RemoteException
public void unsetEntityContext() throws java.rmi.RemoteException
public PackingListPk ejbFindByPrimaryKey(PackingListPk pk) throws javax.ejb.FinderException, java.rmi.RemoteException
public java.util.Enumeration ejbFindAll() throws javax.ejb.FinderException, java.rmi.RemoteException
public java.lang.String getSpecialInstructions() throws java.rmi.RemoteException
public void setSpecialInstructions(java.lang.String specialInstructions) throws java.rmi.RemoteException
specialInstructions
- specialInstructions to be addedpublic java.lang.String getOrderKey() throws java.rmi.RemoteException
public ShippingMethod getShippingMethod() throws java.rmi.RemoteException
public void setShippingMethod(ShippingMethod shippingMethod) throws java.rmi.RemoteException
shippingMethods
- shippingMethod to be addedpublic Order getOrder() throws java.rmi.RemoteException
public void setOrder(Order order) throws java.rmi.RemoteException
orders
- order to be addedpublic Address getShippingAddress() throws java.rmi.RemoteException
public void setShippingAddress(Address shippingAddress) throws java.rmi.RemoteException
shippingAddress
- shippingAddress to be addedpublic Price getShippingCost() throws java.rmi.RemoteException
public java.lang.String getStatus() throws java.rmi.RemoteException
public Customer getCustomer() throws java.rmi.RemoteException
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |