Class DefaultItemDao
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
-
- de.hybris.platform.cms2.servicelayer.daos.impl.DefaultItemDao
-
public class DefaultItemDao extends AbstractItemDao implements ItemDao
Default implementation ofItemModel
.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description DefaultItemDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends ItemModel>
java.util.Optional<T>getItemByUniqueAttributesValues(java.lang.String typeCode, java.util.Map<java.lang.String,java.lang.Object> attributeValues)
Method retrieves anItemModel
based on typeCode and unique attribute values.protected TypeService
getTypeService()
void
setTypeService(TypeService typeService)
-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
-
-
-
Method Detail
-
getItemByUniqueAttributesValues
public <T extends ItemModel> java.util.Optional<T> getItemByUniqueAttributesValues(java.lang.String typeCode, java.util.Map<java.lang.String,java.lang.Object> attributeValues)
Description copied from interface:ItemDao
Method retrieves anItemModel
based on typeCode and unique attribute values.- Specified by:
getItemByUniqueAttributesValues
in interfaceItemDao
- Parameters:
typeCode
- the typeCode of theItemModel
.attributeValues
- aMap
of qualifier and its value that should be used as a filter.- Returns:
- an
Optional
ItemModel
.
-
getTypeService
protected TypeService getTypeService()
-
setTypeService
public void setTypeService(TypeService typeService)
-
-