|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
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
public class 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
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 String identifier
public double sizeLimit
public String description
public boolean signatureRequired
public double weightLimit
public double percentage
public boolean poBoxAllowed
public String restrictions
public int averageShippingTime
public String carrier
public boolean saturdayDelivery
public Money price
public String packagingType
public String costCalculationMechanism
public String method
public boolean internationalDelivery
Constructor Detail |
---|
public ShippingMethodImpl()
Method Detail |
---|
public ShippingMethodValue getShippingMethodByValue()
public void setShippingMethodByValue(ShippingMethodValue value)
ShippingMethodValue
- the ShippingMethod value objectpublic ShippingMethodPk ejbCreate(ShippingMethodPk shippingMethodPk) throws CreateException
CreateException
protected void bscInitializeAttributes(ShippingMethodPk shippingMethodPk) throws CreateException
CreateException
public void ejbPostCreate(ShippingMethodPk shippingMethodPk) throws CreateException
CreateException
public void ejbLoad() throws EJBException
EntityImpl
ejbLoad
in class EntityImpl
EJBException
public void ejbStore() throws EJBException
EntityImpl
ejbStore
in class EntityImpl
EJBException
public void ejbRemove() throws RemoveException
EntityImpl
ejbRemove
in class EntityImpl
RemoveException
public void ejbActivate() throws EJBException
EntityImpl
ejbActivate
in class EntityImpl
EJBException
public void ejbPassivate() throws EJBException
EntityImpl
ejbPassivate
in class EntityImpl
EJBException
public void setEntityContext(EntityContext ctx) throws EJBException
EntityImpl
setEntityContext
in class EntityImpl
EJBException
public void unsetEntityContext() throws EJBException
EntityImpl
unsetEntityContext
in class EntityImpl
EJBException
public ShippingMethodPk ejbFindByPrimaryKey(ShippingMethodPk pk) throws FinderException
FinderException
public double getSizeLimit()
public void setSizeLimit(double sizeLimit)
sizeLimit
- sizeLimit to be addedpublic String getDescription()
public void setDescription(String description)
description
- description to be addedpublic boolean getSignatureRequired()
public void setSignatureRequired(boolean signatureRequired)
signatureRequired
- signatureRequired to be addedpublic double getWeightLimit()
public void setWeightLimit(double weightLimit)
weightLimit
- weightLimit to be addedpublic double getPercentage()
public void setPercentage(double percentage)
percentage
- percentage to be addedpublic String getIdentifier()
public void setIdentifier(String value)
public boolean getPoBoxAllowed()
public void setPoBoxAllowed(boolean poBoxAllowed)
poBoxAllowed
- poBoxAllowed to be addedpublic String getRestrictions()
public void setRestrictions(String restrictions)
restrictions
- restrictions to be addedpublic int getAverageShippingTime()
public void setAverageShippingTime(int averageShippingTime)
averageShippingTime
- averageShippingTime to be addedpublic String getCarrier()
public void setCarrier(String carrier)
carrier
- carrier to be addedpublic boolean getSaturdayDelivery()
public void setSaturdayDelivery(boolean saturdayDelivery)
saturdayDelivery
- saturdayDelivery to be addedpublic Money getPrice()
public void setPrice(Money price)
price
- price to be addedpublic String getPackagingType()
public void setPackagingType(String packagingType)
packagingType
- packagingType to be addedpublic String getCostCalculationMechanism()
public void setCostCalculationMechanism(String costCalculationMechanism)
costCalculationMechanism
- costCalculationMechanism to be addedpublic String getMethod()
public void setMethod(String method)
method
- method to be addedpublic boolean getInternationalDelivery()
public void setInternationalDelivery(boolean internationalDelivery)
internationalDelivery
- internationalDelivery to be addedpublic Enumeration ejbFindAll() throws FinderException
EntityImpl
ejbFindAll
in class EntityImpl
FinderException
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |