Class JpaProduct
java.lang.Object
com.broadleafcommerce.catalog.provider.jpa.domain.product.JpaProduct
- 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.money.CurrencyConsumer
,com.broadleafcommerce.translation.domain.Translatable
,Serializable
,javax.money.CurrencySupplier
@Entity
public class JpaProduct
extends Object
implements com.broadleafcommerce.data.tracking.core.CatalogTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking>, Serializable, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.data.tracking.core.mapping.money.CurrencyProvider, com.broadleafcommerce.money.CurrencyConsumer, com.broadleafcommerce.translation.domain.Translatable, com.broadleafcommerce.data.tracking.core.filtering.ActiveAware, com.broadleafcommerce.data.tracking.core.filtering.ActiveFlagAware, com.broadleafcommerce.data.tracking.core.search.Indexable
- Author:
- Phillip Verheyden (phillipuniverse), Samarth Dhruva (samarthd)
- 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()
javax.money.MonetaryAmount
getMsrp()
getName()
javax.money.MonetaryAmount
getSku()
getTags()
com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking
getUpc()
getUri()
getWidth()
int
hashCode()
boolean
isActive()
boolean
boolean
boolean
boolean
boolean
boolean
isOnline()
boolean
void
preFromMe
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, Object businessDomain) void
preToMe
(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
setAvailableOnline
(boolean availableOnline) void
setBrandContextId
(String brandContextId) void
setBusinessType
(String businessType) 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
setDisplayTemplate
(String displayTemplate) void
setEligibleForPickup
(boolean eligibleForPickup) void
setExternalId
(String externalId) void
setFulfillmentFlatRates
(Map<String, JpaFulfillmentFlatRate> fulfillmentFlatRates) void
setHeight
(BigDecimal height) void
setIncludedProducts
(List<JpaIncludedProduct> includedProducts) void
setIndividuallySold
(boolean individuallySold) void
setInventoryCheckStrategy
(String inventoryCheckStrategy) void
setInventoryReservationStrategy
(String inventoryReservationStrategy) void
setInventoryType
(String inventoryType) void
setKeywords
(List<String> keywords) void
setMaximumThreshold
(Integer maximumThreshold) void
setMerchandisingProduct
(boolean merchandisingProduct) void
setMerchandisingTypeContextId
(String merchandisingTypeContextId) void
setMergingType
(String mergingType) void
setMetaDescription
(String metaDescription) void
setMetaTitle
(String metaTitle) void
setMinimumThreshold
(Integer minimumThreshold) void
setMsrp
(javax.money.MonetaryAmount msrp) void
void
setNumberOfReviews
(Integer numberOfReviews) void
setOnline
(boolean online) void
setOptions
(List<JpaProductOption> options) void
setPricingKey
(String pricingKey) void
setProductType
(String productType) void
setRating
(BigDecimal rating) void
setRatingUnits
(String ratingUnits) void
setSalePrice
(javax.money.MonetaryAmount salePrice) void
setSearchable
(boolean searchable) void
void
void
setTagsAsString
(String tags) void
setTargetDemographicContextId
(String targetDemographicContextId) void
setTaxCode
(String taxCode) void
setTracking
(com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking tracking) void
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
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
-
JpaProduct
public JpaProduct()
-
-
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
-
preToMe
public void preToMe(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, Object businessDomain) - Specified by:
preToMe
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
-
getDefaultPrice
public javax.money.MonetaryAmount getDefaultPrice() -
setDefaultPrice
public void setDefaultPrice(javax.money.MonetaryAmount defaultPrice) -
getSalePrice
public javax.money.MonetaryAmount getSalePrice() -
setSalePrice
public void setSalePrice(javax.money.MonetaryAmount salePrice) -
getCost
public javax.money.MonetaryAmount getCost() -
setCost
public void setCost(javax.money.MonetaryAmount cost) -
getMsrp
public javax.money.MonetaryAmount getMsrp() -
setMsrp
public void setMsrp(javax.money.MonetaryAmount msrp) -
setTagsAsString
-
getTagsAsString
-
setTags
-
getTags
-
isActive
public boolean isActive()- Specified by:
isActive
in interfacecom.broadleafcommerce.data.tracking.core.filtering.ActiveFlagAware
-
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
-
getName
-
getUri
-
getDescription
-
getSku
-
getUpc
-
getExternalId
-
getMetaTitle
-
getMetaDescription
-
isOnline
public boolean isOnline() -
isDiscountable
public boolean isDiscountable() -
isEligibleForPickup
public boolean isEligibleForPickup() -
getActiveStartDate
- Specified by:
getActiveStartDate
in interfacecom.broadleafcommerce.data.tracking.core.filtering.ActiveAware
-
getActiveEndDate
- Specified by:
getActiveEndDate
in interfacecom.broadleafcommerce.data.tracking.core.filtering.ActiveAware
-
getCurrency
public javax.money.CurrencyUnit getCurrency()- Specified by:
getCurrency
in interfacejavax.money.CurrencySupplier
-
getPricingKey
-
getMinimumThreshold
-
getMaximumThreshold
-
getWidth
-
getHeight
-
getDepth
-
getDimensionUnits
-
getWeight
-
getWeightUnits
-
getMergingType
-
isSearchable
public boolean isSearchable() -
isIndividuallySold
public boolean isIndividuallySold() -
isMerchandisingProduct
public boolean isMerchandisingProduct() -
getProductType
-
getBusinessType
-
getInventoryType
-
isAvailableOnline
public boolean isAvailableOnline() -
getInventoryCheckStrategy
-
getInventoryReservationStrategy
-
getNumberOfReviews
- See Also:
-
getRating
- See Also:
-
getRatingUnits
- See Also:
-
getAttributes
-
getKeywords
-
getOptions
-
getIncludedProducts
-
getFulfillmentFlatRates
-
getTaxCode
-
getBrandContextId
-
getMerchandisingTypeContextId
-
getTargetDemographicContextId
-
getDisplayTemplate
-
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>
-
setName
-
setUri
-
setDescription
-
setSku
-
setUpc
-
setExternalId
-
setMetaTitle
-
setMetaDescription
-
setOnline
public void setOnline(boolean online) -
setDiscountable
public void setDiscountable(boolean discountable) -
setEligibleForPickup
public void setEligibleForPickup(boolean eligibleForPickup) -
setActiveStartDate
-
setActiveEndDate
-
setCurrency
public void setCurrency(javax.money.CurrencyUnit currency) - Specified by:
setCurrency
in interfacecom.broadleafcommerce.money.CurrencyConsumer
-
setPricingKey
-
setMinimumThreshold
-
setMaximumThreshold
-
setWidth
-
setHeight
-
setDepth
-
setDimensionUnits
-
setWeight
-
setWeightUnits
-
setMergingType
-
setSearchable
public void setSearchable(boolean searchable) -
setIndividuallySold
public void setIndividuallySold(boolean individuallySold) -
setMerchandisingProduct
public void setMerchandisingProduct(boolean merchandisingProduct) -
setProductType
-
setBusinessType
-
setInventoryType
-
setAvailableOnline
public void setAvailableOnline(boolean availableOnline) -
setInventoryCheckStrategy
-
setInventoryReservationStrategy
-
setNumberOfReviews
- See Also:
-
setRating
- See Also:
-
setRatingUnits
- See Also:
-
setAttributes
-
setKeywords
-
setOptions
-
setIncludedProducts
-
setFulfillmentFlatRates
-
setTaxCode
-
setBrandContextId
-
setMerchandisingTypeContextId
-
setTargetDemographicContextId
-
setDisplayTemplate
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-