@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 Long |
sequence |
| Constructor and Description |
|---|
FeaturedProductImpl() |
| Modifier and Type | Method and Description |
|---|---|
Category |
getCategory() |
Long |
getId() |
Product |
getProduct() |
String |
getPromotionMessage() |
Product |
getRelatedProduct()
Pass through to getProdcut() to meet the contract for promotable product.
|
Long |
getSequence() |
void |
setCategory(Category category) |
void |
setId(Long id) |
void |
setProduct(Product product) |
void |
setPromotionMessage(String promotionMessage) |
void |
setSequence(Long sequence) |
protected Long id
protected Long 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(Long sequence)
setSequence in interface FeaturedProductpublic Long 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 PromotableProductCopyright © 2014. All Rights Reserved.