java.lang.Object
com.broadleafcommerce.catalog.provider.jpa.domain.product.JpaProduct
All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware, com.broadleafcommerce.data.tracking.core.CatalogTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking>, com.broadleafcommerce.data.tracking.core.filtering.ActiveAware, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.money.CurrencyProvider, com.broadleafcommerce.data.tracking.core.search.Indexable, com.broadleafcommerce.data.tracking.core.Trackable, com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking>, com.broadleafcommerce.money.CurrencyConsumer, com.broadleafcommerce.translation.domain.Translatable, Serializable, javax.money.CurrencySupplier

@Entity public class JpaProduct extends Object implements com.broadleafcommerce.data.tracking.core.CatalogTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking>, Serializable, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.data.tracking.core.mapping.money.CurrencyProvider, com.broadleafcommerce.money.CurrencyConsumer, com.broadleafcommerce.translation.domain.Translatable, com.broadleafcommerce.data.tracking.core.filtering.ActiveAware, com.broadleafcommerce.data.tracking.core.search.Indexable
Author:
Phillip Verheyden (phillipuniverse), Samarth Dhruva (samarthd)
See Also:
  • Constructor Details

    • JpaProduct

      public JpaProduct()
  • Method Details

    • fromMe

      @NonNull public org.modelmapper.ModelMapper fromMe()
      Specified by:
      fromMe in interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
    • toMe

      @NonNull public org.modelmapper.ModelMapper toMe()
      Specified by:
      toMe in interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
    • preFromMe

      public void preFromMe(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, Object businessDomain)
      Specified by:
      preFromMe in interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
    • preToMe

      public void preToMe(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, Object businessDomain)
      Specified by:
      preToMe in interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
    • getBusinessDomainType

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

      public Optional<String> getDisplay()
      Specified by:
      getDisplay in interface com.broadleafcommerce.data.tracking.core.Trackable
    • getDefaultPrice

      public javax.money.MonetaryAmount getDefaultPrice()
    • setDefaultPrice

      public void setDefaultPrice(javax.money.MonetaryAmount defaultPrice)
    • getSalePrice

      public javax.money.MonetaryAmount getSalePrice()
    • setSalePrice

      public void setSalePrice(javax.money.MonetaryAmount salePrice)
    • getCost

      public javax.money.MonetaryAmount getCost()
    • setCost

      public void setCost(javax.money.MonetaryAmount cost)
    • getMsrp

      public javax.money.MonetaryAmount getMsrp()
    • setMsrp

      public void setMsrp(javax.money.MonetaryAmount msrp)
    • setTagsAsString

      public void setTagsAsString(String tags)
    • getTagsAsString

      public String getTagsAsString()
    • setTags

      public void setTags(List<String> tags)
    • getTags

      public List<String> getTags()
    • get_id

      public String get_id()
    • getContextId

      public String getContextId()
      Specified by:
      getContextId in interface com.broadleafcommerce.data.tracking.core.Trackable
      Specified by:
      getContextId in interface com.broadleafcommerce.translation.domain.Translatable
    • getTracking

      public com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking getTracking()
      Specified by:
      getTracking in interface com.broadleafcommerce.data.tracking.core.Trackable
    • getName

      public String getName()
    • getUri

      public String getUri()
    • getDescription

      public String getDescription()
    • getSku

      public String getSku()
    • getUpc

      public String getUpc()
    • getExternalId

      public String getExternalId()
    • getMetaTitle

      public String getMetaTitle()
    • getMetaDescription

      public String getMetaDescription()
    • isOnline

      public boolean isOnline()
    • isDiscountable

      public boolean isDiscountable()
    • isEligibleForPickup

      public boolean isEligibleForPickup()
    • getActiveStartDate

      public Instant getActiveStartDate()
      Specified by:
      getActiveStartDate in interface com.broadleafcommerce.data.tracking.core.filtering.ActiveAware
    • getActiveEndDate

      public Instant getActiveEndDate()
      Specified by:
      getActiveEndDate in interface com.broadleafcommerce.data.tracking.core.filtering.ActiveAware
    • getCurrency

      public javax.money.CurrencyUnit getCurrency()
      Specified by:
      getCurrency in interface javax.money.CurrencySupplier
    • getPricingKey

      public String getPricingKey()
    • getMinimumThreshold

      public Integer getMinimumThreshold()
    • getMaximumThreshold

      public Integer getMaximumThreshold()
    • getWidth

      public BigDecimal getWidth()
    • getHeight

      public BigDecimal getHeight()
    • getDepth

      public BigDecimal getDepth()
    • getDimensionUnits

      public String getDimensionUnits()
    • getWeight

      public BigDecimal getWeight()
    • getWeightUnits

      public String getWeightUnits()
    • getMergingType

      public String getMergingType()
    • isSearchable

      public boolean isSearchable()
    • isIndividuallySold

      public boolean isIndividuallySold()
    • isMerchandisingProduct

      public boolean isMerchandisingProduct()
    • getProductType

      public String getProductType()
    • getInventoryType

      public String getInventoryType()
    • isAvailableOnline

      public boolean isAvailableOnline()
    • getInventoryCheckStrategy

      public String getInventoryCheckStrategy()
    • getInventoryReservationStrategy

      public String getInventoryReservationStrategy()
    • getNumberOfReviews

      public Integer getNumberOfReviews()
      See Also:
    • getRating

      public BigDecimal getRating()
      See Also:
    • getRatingUnits

      public String getRatingUnits()
      See Also:
    • getAttributes

      public Map<String,JpaAttribute> getAttributes()
    • getKeywords

      public List<String> getKeywords()
    • getOptions

      public List<JpaProductOption> getOptions()
    • getIncludedProducts

      public List<JpaIncludedProduct> getIncludedProducts()
    • getFulfillmentFlatRates

      public Map<String,JpaFulfillmentFlatRate> getFulfillmentFlatRates()
    • getTaxCode

      public String getTaxCode()
    • getBrandContextId

      public String getBrandContextId()
    • getMerchandisingTypeContextId

      public String getMerchandisingTypeContextId()
    • getTargetDemographicContextId

      public String getTargetDemographicContextId()
    • getDisplayTemplate

      public String getDisplayTemplate()
    • set_id

      public void set_id(String _id)
    • setContextId

      public void setContextId(String contextId)
      Specified by:
      setContextId in interface com.broadleafcommerce.data.tracking.core.Trackable
    • setTracking

      public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking tracking)
      Specified by:
      setTracking in interface com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking>
    • setName

      public void setName(String name)
    • setUri

      public void setUri(String uri)
    • setDescription

      public void setDescription(String description)
    • setSku

      public void setSku(String sku)
    • setUpc

      public void setUpc(String upc)
    • setExternalId

      public void setExternalId(String externalId)
    • setMetaTitle

      public void setMetaTitle(String metaTitle)
    • setMetaDescription

      public void setMetaDescription(String metaDescription)
    • setOnline

      public void setOnline(boolean online)
    • setDiscountable

      public void setDiscountable(boolean discountable)
    • setEligibleForPickup

      public void setEligibleForPickup(boolean eligibleForPickup)
    • setActiveStartDate

      public void setActiveStartDate(Instant activeStartDate)
    • setActiveEndDate

      public void setActiveEndDate(Instant activeEndDate)
    • setCurrency

      public void setCurrency(javax.money.CurrencyUnit currency)
      Specified by:
      setCurrency in interface com.broadleafcommerce.money.CurrencyConsumer
    • setPricingKey

      public void setPricingKey(String pricingKey)
    • setMinimumThreshold

      public void setMinimumThreshold(Integer minimumThreshold)
    • setMaximumThreshold

      public void setMaximumThreshold(Integer maximumThreshold)
    • setWidth

      public void setWidth(BigDecimal width)
    • setHeight

      public void setHeight(BigDecimal height)
    • setDepth

      public void setDepth(BigDecimal depth)
    • setDimensionUnits

      public void setDimensionUnits(String dimensionUnits)
    • setWeight

      public void setWeight(BigDecimal weight)
    • setWeightUnits

      public void setWeightUnits(String weightUnits)
    • setMergingType

      public void setMergingType(String mergingType)
    • setSearchable

      public void setSearchable(boolean searchable)
    • setIndividuallySold

      public void setIndividuallySold(boolean individuallySold)
    • setMerchandisingProduct

      public void setMerchandisingProduct(boolean merchandisingProduct)
    • setProductType

      public void setProductType(String productType)
    • setInventoryType

      public void setInventoryType(String inventoryType)
    • setAvailableOnline

      public void setAvailableOnline(boolean availableOnline)
    • setInventoryCheckStrategy

      public void setInventoryCheckStrategy(String inventoryCheckStrategy)
    • setInventoryReservationStrategy

      public void setInventoryReservationStrategy(String inventoryReservationStrategy)
    • setNumberOfReviews

      public void setNumberOfReviews(Integer numberOfReviews)
      See Also:
    • setRating

      public void setRating(BigDecimal rating)
      See Also:
    • setRatingUnits

      public void setRatingUnits(String ratingUnits)
      See Also:
    • setAttributes

      public void setAttributes(Map<String,JpaAttribute> attributes)
    • setKeywords

      public void setKeywords(List<String> keywords)
    • setOptions

      public void setOptions(List<JpaProductOption> options)
    • setIncludedProducts

      public void setIncludedProducts(List<JpaIncludedProduct> includedProducts)
    • setFulfillmentFlatRates

      public void setFulfillmentFlatRates(Map<String,JpaFulfillmentFlatRate> fulfillmentFlatRates)
    • setTaxCode

      public void setTaxCode(String taxCode)
    • setBrandContextId

      public void setBrandContextId(String brandContextId)
    • setMerchandisingTypeContextId

      public void setMerchandisingTypeContextId(String merchandisingTypeContextId)
    • setTargetDemographicContextId

      public void setTargetDemographicContextId(String targetDemographicContextId)
    • setDisplayTemplate

      public void setDisplayTemplate(String displayTemplate)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object