Class JpaPriceList
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
org.modelmapper.ModelMapper
fromMe()
get_id()
Class<?>
javax.money.CurrencyUnit
getName()
com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking
getType()
int
hashCode()
boolean
boolean
boolean
Column that is automatically set to true or false based on the existence of user targets.void
void
setActiveEndDate
(Instant activeEndDate) void
setActiveStartDate
(Instant activeStartDate) void
setAllowVendorsToAddPriceData
(boolean allowVendorsToAddPriceData) void
setContextId
(String contextId) void
setCurrency
(javax.money.CurrencyUnit currency) void
setFieldToModify
(String fieldToModify) void
setModificationAmount
(BigDecimal modificationAmount) void
setModificationCriteria
(String modificationCriteria) void
setModificationType
(String modificationType) void
void
setPriceContextCriteria
(String priceContextCriteria) void
setPriority
(Integer priority) void
setTracking
(com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking tracking) void
void
setUseModifier
(boolean useModifier) void
setUserTargets
(Set<JpaPriceUserTarget> jpaPriceUserTargets) void
setUseTargets
(boolean useTargets) Column that is automatically set to true or false based on the existence of user targets.void
setVendorRef
(String vendorRef) org.modelmapper.ModelMapper
toMe()
toString()
protected org.modelmapper.Converter<Set<UserTarget>,
Set<JpaPriceUserTarget>> userTargetValuesToUserTargetEntities
(org.modelmapper.ModelMapper mapper) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
postFromMe, postToMe, preFromMe, preToMe
Methods inherited from interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
findNotificationState
Methods inherited from interface com.broadleafcommerce.data.tracking.core.Trackable
getDisplay, getNotificationStates, getNotificationStates, setNotificationStates
Methods inherited from interface com.broadleafcommerce.data.tracking.core.TypedTrackable
setTracking
-
Constructor Details
-
JpaPriceList
public JpaPriceList()
-
-
Method Details
-
getBusinessDomainType
- Specified by:
getBusinessDomainType
in interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
setUserTargets
-
fromMe
@NonNull public org.modelmapper.ModelMapper fromMe()- Specified by:
fromMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMe
@NonNull public org.modelmapper.ModelMapper toMe()- Specified by:
toMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
userTargetValuesToUserTargetEntities
protected org.modelmapper.Converter<Set<UserTarget>,Set<JpaPriceUserTarget>> userTargetValuesToUserTargetEntities(org.modelmapper.ModelMapper mapper) -
get_id
-
getContextId
- Specified by:
getContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
- See Also:
-
Trackable.getContextId()
-
getName
- See Also:
-
getActiveStartDate
- Specified by:
getActiveStartDate
in interfacecom.broadleafcommerce.data.tracking.core.filtering.ActiveAware
- See Also:
-
getActiveEndDate
- Specified by:
getActiveEndDate
in interfacecom.broadleafcommerce.data.tracking.core.filtering.ActiveAware
- See Also:
-
getCurrency
public javax.money.CurrencyUnit getCurrency()- See Also:
-
getType
- See Also:
-
getPriceContextCriteria
- See Also:
-
isUseModifier
public boolean isUseModifier()- See Also:
-
getModificationAmount
- See Also:
-
getModificationType
- See Also:
-
getModificationCriteria
- See Also:
-
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
- See Also:
-
getVendorRef
- See Also:
-
isAllowVendorsToAddPriceData
public boolean isAllowVendorsToAddPriceData()- See Also:
-
getTracking
public com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking getTracking()- Specified by:
getTracking
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
- See Also:
-
ApplicationJpaTracking
-
getUserTargets
- See Also:
-
set_id
-
setContextId
- Specified by:
setContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
- See Also:
-
Trackable.getContextId()
-
setName
- See Also:
-
setActiveStartDate
- See Also:
-
setActiveEndDate
- See Also:
-
setCurrency
public void setCurrency(javax.money.CurrencyUnit currency) - See Also:
-
setType
- See Also:
-
setPriceContextCriteria
- See Also:
-
setUseModifier
public void setUseModifier(boolean useModifier) - See Also:
-
setModificationAmount
- See Also:
-
setModificationType
- See Also:
-
setModificationCriteria
- See Also:
-
setFieldToModify
- 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
- See Also:
-
setVendorRef
- 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 interfacecom.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking>
- See Also:
-
ApplicationJpaTracking
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-