Class 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:
    Serialized Form
    • Constructor Detail

      • JpaPriceData

        public JpaPriceData()
    • Method Detail

      • 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()
      • 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:
        PriceData.getActiveStartDate()
      • getActiveEndDate

        public Instant getActiveEndDate()
        Specified by:
        getActiveEndDate in interface com.broadleafcommerce.data.tracking.core.filtering.ActiveAware
        See Also:
        PriceData.getActiveEndDate()
      • 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()
      • 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.
      • 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
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object