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