@Entity public class FeaturedProductImpl extends Object implements FeaturedProduct
| Modifier and Type | Field and Description |
|---|---|
protected Category |
category |
protected Long |
id
The id.
|
protected Product |
product |
protected String |
promotionMessage |
protected BigDecimal |
sequence |
| Constructor and Description |
|---|
FeaturedProductImpl() |
| Modifier and Type | Method and Description |
|---|---|
<G extends FeaturedProduct> |
createOrRetrieveCopyInstance(MultiTenantCopyContext context) |
Category |
getCategory() |
Long |
getId() |
Product |
getProduct() |
String |
getPromotionMessage() |
Product |
getRelatedProduct()
Pass through to getProduct() to meet the contract for promotable product.
|
BigDecimal |
getSequence() |
void |
setCategory(Category category) |
void |
setId(Long id) |
void |
setProduct(Product product) |
void |
setPromotionMessage(String promotionMessage) |
void |
setSequence(BigDecimal sequence) |
protected Long id
protected BigDecimal sequence
protected String promotionMessage
protected Category category
protected Product product
public Long getId()
getId in interface FeaturedProductpublic void setId(Long id)
setId in interface FeaturedProductpublic void setSequence(BigDecimal sequence)
setSequence in interface FeaturedProductpublic BigDecimal getSequence()
getSequence in interface FeaturedProductpublic String getPromotionMessage()
getPromotionMessage in interface FeaturedProductgetPromotionMessage in interface PromotableProductpublic void setPromotionMessage(String promotionMessage)
setPromotionMessage in interface FeaturedProductpublic Category getCategory()
getCategory in interface FeaturedProductpublic void setCategory(Category category)
setCategory in interface FeaturedProductpublic Product getProduct()
getProduct in interface FeaturedProductpublic void setProduct(Product product)
setProduct in interface FeaturedProductpublic Product getRelatedProduct()
FeaturedProductgetRelatedProduct in interface FeaturedProductgetRelatedProduct in interface PromotableProductpublic <G extends FeaturedProduct> CreateResponse<G> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException
createOrRetrieveCopyInstance in interface MultiTenantCloneable<FeaturedProduct>CloneNotSupportedExceptionCopyright © 2017. All rights reserved.