com.retek.component.media
Interface ShippingRate
- All Superinterfaces:
- BusinessObject, SecondClassObject
- All Known Implementing Classes:
- ShippingRateImpl
- public interface ShippingRate
- extends SecondClassObject
ShippingRates know that they are members of a list of shipping rates on a ShippingRateTable.
They enforce the invariant that a media's shipping rates always cover the range from zero to infinity.
STD_DELIVERY_CHARGE_MIN
public static final java.lang.String STD_DELIVERY_CHARGE_MIN
- See Also:
- Constant Field Values
STD_DELIVERY_CHARGE_MAX
public static final java.lang.String STD_DELIVERY_CHARGE_MAX
- See Also:
- Constant Field Values
STD_DELIVERY_CHARGE_DOLLAR
public static final java.lang.String STD_DELIVERY_CHARGE_DOLLAR
- See Also:
- Constant Field Values
STD_DELIVERY_CHARGE_PERCENT
public static final java.lang.String STD_DELIVERY_CHARGE_PERCENT
- See Also:
- Constant Field Values
getDeliveryChargeFlatRate
public Money getDeliveryChargeFlatRate()
throws SystemException
- Throws:
SystemException
getDeliveryChargePercent
public Percent getDeliveryChargePercent()
throws SystemException
- Throws:
SystemException
getDeliveryCharge
public Money getDeliveryCharge(Money shippingAmount)
throws SystemException
- Throws:
SystemException
getRangeMaximum
public Money getRangeMaximum()
throws SystemException
- Throws:
SystemException
getRangeMinimum
public Money getRangeMinimum()
throws SystemException
- Throws:
SystemException
isInRange
public boolean isInRange(Money shippingAmount)
throws SystemException
- Throws:
SystemException
isPercentageRate
public boolean isPercentageRate()
throws SystemException
- Throws:
SystemException
isFlatRate
public boolean isFlatRate()
throws SystemException
- Throws:
SystemException
setDeliveryChargeFlatRate
public void setDeliveryChargeFlatRate(Money deliveryChargeFlatRate)
throws SystemException
- Throws:
SystemException
setDeliveryChargePercent
public void setDeliveryChargePercent(Percent deliveryChargePercent)
throws MediaBusinessException
- Throws:
MediaBusinessException
setRangeMinimum
public void setRangeMinimum(Money rangeMinimum)
throws SystemException,
MediaBusinessException
- Throws:
SystemException
MediaBusinessException
setRangeMaximum
public void setRangeMaximum(Money rangeMaximum)
throws SystemException,
MediaBusinessException
- If
this
is the last shipping rate in the ShippingRateTable (and therefore,
its current max is infinity) then setting rangeMaximum
to less than infinity
has the side effect of creating a new shipping rate to uphold the invariant described above.
- Throws:
SystemException
MediaBusinessException
remove
public void remove()
throws SystemException,
MediaBusinessException
- Throws:
SystemException
MediaBusinessException
Copyright © 2004 Retek Inc. All Rights Reserved.
- Generated at Fri, 10/22/2004 07:28