org.broadleafcommerce.core.catalog.domain
Class SkuBundleItemImpl
java.lang.Object
org.broadleafcommerce.core.catalog.domain.SkuBundleItemImpl
- All Implemented Interfaces:
- Serializable, SkuBundleItem
@Entity
public class SkuBundleItemImpl
- extends Object
- implements SkuBundleItem
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
protected Long id
- The id.
quantity
protected Integer quantity
itemSalePrice
protected BigDecimal itemSalePrice
bundle
protected ProductBundle bundle
dynamicPrices
protected DynamicSkuPrices dynamicPrices
SkuBundleItemImpl
public SkuBundleItemImpl()
getId
public Long getId()
- Specified by:
getId in interface SkuBundleItem
setId
public void setId(Long id)
- Specified by:
setId in interface SkuBundleItem
getQuantity
public Integer getQuantity()
- Specified by:
getQuantity in interface SkuBundleItem
setQuantity
public void setQuantity(Integer quantity)
- Specified by:
setQuantity in interface SkuBundleItem
getDynamicSalePrice
public Money getDynamicSalePrice(Sku sku,
BigDecimal salePrice)
setSalePrice
public void setSalePrice(Money salePrice)
- Description copied from interface:
SkuBundleItem
- Allows for overriding the related Product's sale price. This is only used
if the pricing model for the bundle is a composition of its parts
getProduct().getDefaultSku().getSalePrice()
- Specified by:
setSalePrice in interface SkuBundleItem
getSalePrice
public Money getSalePrice()
- Specified by:
getSalePrice in interface SkuBundleItem
- Returns:
- this itemSalePrice if it is set,
getProduct().getDefaultSku().getSalePrice() if this item's itemSalePrice is
null
getRetailPrice
public Money getRetailPrice()
- Specified by:
getRetailPrice in interface SkuBundleItem
getBundle
public ProductBundle getBundle()
- Specified by:
getBundle in interface SkuBundleItem
setBundle
public void setBundle(ProductBundle bundle)
- Specified by:
setBundle in interface SkuBundleItem
getSku
public Sku getSku()
- Specified by:
getSku in interface SkuBundleItem
setSku
public void setSku(Sku sku)
- Specified by:
setSku in interface SkuBundleItem
clearDynamicPrices
public void clearDynamicPrices()
- Description copied from interface:
SkuBundleItem
- Removes any currently stored dynamic pricing
- Specified by:
clearDynamicPrices in interface SkuBundleItem
Copyright © 2013. All Rights Reserved.