Interface TmaCustomerReviewDao
- All Superinterfaces:
de.hybris.platform.customerreview.dao.CustomerReviewDao
- All Known Implementing Classes:
DefaultTmaCustomerReviewDao
public interface TmaCustomerReviewDao
extends de.hybris.platform.customerreview.dao.CustomerReviewDao
The DAO for the
CustomerReviewModel.- Since:
- 1907
-
Method Summary
Modifier and TypeMethodDescriptiongetNumberOfReviewsForProductAndLanguage(ProductModel product, LanguageModel language) Retrieves the the number of reviews that exist for a product in a given language.getReviewsForProductByLimitOffsetAndLanguage(ProductModel product, int offset, int limit, LanguageModel language) Retrieves theCustomerReviewModels that belong to a product by offset, limit and language.Methods inherited from interface de.hybris.platform.customerreview.dao.CustomerReviewDao
getAverageRating, getNumberOfReviews, getReviewsForCustomer, getReviewsForProduct, getReviewsForProductAndLanguage
-
Method Details
-
getReviewsForProductByLimitOffsetAndLanguage
List<CustomerReviewModel> getReviewsForProductByLimitOffsetAndLanguage(ProductModel product, int offset, int limit, LanguageModel language) Retrieves theCustomerReviewModels that belong to a product by offset, limit and language.- Parameters:
product- the product which has the reviewsoffset- the offset represents the position in list from where the result list will start.limit- the limit represents the number of entries that will be selected for the result list.language- the language of the reviews- Returns:
- all found
CustomerReviewModels, or an empty collection if no review can be found
-
getNumberOfReviewsForProductAndLanguage
Retrieves the the number of reviews that exist for a product in a given language.- Parameters:
product- the product which has the reviewslanguage- the language of the reviews- Returns:
- the number of all found
CustomerReviewModels
-