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 ofVariantTypeModelDAO.
-
-
Constructor Summary
Constructors Constructor Description DefaultVariantTypeDao(java.lang.String typecode)Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<VariantTypeModel>findAllVariantTypes()Finds 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
-
-
-
-
Method Detail
-
findAllVariantTypes
public java.util.List<VariantTypeModel> findAllVariantTypes()
Finds allVariantTypeModels.- Specified by:
findAllVariantTypesin interfaceVariantTypeDao- Returns:
- a List of all
VariantTypeModels
-
getBaseProductCount
public int getBaseProductCount(VariantTypeModel variantType)
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
-
-