Class JpaVariant
java.lang.Object
com.broadleafcommerce.catalog.provider.jpa.domain.product.JpaVariant
- All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
,com.broadleafcommerce.data.tracking.core.CatalogTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking>
,com.broadleafcommerce.data.tracking.core.filtering.ActiveAware
,com.broadleafcommerce.data.tracking.core.filtering.ActiveFlagAware
,com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
,com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
,com.broadleafcommerce.data.tracking.core.mapping.money.CurrencyProvider
,com.broadleafcommerce.data.tracking.core.search.Indexable
,com.broadleafcommerce.data.tracking.core.Trackable
,com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking>
,com.broadleafcommerce.translation.domain.Translatable
,Serializable
,javax.money.CurrencySupplier
@Entity
public class JpaVariant
extends Object
implements com.broadleafcommerce.data.tracking.core.CatalogTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking>, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.data.tracking.core.mapping.money.CurrencyProvider, javax.money.CurrencySupplier, com.broadleafcommerce.translation.domain.Translatable, com.broadleafcommerce.data.tracking.core.search.Indexable, com.broadleafcommerce.data.tracking.core.filtering.ActiveAware, com.broadleafcommerce.data.tracking.core.filtering.ActiveFlagAware
JPA-persisted counterpart to a
Variant
- Author:
- Phillip Verheyden (phillipuniverse)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
org.modelmapper.ModelMapper
fromMe()
get_id()
Class<?>
javax.money.MonetaryAmount
getCost()
javax.money.CurrencyUnit
javax.money.MonetaryAmount
getDepth()
getName()
javax.money.MonetaryAmount
getSku()
com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking
getUpc()
getWidth()
int
hashCode()
boolean
isActive()
boolean
boolean
isOnline()
void
preFromMe
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, Object businessDomain) void
void
setActiveEndDate
(Instant activeEndDate) void
setActiveStartDate
(Instant activeStartDate) void
setAttributes
(Map<String, JpaAttribute> attributes) void
setContextId
(String contextId) void
setCost
(javax.money.MonetaryAmount cost) void
setCurrency
(javax.money.CurrencyUnit currency) void
setDefaultPrice
(javax.money.MonetaryAmount defaultPrice) void
setDepth
(BigDecimal depth) void
setDescription
(String description) void
setDimensionUnits
(String dimensionUnits) void
setDiscountable
(boolean discountable) void
setExternalId
(String externalId) void
setFulfillmentFlatRates
(Map<String, JpaFulfillmentFlatRate> fulfillmentFlatRates) void
setHeight
(BigDecimal height) void
setInventoryCheckStrategy
(String inventoryCheckStrategy) void
setInventoryReservationStrategy
(String inventoryReservationStrategy) void
setMaximumThreshold
(Integer maximumThreshold) void
setMinimumThreshold
(Integer minimumThreshold) void
void
setNumberOfReviews
(Integer numberOfReviews) void
setOnline
(boolean online) void
setOptionValues
(Map<String, String> optionValues) void
setProductContextId
(String productContextId) void
setRating
(BigDecimal rating) void
setRatingUnits
(String ratingUnits) void
setSalePrice
(javax.money.MonetaryAmount salePrice) void
void
setTaxCode
(String taxCode) void
setTracking
(com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking tracking) void
void
setWeight
(BigDecimal weight) void
setWeightUnits
(String weightUnits) void
setWidth
(BigDecimal width) org.modelmapper.ModelMapper
toMe()
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
Methods inherited from interface com.broadleafcommerce.data.tracking.core.Trackable
getNotificationStates, getNotificationStates, setNotificationStates
Methods inherited from interface com.broadleafcommerce.data.tracking.core.TypedTrackable
setTracking
-
Constructor Details
-
JpaVariant
public JpaVariant()
-
-
Method Details
-
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
-
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
-
getBusinessDomainType
- Specified by:
getBusinessDomainType
in interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
getDisplay
- Specified by:
getDisplay
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
isActive
public boolean isActive()- Specified by:
isActive
in interfacecom.broadleafcommerce.data.tracking.core.filtering.ActiveFlagAware
-
setDefaultPrice
public void setDefaultPrice(javax.money.MonetaryAmount defaultPrice) -
getDefaultPrice
public javax.money.MonetaryAmount getDefaultPrice() -
setSalePrice
public void setSalePrice(javax.money.MonetaryAmount salePrice) -
getSalePrice
public javax.money.MonetaryAmount getSalePrice() -
setCost
public void setCost(javax.money.MonetaryAmount cost) -
getCost
public javax.money.MonetaryAmount getCost() -
get_id
-
getContextId
- Specified by:
getContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
- Specified by:
getContextId
in interfacecom.broadleafcommerce.translation.domain.Translatable
-
getTracking
public com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking getTracking()- Specified by:
getTracking
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
getSku
-
getUpc
-
getExternalId
-
getName
-
getDescription
-
getActiveStartDate
- Specified by:
getActiveStartDate
in interfacecom.broadleafcommerce.data.tracking.core.filtering.ActiveAware
-
getActiveEndDate
- Specified by:
getActiveEndDate
in interfacecom.broadleafcommerce.data.tracking.core.filtering.ActiveAware
-
isOnline
public boolean isOnline() -
isDiscountable
public boolean isDiscountable() -
getCurrency
public javax.money.CurrencyUnit getCurrency()- Specified by:
getCurrency
in interfacejavax.money.CurrencySupplier
-
getWidth
-
getHeight
-
getDepth
-
getDimensionUnits
-
getWeight
-
getWeightUnits
-
getInventoryCheckStrategy
-
getInventoryReservationStrategy
-
getNumberOfReviews
- See Also:
-
getRating
- See Also:
-
getRatingUnits
- See Also:
-
getMinimumThreshold
-
getMaximumThreshold
-
getAttributes
-
getProductContextId
-
getOptionValues
-
getFulfillmentFlatRates
-
getTaxCode
-
set_id
-
setContextId
- Specified by:
setContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
setTracking
public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking tracking) - Specified by:
setTracking
in interfacecom.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking>
-
setSku
-
setUpc
-
setExternalId
-
setName
-
setDescription
-
setActiveStartDate
-
setActiveEndDate
-
setOnline
public void setOnline(boolean online) -
setDiscountable
public void setDiscountable(boolean discountable) -
setCurrency
public void setCurrency(javax.money.CurrencyUnit currency) -
setWidth
-
setHeight
-
setDepth
-
setDimensionUnits
-
setWeight
-
setWeightUnits
-
setInventoryCheckStrategy
-
setInventoryReservationStrategy
-
setNumberOfReviews
- See Also:
-
setRating
- See Also:
-
setRatingUnits
- See Also:
-
setMinimumThreshold
-
setMaximumThreshold
-
setAttributes
-
setProductContextId
-
setOptionValues
-
setFulfillmentFlatRates
-
setTaxCode
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-