Class OrderItemPriceDetailImpl
java.lang.Object
org.broadleafcommerce.core.order.domain.OrderItemPriceDetailImpl
- All Implemented Interfaces:
Serializable,MultiTenantCloneable<OrderItemPriceDetail>,CurrencyCodeIdentifiable,OrderItemPriceDetail
@Entity
public class OrderItemPriceDetailImpl
extends Object
implements OrderItemPriceDetail, CurrencyCodeIdentifiable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longprotected static final org.apache.commons.logging.Logprotected OrderItemprotected List<OrderItemPriceDetailAdjustment>protected intprotected Boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<G extends OrderItemPriceDetail>
CreateResponse<G>Returns the value of all adjustments for a single quantity of the item.protected BroadleafCurrencyReturns the value of future credit adjustments for a single quantity of the item.Returns a List of the future credit adjustments that effected this priceDetail.Returns getFutureCreditAdjustmentValue() * the quantity.getId()The unique identifier of this OrderItemReference back to the containing orderItem.Returns a List of the adjustments that effected this priceDetail.intThe quantity of thisOrderItemPriceDetail.Returns the total adjustedPrice.Returns getAdjustmentValue() * the quantity.booleanIndicates that the adjustments were based off of the item's sale price.voidSets the unique id of the OrderItem.voidsetOrderItem(OrderItem orderItem) Sets the orderItem for this itemPriceDetail.voidsetOrderItemAdjustments(List<OrderItemPriceDetailAdjustment> orderItemPriceDetailAdjustments) Sets the list of OrderItemPriceDetailAdjustmentvoidsetQuantity(int quantity) Returns the quantityvoidsetUseSalePrice(boolean useSalePrice) Set that the adjustments should be taken off of the item's sale price.
-
Field Details
-
LOG
protected static final org.apache.commons.logging.Log LOG -
id
-
orderItem
-
orderItemPriceDetailAdjustments
-
quantity
protected int quantity -
useSalePrice
-
-
Constructor Details
-
OrderItemPriceDetailImpl
public OrderItemPriceDetailImpl()
-
-
Method Details
-
getId
Description copied from interface:OrderItemPriceDetailThe unique identifier of this OrderItem- Specified by:
getIdin interfaceOrderItemPriceDetail- Returns:
-
setId
Description copied from interface:OrderItemPriceDetailSets the unique id of the OrderItem. Typically left blank for new items and Broadleaf will set using the next sequence number.- Specified by:
setIdin interfaceOrderItemPriceDetail
-
getOrderItem
Description copied from interface:OrderItemPriceDetailReference back to the containing orderItem.- Specified by:
getOrderItemin interfaceOrderItemPriceDetail- Returns:
-
setOrderItem
Description copied from interface:OrderItemPriceDetailSets the orderItem for this itemPriceDetail.- Specified by:
setOrderItemin interfaceOrderItemPriceDetail
-
getOrderItemPriceDetailAdjustments
Description copied from interface:OrderItemPriceDetailReturns a List of the adjustments that effected this priceDetail.- Specified by:
getOrderItemPriceDetailAdjustmentsin interfaceOrderItemPriceDetail- Returns:
- a List of OrderItemPriceDetailAdjustment
-
getFutureCreditOrderItemPriceDetailAdjustments
Description copied from interface:OrderItemPriceDetailReturns a List of the future credit adjustments that effected this priceDetail.See
Offer.getAdjustmentType()for more info on future credit- Specified by:
getFutureCreditOrderItemPriceDetailAdjustmentsin interfaceOrderItemPriceDetail- Returns:
- a List of OrderItemPriceDetailAdjustment
-
setOrderItemAdjustments
public void setOrderItemAdjustments(List<OrderItemPriceDetailAdjustment> orderItemPriceDetailAdjustments) Description copied from interface:OrderItemPriceDetailSets the list of OrderItemPriceDetailAdjustment- Specified by:
setOrderItemAdjustmentsin interfaceOrderItemPriceDetail
-
getQuantity
public int getQuantity()Description copied from interface:OrderItemPriceDetailThe quantity of thisOrderItemPriceDetail.- Specified by:
getQuantityin interfaceOrderItemPriceDetail- Returns:
-
setQuantity
public void setQuantity(int quantity) Description copied from interface:OrderItemPriceDetailReturns the quantity- Specified by:
setQuantityin interfaceOrderItemPriceDetail
-
getCurrency
-
getAdjustmentValue
Description copied from interface:OrderItemPriceDetailReturns the value of all adjustments for a single quantity of the item.Use
OrderItemPriceDetail.getTotalAdjustmentValue()to get the total for all quantities of this item.- Specified by:
getAdjustmentValuein interfaceOrderItemPriceDetail- Returns:
-
getFutureCreditAdjustmentValue
Description copied from interface:OrderItemPriceDetailReturns the value of future credit adjustments for a single quantity of the item.Use
OrderItemPriceDetail.getFutureCreditTotalAdjustmentValue()to get the total for all quantities of this item.See
Offer.getAdjustmentType()for more info on future credit- Specified by:
getFutureCreditAdjustmentValuein interfaceOrderItemPriceDetail- Returns:
-
getRoundingModeForAdj
-
getTotalAdjustmentValue
Description copied from interface:OrderItemPriceDetailReturns getAdjustmentValue() * the quantity.- Specified by:
getTotalAdjustmentValuein interfaceOrderItemPriceDetail- Returns:
-
getFutureCreditTotalAdjustmentValue
Description copied from interface:OrderItemPriceDetailReturns getFutureCreditAdjustmentValue() * the quantity.See
Offer.getAdjustmentType()for more info on future credit- Specified by:
getFutureCreditTotalAdjustmentValuein interfaceOrderItemPriceDetail- Returns:
-
getTotalAdjustedPrice
Description copied from interface:OrderItemPriceDetailReturns the total adjustedPrice.- Specified by:
getTotalAdjustedPricein interfaceOrderItemPriceDetail- Returns:
-
getUseSalePrice
public boolean getUseSalePrice()Description copied from interface:OrderItemPriceDetailIndicates that the adjustments were based off of the item's sale price.- Specified by:
getUseSalePricein interfaceOrderItemPriceDetail- Returns:
-
setUseSalePrice
public void setUseSalePrice(boolean useSalePrice) Description copied from interface:OrderItemPriceDetailSet that the adjustments should be taken off of the item's sale price.- Specified by:
setUseSalePricein interfaceOrderItemPriceDetail
-
getCurrencyCode
- Specified by:
getCurrencyCodein interfaceCurrencyCodeIdentifiable
-
createOrRetrieveCopyInstance
public <G extends OrderItemPriceDetail> CreateResponse<G> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceMultiTenantCloneable<OrderItemPriceDetail>- Throws:
CloneNotSupportedException
-