Class JpaOrderItem

  • All Implemented Interfaces:
    com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, Serializable

    @Entity
    public class JpaOrderItem
    extends Object
    implements Serializable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
    JPA implementation of OrderItem.
    See Also:
    Serialized Form
    • Constructor Detail

      • JpaOrderItem

        public JpaOrderItem()
    • Method Detail

      • getBusinessDomainType

        public Class<?> getBusinessDomainType()
        Specified by:
        getBusinessDomainType in interface com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
      • setUnitPrice

        public void setUnitPrice​(javax.money.MonetaryAmount unitPrice)
      • getUnitPrice

        public javax.money.MonetaryAmount getUnitPrice()
      • setAdjustmentsTotal

        public void setAdjustmentsTotal​(javax.money.MonetaryAmount adjustmentsTotal)
      • getAdjustmentsTotal

        public javax.money.MonetaryAmount getAdjustmentsTotal()
      • setSubtotal

        public void setSubtotal​(javax.money.MonetaryAmount subtotal)
      • getSubtotal

        public javax.money.MonetaryAmount getSubtotal()
      • setTotal

        public void setTotal​(javax.money.MonetaryAmount total)
      • getTotal

        public javax.money.MonetaryAmount getTotal()
      • setProratedOrderAdjustments

        public void setProratedOrderAdjustments​(javax.money.MonetaryAmount proratedOrderAdjustments)
      • getProratedOrderAdjustments

        public javax.money.MonetaryAmount getProratedOrderAdjustments()
      • setRefundAmount

        public void setRefundAmount​(javax.money.MonetaryAmount refundAmount)
      • getRefundAmount

        public javax.money.MonetaryAmount getRefundAmount()
      • getContextId

        public String getContextId()
        The jpa primary key.
        Returns:
        The jpa primary key
      • getName

        public String getName()
      • getUri

        public String getUri()
      • getQuantity

        public int getQuantity()
      • getCurrency

        public javax.money.CurrencyUnit getCurrency()
      • isOverridePriceFlag

        public boolean isOverridePriceFlag()
      • getPriceListId

        public String getPriceListId()
      • getUnitPriceType

        public String getUnitPriceType()
      • getPricingStrategy

        public String getPricingStrategy()
      • getVariantId

        public String getVariantId()
      • getProductId

        public String getProductId()
      • getCategoryIds

        public Set<String> getCategoryIds()
      • getProductTags

        public List<String> getProductTags()
      • getSku

        public String getSku()
      • getImageAsset

        public com.broadleafcommerce.order.client.domain.ImageAssetRef getImageAsset()
      • isDiscountable

        public boolean isDiscountable()
      • getVendorRef

        public String getVendorRef()
      • getMerchandisingContext

        public String getMerchandisingContext()
      • getBrandId

        public String getBrandId()
      • getMerchandisingTypeId

        public String getMerchandisingTypeId()
      • getTargetDemographicId

        public String getTargetDemographicId()
      • getDependentOrderItems

        public List<com.broadleafcommerce.order.client.domain.OrderItem> getDependentOrderItems()
      • getItemAdjustments

        public List<com.broadleafcommerce.order.common.domain.Adjustment> getItemAdjustments()
      • getInternalAttributes

        public Map<String,​Object> getInternalAttributes()
      • getAttributeChoices

        public Map<String,​com.broadleafcommerce.order.common.domain.AttributeChoiceValue> getAttributeChoices()
      • getOverrideDetails

        public List<com.broadleafcommerce.order.common.domain.OverrideDetail> getOverrideDetails()
      • getType

        public String getType()
      • setContextId

        public void setContextId​(String contextId)
        The jpa primary key.
        Parameters:
        _id - The jpa primary key
      • setOrder

        public void setOrder​(JpaOrder order)
      • setName

        public void setName​(String name)
      • setUri

        public void setUri​(String uri)
      • setQuantity

        public void setQuantity​(int quantity)
      • setCurrency

        public void setCurrency​(javax.money.CurrencyUnit currency)
      • setOverridePriceFlag

        public void setOverridePriceFlag​(boolean overridePriceFlag)
      • setPriceListId

        public void setPriceListId​(String priceListId)
      • setUnitPriceType

        public void setUnitPriceType​(String unitPriceType)
      • setPricingStrategy

        public void setPricingStrategy​(String pricingStrategy)
      • setVariantId

        public void setVariantId​(String variantId)
      • setProductId

        public void setProductId​(String productId)
      • setCategoryIds

        public void setCategoryIds​(Set<String> categoryIds)
      • setProductTags

        public void setProductTags​(List<String> productTags)
      • setSku

        public void setSku​(String sku)
      • setImageAsset

        public void setImageAsset​(com.broadleafcommerce.order.client.domain.ImageAssetRef imageAsset)
      • setDiscountable

        public void setDiscountable​(boolean discountable)
      • setVendorRef

        public void setVendorRef​(String vendorRef)
      • setMerchandisingContext

        public void setMerchandisingContext​(String merchandisingContext)
      • setBrandId

        public void setBrandId​(String brandId)
      • setMerchandisingTypeId

        public void setMerchandisingTypeId​(String merchandisingTypeId)
      • setTargetDemographicId

        public void setTargetDemographicId​(String targetDemographicId)
      • setDependentOrderItems

        public void setDependentOrderItems​(List<com.broadleafcommerce.order.client.domain.OrderItem> dependentOrderItems)
      • setItemAdjustments

        public void setItemAdjustments​(List<com.broadleafcommerce.order.common.domain.Adjustment> itemAdjustments)
      • setAttributes

        public void setAttributes​(Map<String,​Object> attributes)
      • setInternalAttributes

        public void setInternalAttributes​(Map<String,​Object> internalAttributes)
      • setAttributeChoices

        public void setAttributeChoices​(Map<String,​com.broadleafcommerce.order.common.domain.AttributeChoiceValue> attributeChoices)
      • setOverrideDetails

        public void setOverrideDetails​(List<com.broadleafcommerce.order.common.domain.OverrideDetail> overrideDetails)
      • setType

        public void setType​(String type)
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object