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:
PriceList
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JpaPriceList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
org.modelmapper.ModelMapper
fromMe()
String
get_id()
Instant
getActiveEndDate()
Instant
getActiveStartDate()
Class<?>
getBusinessDomainType()
String
getContextId()
javax.money.CurrencyUnit
getCurrency()
String
getFieldToModify()
BigDecimal
getModificationAmount()
String
getModificationCriteria()
String
getModificationType()
String
getName()
String
getPriceContextCriteria()
Integer
getPriority()
com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking
getTracking()
String
getType()
Set<JpaPriceUserTarget>
getUserTargets()
String
getVendorRef()
int
hashCode()
boolean
isAllowVendorsToAddPriceData()
boolean
isUseModifier()
boolean
isUseTargets()
Column that is automatically set to true or false based on the existence of user targets.void
set_id(String _id)
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
setName(String name)
void
setPriceContextCriteria(String priceContextCriteria)
void
setPriority(Integer priority)
void
setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking tracking)
void
setType(String type)
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()
String
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
-
-
-
-
Method Detail
-
getBusinessDomainType
public Class<?> getBusinessDomainType()
- Specified by:
getBusinessDomainType
in interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
setUserTargets
public void setUserTargets(Set<JpaPriceUserTarget> jpaPriceUserTargets)
-
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
public String get_id()
-
getContextId
public String getContextId()
- Specified by:
getContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
- See Also:
Trackable.getContextId()
-
getName
public String getName()
- See Also:
PriceList.getName()
-
getActiveStartDate
public Instant getActiveStartDate()
- Specified by:
getActiveStartDate
in interfacecom.broadleafcommerce.data.tracking.core.filtering.ActiveAware
- See Also:
PriceList.getActiveStartDate()
-
getActiveEndDate
public Instant getActiveEndDate()
- Specified by:
getActiveEndDate
in interfacecom.broadleafcommerce.data.tracking.core.filtering.ActiveAware
- See Also:
PriceList.getActiveEndDate()
-
getCurrency
public javax.money.CurrencyUnit getCurrency()
- See Also:
PriceList.getCurrency()
-
getType
public String getType()
- See Also:
PriceList.getType()
-
getPriceContextCriteria
public String getPriceContextCriteria()
- See Also:
PriceList.getPriceContextCriteria()
-
isUseModifier
public boolean isUseModifier()
- See Also:
PriceList.isUseModifier()
-
getModificationAmount
public BigDecimal getModificationAmount()
- See Also:
PriceModifier.getAmount()
-
getModificationType
public String getModificationType()
- See Also:
PriceModifier.getModificationType()
-
getModificationCriteria
public String getModificationCriteria()
- See Also:
PriceModifier.getCriteria()
-
getFieldToModify
public String getFieldToModify()
- See Also:
PriceModifier.getFieldToModify()
-
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:
to see how this is populated
-
getPriority
public Integer getPriority()
- See Also:
PriceList.getPriority()
-
getVendorRef
public String getVendorRef()
- See Also:
PriceList.getVendorRef()
-
isAllowVendorsToAddPriceData
public boolean isAllowVendorsToAddPriceData()
- See Also:
PriceList.isAllowVendorsToAddPriceData()
-
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
public Set<JpaPriceUserTarget> getUserTargets()
- See Also:
PriceList.getUserTargets()
-
set_id
public void set_id(String _id)
-
setContextId
public void setContextId(String contextId)
- Specified by:
setContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
- See Also:
Trackable.getContextId()
-
setName
public void setName(String name)
- See Also:
PriceList.getName()
-
setActiveStartDate
public void setActiveStartDate(Instant activeStartDate)
- See Also:
PriceList.getActiveStartDate()
-
setActiveEndDate
public void setActiveEndDate(Instant activeEndDate)
- See Also:
PriceList.getActiveEndDate()
-
setCurrency
public void setCurrency(javax.money.CurrencyUnit currency)
- See Also:
PriceList.getCurrency()
-
setType
public void setType(String type)
- See Also:
PriceList.getType()
-
setPriceContextCriteria
public void setPriceContextCriteria(String priceContextCriteria)
- See Also:
PriceList.getPriceContextCriteria()
-
setUseModifier
public void setUseModifier(boolean useModifier)
- See Also:
PriceList.isUseModifier()
-
setModificationAmount
public void setModificationAmount(BigDecimal modificationAmount)
- See Also:
PriceModifier.getAmount()
-
setModificationType
public void setModificationType(String modificationType)
- See Also:
PriceModifier.getModificationType()
-
setModificationCriteria
public void setModificationCriteria(String modificationCriteria)
- See Also:
PriceModifier.getCriteria()
-
setFieldToModify
public void setFieldToModify(String fieldToModify)
- See Also:
PriceModifier.getFieldToModify()
-
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:
to see how this is populated
-
setPriority
public void setPriority(Integer priority)
- See Also:
PriceList.getPriority()
-
setVendorRef
public void setVendorRef(String vendorRef)
- See Also:
PriceList.getVendorRef()
-
setAllowVendorsToAddPriceData
public void setAllowVendorsToAddPriceData(boolean allowVendorsToAddPriceData)
- See Also:
PriceList.isAllowVendorsToAddPriceData()
-
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
-
canEqual
protected boolean canEqual(Object other)
-
-