Class FeaturedProductImpl
java.lang.Object
org.broadleafcommerce.core.catalog.domain.FeaturedProductImpl
- All Implemented Interfaces:
Serializable,org.broadleafcommerce.common.copy.MultiTenantCloneable<FeaturedProduct>,FeaturedProduct,PromotableProduct
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Categoryprotected Longprotected Productprotected Stringprotected BigDecimal -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<G extends FeaturedProduct>
org.broadleafcommerce.common.copy.CreateResponse<G>createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) booleangetId()Pass through to getProduct() to meet the contract for promotable product.inthashCode()voidsetCategory(Category category) voidvoidsetProduct(Product product) voidsetPromotionMessage(String promotionMessage) voidsetSequence(BigDecimal sequence)
-
Field Details
-
id
-
sequence
-
promotionMessage
-
category
-
product
-
-
Constructor Details
-
FeaturedProductImpl
public FeaturedProductImpl()
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceFeaturedProduct
-
setId
- Specified by:
setIdin interfaceFeaturedProduct
-
getSequence
- Specified by:
getSequencein interfaceFeaturedProduct
-
setSequence
- Specified by:
setSequencein interfaceFeaturedProduct
-
getPromotionMessage
- Specified by:
getPromotionMessagein interfaceFeaturedProduct- Specified by:
getPromotionMessagein interfacePromotableProduct
-
setPromotionMessage
- Specified by:
setPromotionMessagein interfaceFeaturedProduct
-
getCategory
- Specified by:
getCategoryin interfaceFeaturedProduct
-
setCategory
- Specified by:
setCategoryin interfaceFeaturedProduct
-
getProduct
- Specified by:
getProductin interfaceFeaturedProduct
-
setProduct
- Specified by:
setProductin interfaceFeaturedProduct
-
getRelatedProduct
Description copied from interface:FeaturedProductPass through to getProduct() to meet the contract for promotable product.- Specified by:
getRelatedProductin interfaceFeaturedProduct- Specified by:
getRelatedProductin interfacePromotableProduct
-
equals
-
hashCode
public int hashCode() -
createOrRetrieveCopyInstance
public <G extends FeaturedProduct> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceorg.broadleafcommerce.common.copy.MultiTenantCloneable<FeaturedProduct>- Throws:
CloneNotSupportedException
-