java.lang.Object
com.broadleafcommerce.pricing.provider.jpa.domain.JpaPriceList
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 JpaPriceList 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

JPA implementation of PriceList domain.

Author:
Chad Harchar (charchar), Nathan Moore (nathanmoore), Brian Polster (bpolster)
See Also:
  • Constructor Details

    • JpaPriceList

      public JpaPriceList()
  • Method Details

    • getBusinessDomainType

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

      public void setUserTargets(Set<JpaPriceUserTarget> jpaPriceUserTargets)
    • 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
    • userTargetValuesToUserTargetEntities

      protected org.modelmapper.Converter<Set<UserTarget>,Set<JpaPriceUserTarget>> userTargetValuesToUserTargetEntities(org.modelmapper.ModelMapper mapper)
    • 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()
    • getName

      public String getName()
      See Also:
    • 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:
    • getCurrency

      public javax.money.CurrencyUnit getCurrency()
      See Also:
    • getType

      public String getType()
      See Also:
    • getPriceContextCriteria

      public String getPriceContextCriteria()
      See Also:
    • isUseModifier

      public boolean isUseModifier()
      See Also:
    • getModificationAmount

      public BigDecimal getModificationAmount()
      See Also:
    • getModificationType

      public String getModificationType()
      See Also:
    • getModificationCriteria

      public String getModificationCriteria()
      See Also:
    • getFieldToModify

      public String getFieldToModify()
      See Also:
    • isUseTargets

      public boolean isUseTargets()
      Column that is automatically set to true or false based on the existence of user targets. This helps to optimize performance for sites that create a lot of user targeted price lists.
      See Also:
    • getPriority

      public Integer getPriority()
      See Also:
    • getVendorRef

      public String getVendorRef()
      See Also:
    • isAllowVendorsToAddPriceData

      public boolean isAllowVendorsToAddPriceData()
      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
    • getUserTargets

      public Set<JpaPriceUserTarget> getUserTargets()
      See Also:
    • 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()
    • setName

      public void setName(String name)
      See Also:
    • setActiveStartDate

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

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

      public void setCurrency(javax.money.CurrencyUnit currency)
      See Also:
    • setType

      public void setType(String type)
      See Also:
    • setPriceContextCriteria

      public void setPriceContextCriteria(String priceContextCriteria)
      See Also:
    • setUseModifier

      public void setUseModifier(boolean useModifier)
      See Also:
    • setModificationAmount

      public void setModificationAmount(BigDecimal modificationAmount)
      See Also:
    • setModificationType

      public void setModificationType(String modificationType)
      See Also:
    • setModificationCriteria

      public void setModificationCriteria(String modificationCriteria)
      See Also:
    • setFieldToModify

      public void setFieldToModify(String fieldToModify)
      See Also:
    • setUseTargets

      public void setUseTargets(boolean useTargets)
      Column that is automatically set to true or false based on the existence of user targets. This helps to optimize performance for sites that create a lot of user targeted price lists.
      See Also:
    • setPriority

      public void setPriority(Integer priority)
      See Also:
    • setVendorRef

      public void setVendorRef(String vendorRef)
      See Also:
    • setAllowVendorsToAddPriceData

      public void setAllowVendorsToAddPriceData(boolean allowVendorsToAddPriceData)
      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
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object