|
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.foundation.ConfigurableEntityImpl | +--theory.smart.ebusiness.shipping.ShippingMethodImpl
A shipping method is a mechanism by which product is delivered. It stores a standard set of attributes and allows for complex shipping cost calculation.
Primary Key = theory.smart.ebusiness.shipping.ShippingMethodPk
ShippingMethod
,
ShippingMethodHome
,
ShippingMethodValue
, Serialized FormField Summary | |
int |
averageShippingTime
averageShippingTime [ShippingMethod] <*>------> [ int ]
|
java.lang.String |
carrier
carrier [ShippingMethod] <*>------> [ String ]
|
java.lang.String |
costCalculationMechanism
costCalculationMechanism [ShippingMethod] <*>------> [ String ]
|
java.lang.String |
description
description [ShippingMethod] <*>------> [ String ]
|
boolean |
internationalDelivery
internationalDelivery [ShippingMethod] <*>------> [ boolean ]
|
java.lang.String |
key
key [ShippingMethod] <*>------> [ String ] (Primary Key)
|
java.lang.String |
method
method [ShippingMethod] <*>------> [ String ]
|
java.lang.String |
packagingType
packagingType [ShippingMethod] <*>------> [ String ]
|
double |
percentage
percentage [ShippingMethod] <*>------> [ double ]
|
boolean |
poBoxAllowed
poBoxAllowed [ShippingMethod] <*>------> [ boolean ]
|
Price |
price
price [ShippingMethod] <*>------> [ theory.smart.axiom.units.Price ]
|
java.lang.String |
restrictions
restrictions [ShippingMethod] <*>------> [ String ]
|
boolean |
saturdayDelivery
saturdayDelivery [ShippingMethod] <*>------> [ boolean ]
|
static java.lang.String |
SHIPPING_COST_POLICY
|
ShippingCostCalculationPolicy |
shippingCostCalculationPolicy
|
boolean |
signatureRequired
signatureRequired [ShippingMethod] <*>------> [ boolean ]
|
Quantity |
sizeLimit
sizeLimit [ShippingMethod] <*>------> [ theory.smart.axiom.units.Quantity ]
|
Quantity |
weightLimit
weightLimit [ShippingMethod] <*>------> [ theory.smart.axiom.units.Quantity ]
|
Fields inherited from class theory.smart.foundation.EntityImpl |
ctx,
isDirty,
isLoaded |
Fields inherited from interface theory.smart.ebusiness.shipping.ShippingMethodConstants |
FLATRATE,
PERCENTAGE,
PERITEM,
POLICY |
Constructor Summary | |
ShippingMethodImpl()
|
Method Summary | |
void |
ejbActivate()
ejbActivate method. |
ShippingMethodPk |
ejbCreate(ShippingMethodPk shippingMethodPk)
|
java.util.Enumeration |
ejbFindAll()
|
ShippingMethodPk |
ejbFindByPrimaryKey(ShippingMethodPk pk)
|
void |
ejbLoad()
ejbLoad method. |
void |
ejbPassivate()
ejbPassivate method. |
void |
ejbPostCreate(ShippingMethodPk shippingMethodPk)
|
void |
ejbRemove()
ejbRemove method. |
void |
ejbStore()
ejbStore method. |
int |
getAverageShippingTime()
Get the value of averageShippingTime |
java.lang.String |
getCarrier()
Get the value of carrier |
java.lang.String |
getCostCalculationMechanism()
Get the value of costCalculationMechanism |
java.lang.String |
getDescription()
Get the value of description |
boolean |
getInternationalDelivery()
Get the value of internationalDelivery |
java.lang.String |
getKey()
|
java.lang.String |
getMethod()
Get the value of method |
java.lang.String |
getPackagingType()
Get the value of packagingType |
double |
getPercentage()
Get the value of percentage |
boolean |
getPoBoxAllowed()
Get the value of poBoxAllowed |
Price |
getPrice()
Get the value of price |
java.lang.String |
getRestrictions()
Get the value of restrictions |
boolean |
getSaturdayDelivery()
Get the value of saturdayDelivery |
Price |
getShippingCost(PackingList list)
Get the cost of shipping an entire order. |
Price |
getShippingCost(ShippingCostCalculationPolicy policy,
PackingList list)
Get the cost of shipping an entire order using an alternative policy. |
ShippingCostCalculationPolicy |
getShippingCostCalculationPolicy()
|
java.lang.String |
getShippingCostCalculationPolicyName()
|
ShippingMethodValue |
getShippingMethodByValue()
Get all of ShippingMethod's attributes. |
boolean |
getSignatureRequired()
Get the value of signatureRequired |
Quantity |
getSizeLimit()
Get the value of sizeLimit |
Quantity |
getWeightLimit()
Get the value of weightLimit |
void |
setAverageShippingTime(int averageShippingTime)
Set the value of averageShippingTime |
void |
setCarrier(java.lang.String carrier)
Set the value of carrier |
void |
setCostCalculationMechanism(java.lang.String costCalculationMechanism)
Set the value of costCalculationMechanism |
void |
setDescription(java.lang.String description)
Set the value of description |
void |
setEntityContext(javax.ejb.EntityContext ctx)
setEntityContext method. |
void |
setInternationalDelivery(boolean internationalDelivery)
Set the value of internationalDelivery |
void |
setMethod(java.lang.String method)
Set the value of method |
void |
setPackagingType(java.lang.String packagingType)
Set the value of packagingType |
void |
setPercentage(double percentage)
Set the value of percentage |
void |
setPoBoxAllowed(boolean poBoxAllowed)
Set the value of poBoxAllowed |
void |
setPrice(Price price)
Set the value of price |
void |
setRestrictions(java.lang.String restrictions)
Set the value of restrictions |
void |
setSaturdayDelivery(boolean saturdayDelivery)
Set the value of saturdayDelivery |
void |
setShippingCostCalculationPolicy(ShippingCostCalculationPolicy shippingCostCalculationPolicy)
|
void |
setShippingMethodByValue(ShippingMethodValue value)
Set all of ShippingMethod's attributes to the passed in value. |
void |
setSignatureRequired(boolean signatureRequired)
Set the value of signatureRequired |
void |
setSizeLimit(Quantity sizeLimit)
Set the value of sizeLimit |
void |
setWeightLimit(Quantity weightLimit)
Set the value of weightLimit |
void |
unsetEntityContext()
unsetEntityContext method. |
Methods inherited from class theory.smart.foundation.ConfigurableEntityImpl |
addBusinessPolicy,
addProperty,
ejbCreate,
ejbPostCreate,
getBusinessPolicy,
getProperty,
removeBusinessPolicy,
removeProperty,
setSuccessorAtClassLevel,
setSuccessorAtInstanceLevel |
Methods inherited from class theory.smart.foundation.EntityImpl |
getEntityContext,
isModified |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public ShippingCostCalculationPolicy shippingCostCalculationPolicy
public static final java.lang.String SHIPPING_COST_POLICY
public java.lang.String key
key
[ShippingMethod] <*>------> [String
] (Primary Key)
public java.lang.String carrier
carrier
[ShippingMethod] <*>------> [String
]
public java.lang.String method
method
[ShippingMethod] <*>------> [String
]
public int averageShippingTime
averageShippingTime
[ShippingMethod] <*>------> [int
]
public Price price
price
[ShippingMethod] <*>------> [theory.smart.axiom.units.Price
]
public Quantity weightLimit
weightLimit
[ShippingMethod] <*>------> [theory.smart.axiom.units.Quantity
]
public java.lang.String restrictions
restrictions
[ShippingMethod] <*>------> [String
]
public java.lang.String description
description
[ShippingMethod] <*>------> [String
]
public boolean poBoxAllowed
poBoxAllowed
[ShippingMethod] <*>------> [boolean
]
public boolean signatureRequired
signatureRequired
[ShippingMethod] <*>------> [boolean
]
public boolean saturdayDelivery
saturdayDelivery
[ShippingMethod] <*>------> [boolean
]
public boolean internationalDelivery
internationalDelivery
[ShippingMethod] <*>------> [boolean
]
public Quantity sizeLimit
sizeLimit
[ShippingMethod] <*>------> [theory.smart.axiom.units.Quantity
]
public java.lang.String packagingType
packagingType
[ShippingMethod] <*>------> [String
]
public double percentage
percentage
[ShippingMethod] <*>------> [double
]
public java.lang.String costCalculationMechanism
costCalculationMechanism
[ShippingMethod] <*>------> [String
]
Constructor Detail |
public ShippingMethodImpl() throws javax.ejb.CreateException
Method Detail |
public ShippingMethodValue getShippingMethodByValue() throws java.rmi.RemoteException
public void setShippingMethodByValue(ShippingMethodValue value) throws java.rmi.RemoteException
ShippingMethodValue
- the ShippingMethod value objectpublic ShippingMethodPk ejbCreate(ShippingMethodPk shippingMethodPk) throws javax.ejb.CreateException, java.rmi.RemoteException
public void ejbPostCreate(ShippingMethodPk shippingMethodPk) 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 ShippingMethodPk ejbFindByPrimaryKey(ShippingMethodPk pk) throws javax.ejb.FinderException, java.rmi.RemoteException
public java.util.Enumeration ejbFindAll() throws javax.ejb.FinderException, java.rmi.RemoteException
public java.lang.String getCarrier() throws java.rmi.RemoteException
public void setCarrier(java.lang.String carrier) throws java.rmi.RemoteException
carrier
- carrier to be addedpublic java.lang.String getMethod() throws java.rmi.RemoteException
public void setMethod(java.lang.String method) throws java.rmi.RemoteException
method
- method to be addedpublic int getAverageShippingTime() throws java.rmi.RemoteException
public void setAverageShippingTime(int averageShippingTime) throws java.rmi.RemoteException
averageShippingTime
- averageShippingTime to be addedpublic Price getPrice() throws java.rmi.RemoteException
public void setPrice(Price price) throws java.rmi.RemoteException
price
- price to be addedpublic Quantity getWeightLimit() throws java.rmi.RemoteException
public void setWeightLimit(Quantity weightLimit) throws java.rmi.RemoteException
weightLimit
- weightLimit to be addedpublic java.lang.String getRestrictions() throws java.rmi.RemoteException
public void setRestrictions(java.lang.String restrictions) throws java.rmi.RemoteException
restrictions
- restrictions to be addedpublic java.lang.String getDescription() throws java.rmi.RemoteException
public void setDescription(java.lang.String description) throws java.rmi.RemoteException
description
- description to be addedpublic boolean getPoBoxAllowed() throws java.rmi.RemoteException
public void setPoBoxAllowed(boolean poBoxAllowed) throws java.rmi.RemoteException
poBoxAllowed
- poBoxAllowed to be addedpublic boolean getSignatureRequired() throws java.rmi.RemoteException
public void setSignatureRequired(boolean signatureRequired) throws java.rmi.RemoteException
signatureRequired
- signatureRequired to be addedpublic boolean getSaturdayDelivery() throws java.rmi.RemoteException
public void setSaturdayDelivery(boolean saturdayDelivery) throws java.rmi.RemoteException
saturdayDelivery
- saturdayDelivery to be addedpublic boolean getInternationalDelivery() throws java.rmi.RemoteException
public void setInternationalDelivery(boolean internationalDelivery) throws java.rmi.RemoteException
internationalDelivery
- internationalDelivery to be addedpublic Quantity getSizeLimit() throws java.rmi.RemoteException
public void setSizeLimit(Quantity sizeLimit) throws java.rmi.RemoteException
sizeLimit
- sizeLimit to be addedpublic java.lang.String getPackagingType() throws java.rmi.RemoteException
public void setPackagingType(java.lang.String packagingType) throws java.rmi.RemoteException
packagingType
- packagingType to be addedpublic java.lang.String getKey() throws java.rmi.RemoteException
public double getPercentage() throws java.rmi.RemoteException
public void setPercentage(double percentage) throws java.rmi.RemoteException
percentage
- percentage to be addedpublic java.lang.String getCostCalculationMechanism() throws java.rmi.RemoteException
public void setCostCalculationMechanism(java.lang.String costCalculationMechanism) throws java.rmi.RemoteException
costCalculationMechanism
- costCalculationMechanism to be addedpublic Price getShippingCost(PackingList list) throws java.rmi.RemoteException
public Price getShippingCost(ShippingCostCalculationPolicy policy, PackingList list) throws java.rmi.RemoteException
public java.lang.String getShippingCostCalculationPolicyName() throws java.rmi.RemoteException
public void setShippingCostCalculationPolicy(ShippingCostCalculationPolicy shippingCostCalculationPolicy) throws java.rmi.RemoteException
public ShippingCostCalculationPolicy getShippingCostCalculationPolicy() throws java.rmi.RemoteException
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |