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 Details

    • getReviewsForProductByLimitOffsetAndLanguage

      List<CustomerReviewModel> getReviewsForProductByLimitOffsetAndLanguage(ProductModel product, int offset, int limit, LanguageModel language)
      Retrieves the CustomerReviewModels that belong to a product by offset, limit and language.
      Parameters:
      product - the product which has the reviews
      offset - 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

      Integer getNumberOfReviewsForProductAndLanguage(ProductModel product, LanguageModel language)
      Retrieves the the number of reviews that exist for a product in a given language.
      Parameters:
      product - the product which has the reviews
      language - the language of the reviews
      Returns:
      the number of all found CustomerReviewModels