public class ReviewSearch extends java.lang.Object implements ReviewSearchIf
| Constructor and Description |
|---|
ReviewSearch()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCustomerId()
If value is a positive number it is used as a constraint to find all reviews written by this
customer.
|
int |
getProductId()
If value is a positive number it is used as a constraint to find all reviews for this
product.
|
int |
getRating()
The rating is normally an integer in the range 1 to 5.
|
int |
getRatingRule()
The rule for the rating constraint.
|
int |
getReviewId()
If value is a positive number it is used as a constraint to find the review with this id.
|
int |
getVendorId()
If value is a positive number it is used as a constraint to find all reviews for this vendor.
|
boolean |
isReturnAverageRating()
When set, we calculate the average rating for all reviews matching the search criteria.
|
boolean |
isReturnRatingFacets()
When set, we return an array of facets that show how many reviews exist for each rating.
|
void |
setCustomerId(int customerId)
If value is a positive number it is used as a constraint to find all reviews written by this
customer.
|
void |
setProductId(int productId)
If value is a positive number it is used as a constraint to find all reviews for this
product.
|
void |
setRating(int rating)
The rating is normally an integer in the range 1 to 5.
|
void |
setRatingRule(int ratingRule)
The rule for the rating constraint.
|
void |
setReturnAverageRating(boolean returnAverageRating)
When set, we calculate the average rating for all reviews matching the search criteria.
|
void |
setReturnRatingFacets(boolean returnRatingFacets)
When set, we return an array of facets that show how many reviews exist for each rating.
|
void |
setReviewId(int reviewId)
If value is a positive number it is used as a constraint to find the review with this id.
|
void |
setVendorId(int vendorId)
If value is a positive number it is used as a constraint to find all reviews for this vendor.
|
java.lang.String |
toString() |
java.lang.String |
toStringBrief() |
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringBrief()
public int getRating()
ReviewSearchIfgetRating in interface ReviewSearchIfpublic void setRating(int rating)
ReviewSearchIfsetRating in interface ReviewSearchIfrating - the rating to setpublic int getRatingRule()
ReviewSearchIfgetRatingRule in interface ReviewSearchIfpublic void setRatingRule(int ratingRule)
ReviewSearchIfsetRatingRule in interface ReviewSearchIfratingRule - the ratingRule to setpublic int getCustomerId()
ReviewSearchIfgetCustomerId in interface ReviewSearchIfpublic void setCustomerId(int customerId)
ReviewSearchIfsetCustomerId in interface ReviewSearchIfcustomerId - the customerId to setpublic int getProductId()
ReviewSearchIfgetProductId in interface ReviewSearchIfpublic void setProductId(int productId)
ReviewSearchIfsetProductId in interface ReviewSearchIfproductId - the productId to setpublic int getReviewId()
ReviewSearchIfgetReviewId in interface ReviewSearchIfpublic void setReviewId(int reviewId)
ReviewSearchIfsetReviewId in interface ReviewSearchIfreviewId - the reviewId to setpublic boolean isReturnAverageRating()
ReviewSearchIfisReturnAverageRating in interface ReviewSearchIfpublic void setReturnAverageRating(boolean returnAverageRating)
ReviewSearchIfsetReturnAverageRating in interface ReviewSearchIfreturnAverageRating - the returnAverageRating to setpublic boolean isReturnRatingFacets()
ReviewSearchIfisReturnRatingFacets in interface ReviewSearchIfpublic void setReturnRatingFacets(boolean returnRatingFacets)
ReviewSearchIfsetReturnRatingFacets in interface ReviewSearchIfreturnRatingFacets - the returnRatingFacets to setpublic int getVendorId()
ReviewSearchIfgetVendorId in interface ReviewSearchIfpublic void setVendorId(int vendorId)
ReviewSearchIfsetVendorId in interface ReviewSearchIfvendorId - the vendorId to setCopyright © 2018 DS Data Systems UK Ltd.