java.lang.Object
com.broadleafcommerce.pricing.provider.jpa.domain.JpaPriceData
All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware, com.broadleafcommerce.data.tracking.core.ApplicationTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking>, 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.Trackable, com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking>, Serializable

@Entity public class JpaPriceData extends Object implements com.broadleafcommerce.data.tracking.core.ApplicationTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking>, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.data.tracking.core.filtering.ActiveAware, Serializable
Persistent counter-part to a PriceData for use with a JPA datastore.
Author:
Chad Harchar (charchar), Nathan Moore (nathanmoore)
See Also:
  • Constructor Details

    • JpaPriceData

      public JpaPriceData()
  • Method Details

    • 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
    • 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
    • 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
    • getPrice

      public javax.money.MonetaryAmount getPrice()
    • setPrice

      public void setPrice(javax.money.MonetaryAmount price)
    • get_id

      public String get_id()
    • getContextId

      public String getContextId()
      Specified by:
      getContextId in interface com.broadleafcommerce.data.tracking.core.Trackable
      See Also:
      • Trackable.getContextId()
    • getPriceListId

      public String getPriceListId()
      See Also:
    • getPriceListName

      public String getPriceListName()
      See Also:
    • getTargetContextId

      public String getTargetContextId()
    • getTargetType

      public String getTargetType()
      See Also:
      • PriceableTarget.getTargetType()
    • getTargetVendorRef

      public String getTargetVendorRef()
    • getCurrency

      public javax.money.CurrencyUnit getCurrency()
      Transient property that holds the parent price list currency in order to convert price to a MonetaryAmount.
    • getActiveStartDate

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

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

      public List<JpaPriceDataTier> getTiers()
      See Also:
    • getTracking

      public com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking getTracking()
      Specified by:
      getTracking in interface com.broadleafcommerce.data.tracking.core.Trackable
      See Also:
      • ApplicationJpaTracking
    • 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
      See Also:
      • Trackable.getContextId()
    • setPriceListId

      public void setPriceListId(String priceListId)
      See Also:
    • setPriceListName

      public void setPriceListName(String priceListName)
      See Also:
    • setTargetContextId

      public void setTargetContextId(String targetContextId)
    • setTargetType

      public void setTargetType(String targetType)
      See Also:
      • PriceableTarget.getTargetType()
    • setTargetVendorRef

      public void setTargetVendorRef(String targetVendorRef)
    • setCurrency

      public void setCurrency(javax.money.CurrencyUnit currency)
      Transient property that holds the parent price list currency in order to convert price to a MonetaryAmount.
    • setActiveStartDate

      public void setActiveStartDate(Instant activeStartDate)
      See Also:
    • setActiveEndDate

      public void setActiveEndDate(Instant activeEndDate)
      See Also:
    • setTiers

      public void setTiers(List<JpaPriceDataTier> tiers)
      See Also:
    • setTracking

      public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking tracking)
      Specified by:
      setTracking in interface com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking>
      See Also:
      • ApplicationJpaTracking
    • 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