Class JpaPriceData
- 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 aPriceData
for use with a JPA datastore.- Author:
- Chad Harchar (charchar), Nathan Moore (nathanmoore)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JpaPriceData()
-
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()
Transient property that holds the parent price list currency in order to convert price to a MonetaryAmount.Optional<String>
getDisplay()
javax.money.MonetaryAmount
getPrice()
String
getPriceListId()
String
getPriceListName()
String
getTargetContextId()
String
getTargetType()
String
getTargetVendorRef()
List<JpaPriceDataTier>
getTiers()
com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking
getTracking()
int
hashCode()
void
preFromMe(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, Object businessDomain)
void
set_id(String _id)
void
setActiveEndDate(Instant activeEndDate)
void
setActiveStartDate(Instant activeStartDate)
void
setContextId(String contextId)
void
setCurrency(javax.money.CurrencyUnit currency)
Transient property that holds the parent price list currency in order to convert price to a MonetaryAmount.void
setPrice(javax.money.MonetaryAmount price)
void
setPriceListId(String priceListId)
void
setPriceListName(String priceListName)
void
setTargetContextId(String targetContextId)
void
setTargetType(String targetType)
void
setTargetVendorRef(String targetVendorRef)
void
setTiers(List<JpaPriceDataTier> tiers)
void
setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking tracking)
org.modelmapper.ModelMapper
toMe()
String
toString()
-
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, preToMe
-
Methods inherited from interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
findNotificationState
-
-
-
-
Method Detail
-
preFromMe
public void preFromMe(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, Object businessDomain)
- Specified by:
preFromMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
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
-
getBusinessDomainType
public Class<?> getBusinessDomainType()
- Specified by:
getBusinessDomainType
in interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
getDisplay
public Optional<String> getDisplay()
- Specified by:
getDisplay
in interfacecom.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 interfacecom.broadleafcommerce.data.tracking.core.Trackable
- See Also:
Trackable.getContextId()
-
getPriceListId
public String getPriceListId()
- See Also:
PriceData.getPriceListId()
-
getPriceListName
public String getPriceListName()
- See Also:
PriceData.getPriceListName()
-
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 interfacecom.broadleafcommerce.data.tracking.core.filtering.ActiveAware
- See Also:
PriceData.getActiveStartDate()
-
getActiveEndDate
public Instant getActiveEndDate()
- Specified by:
getActiveEndDate
in interfacecom.broadleafcommerce.data.tracking.core.filtering.ActiveAware
- See Also:
PriceData.getActiveEndDate()
-
getTiers
public List<JpaPriceDataTier> getTiers()
- See Also:
PriceData.getTiers()
-
getTracking
public com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking getTracking()
- Specified by:
getTracking
in interfacecom.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 interfacecom.broadleafcommerce.data.tracking.core.Trackable
- See Also:
Trackable.getContextId()
-
setPriceListId
public void setPriceListId(String priceListId)
- See Also:
PriceData.getPriceListId()
-
setPriceListName
public void setPriceListName(String priceListName)
- See Also:
PriceData.getPriceListName()
-
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:
PriceData.getActiveStartDate()
-
setActiveEndDate
public void setActiveEndDate(Instant activeEndDate)
- See Also:
PriceData.getActiveEndDate()
-
setTiers
public void setTiers(List<JpaPriceDataTier> tiers)
- See Also:
PriceData.getTiers()
-
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)
-
-