@Entity public class RatingSummaryImpl extends Object implements RatingSummary
| Modifier and Type | Field and Description |
|---|---|
protected Double |
averageRating |
protected List<RatingDetail> |
ratings |
protected List<ReviewDetail> |
reviews |
| Constructor and Description |
|---|
RatingSummaryImpl() |
RatingSummaryImpl(String itemId,
RatingType ratingType) |
| Modifier and Type | Method and Description |
|---|---|
Double |
getAverageRating() |
Long |
getId() |
String |
getItemId() |
Integer |
getNumberOfRatings() |
Integer |
getNumberOfReviews() |
List<RatingDetail> |
getRatings() |
RatingType |
getRatingType() |
List<ReviewDetail> |
getReviews() |
void |
resetAverageRating() |
protected Double averageRating
protected List<RatingDetail> ratings
protected List<ReviewDetail> reviews
public RatingSummaryImpl()
public RatingSummaryImpl(String itemId, RatingType ratingType)
public Long getId()
getId in interface RatingSummarypublic Double getAverageRating()
getAverageRating in interface RatingSummarypublic String getItemId()
getItemId in interface RatingSummarypublic Integer getNumberOfRatings()
getNumberOfRatings in interface RatingSummarypublic Integer getNumberOfReviews()
getNumberOfReviews in interface RatingSummarypublic RatingType getRatingType()
getRatingType in interface RatingSummarypublic List<RatingDetail> getRatings()
getRatings in interface RatingSummarypublic List<ReviewDetail> getReviews()
getReviews in interface RatingSummarypublic void resetAverageRating()
resetAverageRating in interface RatingSummaryCopyright © 2013. All rights reserved.