BEA Systems, Inc.

theory.smart.ebusiness.shipping
Class PackingListImpl

java.lang.Object
  |
  +--theory.smart.foundation.EntityImpl
        |
        +--theory.smart.ebusiness.shipping.PackingListImpl

public class PackingListImpl
extends EntityImpl

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
 

See Also:
PackingList, PackingListHome, PackingListValue, Serialized Form

Field 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

orderKey

public java.lang.String orderKey
                  orderKey
 [PackingList] <*>------> [String] (Primary Key)

 

specialInstructions

public java.lang.String specialInstructions
                  specialInstructions
 [PackingList] <*>------> [String] 

 

shippingMethod

public SmartHandle shippingMethod
                  shippingMethod
 [PackingList] <>------> [theory.smart.ebusiness.shipping.ShippingMethod] 

 

order

public SmartHandle order
                  order
 [PackingList] <>------> [theory.smart.ebusiness.order.Order] 

 

shippingAddress

public Address shippingAddress
                  shippingAddress
 [PackingList] <*>------> [theory.smart.axiom.contact.Address] 

 
Constructor Detail

PackingListImpl

public PackingListImpl()
                throws javax.ejb.CreateException
Method Detail

getPackingListByValue

public PackingListValue getPackingListByValue()
                                       throws java.rmi.RemoteException
Get all of PackingList's attributes.
Returns:
PackingListValue the PackingList value object

setPackingListByValue

public void setPackingListByValue(PackingListValue value)
                           throws java.rmi.RemoteException
Set all of PackingList's attributes to the passed in value. Note: Primary key attributes are not set.
Parameters:
PackingListValue - the PackingList value object

ejbCreate

public PackingListPk ejbCreate(PackingListPk packingListPk)
                        throws javax.ejb.CreateException,
                               java.rmi.RemoteException

ejbPostCreate

public void ejbPostCreate(PackingListPk packingListPk)
                   throws javax.ejb.CreateException,
                          java.rmi.RemoteException

ejbLoad

public void ejbLoad()
             throws java.rmi.RemoteException
Description copied from class: EntityImpl
ejbLoad method.
Overrides:
ejbLoad in class EntityImpl

ejbStore

public void ejbStore()
              throws java.rmi.RemoteException
Description copied from class: EntityImpl
ejbStore method.
Overrides:
ejbStore in class EntityImpl

ejbRemove

public void ejbRemove()
               throws java.rmi.RemoteException,
                      javax.ejb.RemoveException
Description copied from class: EntityImpl
ejbRemove method.
Overrides:
ejbRemove in class EntityImpl

ejbActivate

public void ejbActivate()
                 throws java.rmi.RemoteException
Description copied from class: EntityImpl
ejbActivate method.
Overrides:
ejbActivate in class EntityImpl

ejbPassivate

public void ejbPassivate()
                  throws java.rmi.RemoteException
Description copied from class: EntityImpl
ejbPassivate method.
Overrides:
ejbPassivate in class EntityImpl

setEntityContext

public void setEntityContext(javax.ejb.EntityContext ctx)
                      throws java.rmi.RemoteException
Description copied from class: EntityImpl
setEntityContext method.
Overrides:
setEntityContext in class EntityImpl

unsetEntityContext

public void unsetEntityContext()
                        throws java.rmi.RemoteException
Description copied from class: EntityImpl
unsetEntityContext method.
Overrides:
unsetEntityContext in class EntityImpl

ejbFindByPrimaryKey

public PackingListPk ejbFindByPrimaryKey(PackingListPk pk)
                                  throws javax.ejb.FinderException,
                                         java.rmi.RemoteException

ejbFindAll

public java.util.Enumeration ejbFindAll()
                                 throws javax.ejb.FinderException,
                                        java.rmi.RemoteException

getSpecialInstructions

public java.lang.String getSpecialInstructions()
                                        throws java.rmi.RemoteException
Get the value of specialInstructions
Returns:
specialInstructions.

setSpecialInstructions

public void setSpecialInstructions(java.lang.String specialInstructions)
                            throws java.rmi.RemoteException
Set the value of specialInstructions
Parameters:
specialInstructions - specialInstructions to be added

getOrderKey

public java.lang.String getOrderKey()
                             throws java.rmi.RemoteException

getShippingMethod

public ShippingMethod getShippingMethod()
                                 throws java.rmi.RemoteException
Get the remote object reference of shippingMethod
Returns:
shippingMethod.

setShippingMethod

public void setShippingMethod(ShippingMethod shippingMethod)
                       throws java.rmi.RemoteException
Set the remote object reference of shippingMethod
Parameters:
shippingMethods - shippingMethod to be added

getOrder

public Order getOrder()
               throws java.rmi.RemoteException
Get the remote object reference of order
Returns:
order.

setOrder

public void setOrder(Order order)
              throws java.rmi.RemoteException
Set the remote object reference of order
Parameters:
orders - order to be added

getShippingAddress

public Address getShippingAddress()
                           throws java.rmi.RemoteException
Get the value of shippingAddress
Returns:
shippingAddress.

setShippingAddress

public void setShippingAddress(Address shippingAddress)
                        throws java.rmi.RemoteException
Set the value of shippingAddress
Parameters:
shippingAddress - shippingAddress to be added

getShippingCost

public Price getShippingCost()
                      throws java.rmi.RemoteException
Using the shipping method calculate the cost for shipping the order associated with this packinglist.

getStatus

public java.lang.String getStatus()
                           throws java.rmi.RemoteException

getCustomer

public Customer getCustomer()
                     throws java.rmi.RemoteException
Acquire a reference to the customer that is store in the Order that is associated with this PackingList

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved