org.broadleafcommerce.core.order.fulfillment.domain
Class FulfillmentBandImpl

java.lang.Object
  extended by org.broadleafcommerce.core.order.fulfillment.domain.FulfillmentBandImpl
All Implemented Interfaces:
Serializable, FulfillmentBand
Direct Known Subclasses:
FulfillmentPriceBandImpl, FulfillmentWeightBandImpl

@MappedSuperclass
public abstract class FulfillmentBandImpl
extends Object
implements FulfillmentBand

Author:
Phillip Verheyden
See Also:
FulfillmentPriceBandImpl}, {@link FulfillmentWeightBandImpl}, Serialized Form

Field Summary
protected  BigDecimal resultAmount
           
protected  String resultAmountType
           
 
Constructor Summary
FulfillmentBandImpl()
           
 
Method Summary
 BigDecimal getResultAmount()
          Gets the amount that should be applied to the fulfillment cost for the FulfillmentGroup.
 FulfillmentBandResultAmountType getResultAmountType()
          Gets how FulfillmentBand.getResultAmount() should be applied to the fulfillment cost
 void setResultAmount(BigDecimal resultAmount)
          Sets the amount that should be applied to the fulfillment cost for this band.
 void setResultAmountType(FulfillmentBandResultAmountType resultAmountType)
          Sets how FulfillmentBand.getResultAmount() should be applied to the fulfillment cost
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.broadleafcommerce.core.order.fulfillment.domain.FulfillmentBand
getId, setId
 

Field Detail

resultAmount

protected BigDecimal resultAmount

resultAmountType

protected String resultAmountType
Constructor Detail

FulfillmentBandImpl

public FulfillmentBandImpl()
Method Detail

getResultAmount

public BigDecimal getResultAmount()
Description copied from interface: FulfillmentBand
Gets the amount that should be applied to the fulfillment cost for the FulfillmentGroup. This could be applied as a percentage or as a flat rate, depending on the result of calling #getResultType(). This is required and should never be null

Specified by:
getResultAmount in interface FulfillmentBand
Returns:
the amount to apply for this band

setResultAmount

public void setResultAmount(BigDecimal resultAmount)
Description copied from interface: FulfillmentBand
Sets the amount that should be applied to the fulfillment cost for this band. This can be either a flat rate or a percentage depending on #getResultType().

Specified by:
setResultAmount in interface FulfillmentBand
Parameters:
resultAmount - - the percentage or flat rate that should be applied as a fulfillment cost for this band

getResultAmountType

public FulfillmentBandResultAmountType getResultAmountType()
Description copied from interface: FulfillmentBand
Gets how FulfillmentBand.getResultAmount() should be applied to the fulfillment cost

Specified by:
getResultAmountType in interface FulfillmentBand
Returns:
the type of FulfillmentBand.getResultAmount() which determines how that value should be calculated into the cost

setResultAmountType

public void setResultAmountType(FulfillmentBandResultAmountType resultAmountType)
Description copied from interface: FulfillmentBand
Sets how FulfillmentBand.getResultAmount() should be applied to the fulfillment cost

Specified by:
setResultAmountType in interface FulfillmentBand
Parameters:
resultAmountType - - how the value from FulfillmentBand.getResultAmount() should be applied to the cost of the FulfillmentGroup


Copyright © 2013. All Rights Reserved.