Interface TuaProductDao
- All Superinterfaces:
de.hybris.platform.servicelayer.internal.dao.GenericDao<TuaProductModel>
- All Known Implementing Classes:
DefaultTuaProductDao
public interface TuaProductDao
extends de.hybris.platform.servicelayer.internal.dao.GenericDao<TuaProductModel>
Data access object for
TuaProductModels.- Since:
- 2208
-
Method Summary
Modifier and TypeMethodDescriptionfindUnique(Map<String, ? extends Object> params) Searches for a unique model based on given parameters.getNumberOfProductsFor(SpiProductContext spiProductContext) Retrieves the total number of products found for a given productContext.getProducts(SpiProductContext spiProductContext, Integer offset, Integer limit) Retrieves a list ofTuaProductModelfor a given product context.Methods inherited from interface de.hybris.platform.servicelayer.internal.dao.GenericDao
find, find, find, find, find
-
Method Details
-
findUnique
Searches for a unique model based on given parameters. If none or multiple models are found, a specific exception will be thrown.- Parameters:
params-Mapcontaining name-value pairs used for identifying the unique model- Returns:
- model for given parameter
-
getProducts
List<TuaProductModel> getProducts(SpiProductContext spiProductContext, Integer offset, Integer limit) Retrieves a list ofTuaProductModelfor a given product context.- 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
Retrieves the total number of products found for a given productContext.- Parameters:
spiProductContext- the product context.- Returns:
- the number of products found.
-