|
© 2004 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.beasys.commerce.foundation.EntityImpl
com.beasys.commerce.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 = com.beasys.commerce.ebusiness.shipping.ShippingMethodPk
ShippingMethod,
ShippingMethodHome,
ShippingMethodValue,
Serialized Form| Field Summary | |
int |
averageShippingTime
The average delivery time. |
String |
carrier
The service provider used for delivery. |
String |
costCalculationMechanism
Used to specify one of the pre-programmed shipping cost calculation mechanisms. |
String |
description
An textual description of this shipping mechanism. |
String |
identifier
A key that uniquely identifies this shipping method. |
boolean |
internationalDelivery
True if this mechanism will deliver internationally. |
String |
method
The mechanism by which the item will be shipped. |
String |
packagingType
Containment: By Value Multiplicity: 1:1 |
double |
percentage
Used when the shipping cost is a percentage of the total value of the order. |
boolean |
poBoxAllowed
True if this mechanism will allow delivery to a post office box. |
Money |
price
The base shipping cost. |
String |
restrictions
A description of any restrictions that apply to this shipping mechanism. |
boolean |
saturdayDelivery
True if ths shipping mechanism will deliver on a Saturday. |
boolean |
signatureRequired
True if the customer is required to acknowled delivery with a signature. |
double |
sizeLimit
The maximum deliverable quantity. |
double |
weightLimit
The maximum weight limit for this shipping mechanism. |
| Fields inherited from class com.beasys.commerce.foundation.EntityImpl |
__classIdentifier, __containingEntity, __mapKey, __sequenceNumber, _ctx, _environmentNamingContext, _environmentPropertyCache, _isDirty, _smartBMP |
| Constructor Summary | |
ShippingMethodImpl()
|
|
| Method Summary | |
protected void |
bscInitializeAttributes(ShippingMethodPk shippingMethodPk)
|
void |
ejbActivate()
ejbActivate method. |
ShippingMethodPk |
ejbCreate(ShippingMethodPk shippingMethodPk)
|
Enumeration |
ejbFindAll()
ejbFindAll method. |
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 |
String |
getCarrier()
Get the value of carrier |
String |
getCostCalculationMechanism()
Get the value of costCalculationMechanism |
String |
getDescription()
Get the value of description |
String |
getIdentifier()
|
boolean |
getInternationalDelivery()
Get the value of internationalDelivery |
String |
getMethod()
Get the value of method |
String |
getPackagingType()
Get the value of packagingType |
double |
getPercentage()
Get the value of percentage |
boolean |
getPoBoxAllowed()
Get the value of poBoxAllowed |
Money |
getPrice()
Get the value of price |
String |
getRestrictions()
Get the value of restrictions |
boolean |
getSaturdayDelivery()
Get the value of saturdayDelivery |
ShippingMethodValue |
getShippingMethodByValue()
Get all of ShippingMethod's attributes. |
boolean |
getSignatureRequired()
Get the value of signatureRequired |
double |
getSizeLimit()
Get the value of sizeLimit |
double |
getWeightLimit()
Get the value of weightLimit |
void |
setAverageShippingTime(int averageShippingTime)
Set the value of averageShippingTime |
void |
setCarrier(String carrier)
Set the value of carrier |
void |
setCostCalculationMechanism(String costCalculationMechanism)
Set the value of costCalculationMechanism |
void |
setDescription(String description)
Set the value of description |
void |
setEntityContext(EntityContext ctx)
setEntityContext method. |
void |
setIdentifier(String value)
|
void |
setInternationalDelivery(boolean internationalDelivery)
Set the value of internationalDelivery |
void |
setMethod(String method)
Set the value of method |
void |
setPackagingType(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(Money price)
Set the value of price |
void |
setRestrictions(String restrictions)
Set the value of restrictions |
void |
setSaturdayDelivery(boolean saturdayDelivery)
Set the value of saturdayDelivery |
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(double sizeLimit)
Set the value of sizeLimit |
void |
setWeightLimit(double weightLimit)
Set the value of weightLimit |
void |
unsetEntityContext()
unsetEntityContext method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int averageShippingTime
public String carrier
public String costCalculationMechanism
public String description
public String identifier
public boolean internationalDelivery
public String method
public String packagingType
public double percentage
public boolean poBoxAllowed
public Money price
public String restrictions
public boolean saturdayDelivery
public boolean signatureRequired
public double sizeLimit
public double weightLimit
| Constructor Detail |
public ShippingMethodImpl()
| Method Detail |
protected void bscInitializeAttributes(ShippingMethodPk shippingMethodPk)
throws CreateException
CreateException
public void ejbActivate()
throws EJBException
EntityImpl
ejbActivate in interface EntityBeanejbActivate in class EntityImplEJBException
public ShippingMethodPk ejbCreate(ShippingMethodPk shippingMethodPk)
throws CreateException
CreateException
public Enumeration ejbFindAll()
throws FinderException
EntityImpl
ejbFindAll in class EntityImplFinderException
public ShippingMethodPk ejbFindByPrimaryKey(ShippingMethodPk pk)
throws FinderException
FinderException
public void ejbLoad()
throws EJBException
EntityImpl
ejbLoad in interface EntityBeanejbLoad in class EntityImplEJBException
public void ejbPassivate()
throws EJBException
EntityImpl
ejbPassivate in interface EntityBeanejbPassivate in class EntityImplEJBException
public void ejbPostCreate(ShippingMethodPk shippingMethodPk)
throws CreateException
CreateException
public void ejbRemove()
throws RemoveException
EntityImpl
ejbRemove in interface EntityBeanejbRemove in class EntityImplRemoveException
public void ejbStore()
throws EJBException
EntityImpl
ejbStore in interface EntityBeanejbStore in class EntityImplEJBExceptionpublic int getAverageShippingTime()
public String getCarrier()
public String getCostCalculationMechanism()
public String getDescription()
public String getIdentifier()
public boolean getInternationalDelivery()
public String getMethod()
public String getPackagingType()
public double getPercentage()
public boolean getPoBoxAllowed()
public Money getPrice()
public String getRestrictions()
public boolean getSaturdayDelivery()
public ShippingMethodValue getShippingMethodByValue()
public boolean getSignatureRequired()
public double getSizeLimit()
public double getWeightLimit()
public void setAverageShippingTime(int averageShippingTime)
averageShippingTime - averageShippingTime to be addedpublic void setCarrier(String carrier)
carrier - carrier to be addedpublic void setCostCalculationMechanism(String costCalculationMechanism)
costCalculationMechanism - costCalculationMechanism to be addedpublic void setDescription(String description)
description - description to be added
public void setEntityContext(EntityContext ctx)
throws EJBException
EntityImpl
setEntityContext in interface EntityBeansetEntityContext in class EntityImplEJBExceptionpublic void setIdentifier(String value)
public void setInternationalDelivery(boolean internationalDelivery)
internationalDelivery - internationalDelivery to be addedpublic void setMethod(String method)
method - method to be addedpublic void setPackagingType(String packagingType)
packagingType - packagingType to be addedpublic void setPercentage(double percentage)
percentage - percentage to be addedpublic void setPoBoxAllowed(boolean poBoxAllowed)
poBoxAllowed - poBoxAllowed to be addedpublic void setPrice(Money price)
price - price to be addedpublic void setRestrictions(String restrictions)
restrictions - restrictions to be addedpublic void setSaturdayDelivery(boolean saturdayDelivery)
saturdayDelivery - saturdayDelivery to be addedpublic void setShippingMethodByValue(ShippingMethodValue value)
public void setSignatureRequired(boolean signatureRequired)
signatureRequired - signatureRequired to be addedpublic void setSizeLimit(double sizeLimit)
sizeLimit - sizeLimit to be addedpublic void setWeightLimit(double weightLimit)
weightLimit - weightLimit to be added
public void unsetEntityContext()
throws EJBException
EntityImpl
unsetEntityContext in interface EntityBeanunsetEntityContext in class EntityImplEJBException
|
© 2004 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||