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 ofVariantTypeModel
DAO.
-
-
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 allVariantTypeModel
s.int
getBaseProductCount(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 allVariantTypeModel
s.- Specified by:
findAllVariantTypes
in interfaceVariantTypeDao
- Returns:
- a List of all
VariantTypeModel
s
-
getBaseProductCount
public int getBaseProductCount(VariantTypeModel variantType)
Returns the amount of products which use the given variant type.- Specified by:
getBaseProductCount
in interfaceVariantTypeDao
- Parameters:
variantType
- the variant type- Returns:
- the amount of products which use this variant type
-
-