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 anItemModelbased on typeCode and unique attribute values.protected TypeServicegetTypeService()voidsetTypeService(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:ItemDaoMethod retrieves anItemModelbased on typeCode and unique attribute values.- Specified by:
getItemByUniqueAttributesValuesin interfaceItemDao- Parameters:
typeCode- the typeCode of theItemModel.attributeValues- aMapof qualifier and its value that should be used as a filter.- Returns:
- an
OptionalItemModel.
-
getTypeService
protected TypeService getTypeService()
-
setTypeService
public void setTypeService(TypeService typeService)
-
-