Class DefaultTuaProductDao

java.lang.Object
de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<TuaProductModel>
de.hybris.platform.subscribedproductservices.daos.impl.DefaultTuaProductDao
All Implemented Interfaces:
de.hybris.platform.servicelayer.internal.dao.GenericDao<TuaProductModel>, TuaProductDao

public class DefaultTuaProductDao extends de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<TuaProductModel> implements TuaProductDao
Default implementation of TuaProductDao
Since:
2208
  • Constructor Details

    • DefaultTuaProductDao

      public DefaultTuaProductDao()
  • Method Details

    • findUnique

      public TuaProductModel findUnique(Map<String,? extends Object> params)
      Description copied from interface: TuaProductDao
      Searches for a unique model based on given parameters. If none or multiple models are found, a specific exception will be thrown.
      Specified by:
      findUnique in interface TuaProductDao
      Parameters:
      params - Map containing name-value pairs used for identifying the unique model
      Returns:
      model for given parameter
    • getProducts

      public List<TuaProductModel> getProducts(SpiProductContext spiProductContext, Integer offset, Integer limit)
      Description copied from interface: TuaProductDao
      Retrieves a list of TuaProductModel for a given product context.
      Specified by:
      getProducts in interface TuaProductDao
      Parameters:
      spiProductContext - the product context.
      offset - the offset.
      limit - the maximum number of returned products.
      Returns:
      the list of products found for the given context.
    • getNumberOfProductsFor

      public Integer getNumberOfProductsFor(SpiProductContext spiProductContext)
      Description copied from interface: TuaProductDao
      Retrieves the total number of products found for a given productContext.
      Specified by:
      getNumberOfProductsFor in interface TuaProductDao
      Parameters:
      spiProductContext - the product context.
      Returns:
      the number of products found.