Package com.esprit.services.products
Class ReviewService
java.lang.Object
com.esprit.services.products.ReviewService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
double
getAverageRating
(Long productId) Retrieves the AverageRating value.Retrieves the AverageRatingSorted value.ratingExists
(Long productId, Long userId) Performs ratingExists operation.read()
void
-
Field Details
-
LOGGER
-
connection
-
-
Constructor Details
-
ReviewService
public ReviewService()Performs ReviewService operation.
-
-
Method Details
-
create
-
read
-
update
-
delete
-
getAverageRating
Retrieves the AverageRating value.- Returns:
- the AverageRating value
-
getAverageRatingSorted
Retrieves the AverageRatingSorted value.- Returns:
- the AverageRatingSorted value
-
ratingExists
Performs ratingExists operation.- Returns:
- the result of the operation
-