Class DefaultVariantTypeDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<VariantTypeModel>
de.hybris.platform.product.daos.impl.DefaultVariantTypeDao
- All Implemented Interfaces:
VariantTypeDao,Dao,GenericDao<VariantTypeModel>
public class DefaultVariantTypeDao
extends DefaultGenericDao<VariantTypeModel>
implements VariantTypeDao
Default implementation of
VariantTypeModel DAO.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFinds allVariantTypeModels.intgetBaseProductCount(VariantTypeModel variantType) Returns the amount of products which use the given variant type.Methods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
Constructor Details
-
DefaultVariantTypeDao
Default constructor- Parameters:
typecode- the typecode to set.
-
-
Method Details
-
findAllVariantTypes
Finds allVariantTypeModels.- Specified by:
findAllVariantTypesin interfaceVariantTypeDao- Returns:
- a List of all
VariantTypeModels
-
getBaseProductCount
Returns the amount of products which use the given variant type.- Specified by:
getBaseProductCountin interfaceVariantTypeDao- Parameters:
variantType- the variant type- Returns:
- the amount of products which use this variant type
-