public interface ReviewSearchIf
| 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. 
 | 
int getRating()
void setRating(int rating)
rating - the rating to setint getRatingRule()
void setRatingRule(int ratingRule)
ratingRule - the ratingRule to setint getCustomerId()
void setCustomerId(int customerId)
customerId - the customerId to setint getProductId()
void setProductId(int productId)
productId - the productId to setint getReviewId()
void setReviewId(int reviewId)
reviewId - the reviewId to setboolean isReturnAverageRating()
void setReturnAverageRating(boolean returnAverageRating)
returnAverageRating - the returnAverageRating to setboolean isReturnRatingFacets()
void setReturnRatingFacets(boolean returnRatingFacets)
returnRatingFacets - the returnRatingFacets to setint getVendorId()
void setVendorId(int vendorId)
vendorId - the vendorId to setCopyright © 2018 DS Data Systems UK Ltd.