org.broadleafcommerce.core.order.domain
Class BundleOrderItemImpl
java.lang.Object
org.broadleafcommerce.core.order.domain.OrderItemImpl
org.broadleafcommerce.core.order.domain.BundleOrderItemImpl
- All Implemented Interfaces:
- Serializable, Cloneable, BundleOrderItem, OrderItem, SkuAccessor
@Entity
public class BundleOrderItemImpl
- extends OrderItemImpl
- implements BundleOrderItem
- See Also:
- Serialized Form
| Fields inherited from class org.broadleafcommerce.core.order.domain.OrderItemImpl |
candidateItemOffers, category, giftWrapOrderItem, id, itemTaxable, name, order, orderItemAdjustments, orderItemAttributeMap, orderItemType, personalMessage, price, quantity, retailPrice, salePrice, splitParentItemId |
| Methods inherited from class org.broadleafcommerce.core.order.domain.OrderItemImpl |
addCandidateItemOffer, checkCloneable, getAdjustmentValue, getCandidateItemOffers, getCategory, getGiftWrapOrderItem, getId, getIsDiscounted, getIsOnSale, getName, getOrder, getOrderItemAdjustments, getOrderItemAttributes, getOrderItemType, getPersonalMessage, getPrice, getPriceBeforeAdjustments, getQuantity, getSplitParentItemId, isInCategory, isTaxable, setCandidateItemOffers, setCategory, setGiftWrapOrderItem, setId, setName, setOrder, setOrderItemAdjustments, setOrderItemAttributes, setOrderItemType, setPersonalMessage, setPrice, setQuantity, setRetailPrice, setSalePrice, setSplitParentItemId, setTaxable |
| Methods inherited from interface org.broadleafcommerce.core.order.domain.OrderItem |
addCandidateItemOffer, getAdjustmentValue, getCandidateItemOffers, getCategory, getGiftWrapOrderItem, getId, getIsDiscounted, getIsOnSale, getName, getOrder, getOrderItemAdjustments, getOrderItemAttributes, getOrderItemType, getPersonalMessage, getPrice, getPriceBeforeAdjustments, getQuantity, getSplitParentItemId, isInCategory, isTaxable, setCandidateItemOffers, setCategory, setGiftWrapOrderItem, setId, setName, setOrder, setOrderItemAdjustments, setOrderItemAttributes, setOrderItemType, setPersonalMessage, setPrice, setQuantity, setRetailPrice, setSalePrice, setSplitParentItemId, setTaxable |
discreteOrderItems
protected List<DiscreteOrderItem> discreteOrderItems
bundleOrderItemFeePrices
protected List<BundleOrderItemFeePrice> bundleOrderItemFeePrices
baseRetailPrice
protected BigDecimal baseRetailPrice
baseSalePrice
protected BigDecimal baseSalePrice
sku
protected Sku sku
productBundle
protected ProductBundle productBundle
BundleOrderItemImpl
public BundleOrderItemImpl()
getSku
public Sku getSku()
- Description copied from interface:
BundleOrderItem
- For BundleOrderItem created from a ProductBundle, this will represent the default sku of
the product bundle.
This can be null for implementations that programatically create product bundles.
- Specified by:
getSku in interface BundleOrderItem- Specified by:
getSku in interface SkuAccessor
setSku
public void setSku(Sku sku)
- Specified by:
setSku in interface BundleOrderItem
getProductBundle
public ProductBundle getProductBundle()
- Description copied from interface:
BundleOrderItem
- Returns the associated ProductBundle or null if not applicable.
If null, then this ProductBundle was manually created.
- Specified by:
getProductBundle in interface BundleOrderItem
- Returns:
setProductBundle
public void setProductBundle(ProductBundle productBundle)
- Description copied from interface:
BundleOrderItem
- Sets the ProductBundle associated with this BundleOrderItem.
- Specified by:
setProductBundle in interface BundleOrderItem
getDiscreteOrderItems
public List<DiscreteOrderItem> getDiscreteOrderItems()
- Specified by:
getDiscreteOrderItems in interface BundleOrderItem
setDiscreteOrderItems
public void setDiscreteOrderItems(List<DiscreteOrderItem> discreteOrderItems)
- Specified by:
setDiscreteOrderItems in interface BundleOrderItem
getBundleOrderItemFeePrices
public List<BundleOrderItemFeePrice> getBundleOrderItemFeePrices()
- Specified by:
getBundleOrderItemFeePrices in interface BundleOrderItem
setBundleOrderItemFeePrices
public void setBundleOrderItemFeePrices(List<BundleOrderItemFeePrice> bundleOrderItemFeePrices)
- Specified by:
setBundleOrderItemFeePrices in interface BundleOrderItem
removeAllCandidateItemOffers
public void removeAllCandidateItemOffers()
- Specified by:
removeAllCandidateItemOffers in interface OrderItem- Overrides:
removeAllCandidateItemOffers in class OrderItemImpl
removeAllAdjustments
public int removeAllAdjustments()
- Description copied from interface:
OrderItem
- Removes all adjustment for this order item and reset the adjustment price.
- Specified by:
removeAllAdjustments in interface OrderItem- Overrides:
removeAllAdjustments in class OrderItemImpl
assignFinalPrice
public void assignFinalPrice()
- Specified by:
assignFinalPrice in interface OrderItem- Overrides:
assignFinalPrice in class OrderItemImpl
getTaxablePrice
public Money getTaxablePrice()
- Specified by:
getTaxablePrice in interface BundleOrderItem- Specified by:
getTaxablePrice in interface OrderItem- Overrides:
getTaxablePrice in class OrderItemImpl
shouldSumItems
public boolean shouldSumItems()
- Specified by:
shouldSumItems in interface BundleOrderItem
getRetailPrice
public Money getRetailPrice()
- Specified by:
getRetailPrice in interface OrderItem- Overrides:
getRetailPrice in class OrderItemImpl
getSalePrice
public Money getSalePrice()
- Specified by:
getSalePrice in interface OrderItem- Overrides:
getSalePrice in class OrderItemImpl
getBaseRetailPrice
public Money getBaseRetailPrice()
- Specified by:
getBaseRetailPrice in interface BundleOrderItem
setBaseRetailPrice
public void setBaseRetailPrice(Money baseRetailPrice)
- Specified by:
setBaseRetailPrice in interface BundleOrderItem
getBaseSalePrice
public Money getBaseSalePrice()
- Specified by:
getBaseSalePrice in interface BundleOrderItem
setBaseSalePrice
public void setBaseSalePrice(Money baseSalePrice)
- Specified by:
setBaseSalePrice in interface BundleOrderItem
hasAdjustedItems
public boolean hasAdjustedItems()
- Specified by:
hasAdjustedItems in interface BundleOrderItem
getCurrentPrice
public Money getCurrentPrice()
- Specified by:
getCurrentPrice in interface OrderItem- Overrides:
getCurrentPrice in class OrderItemImpl
updatePrices
public boolean updatePrices()
- Specified by:
updatePrices in interface OrderItem- Overrides:
updatePrices in class OrderItemImpl
equals
public boolean equals(Object obj)
- Overrides:
equals in class OrderItemImpl
getProduct
public Product getProduct()
- Description copied from interface:
BundleOrderItem
- Same as getProductBundle.
- Specified by:
getProduct in interface BundleOrderItem
clone
public OrderItem clone()
- Specified by:
clone in interface OrderItem- Overrides:
clone in class OrderItemImpl
hashCode
public int hashCode()
- Overrides:
hashCode in class OrderItemImpl
accept
public void accept(OrderItemVisitor visitor)
throws PricingException
- Specified by:
accept in interface OrderItem- Overrides:
accept in class OrderItemImpl
- Throws:
PricingException
Copyright © 2013. All Rights Reserved.