Class DefaultItemModelSearchService
- java.lang.Object
-
- de.hybris.platform.integrationservices.service.impl.DefaultItemModelSearchService
-
- All Implemented Interfaces:
ItemModelSearchService
public class DefaultItemModelSearchService extends java.lang.Object implements ItemModelSearchService
Default implementation ofItemModelSearchService
-
-
Constructor Summary
Constructors Constructor Description DefaultItemModelSearchService(@NotNull ModelService modelService)Instantiates theItemModelSearchService
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends ItemModel>
java.util.Optional<T>nonCachingFindByPk(PK pk)
-
-
-
Constructor Detail
-
DefaultItemModelSearchService
public DefaultItemModelSearchService(@NotNull @NotNull ModelService modelService)Instantiates theItemModelSearchService- Parameters:
modelService- Service to look up the item
-
-
Method Detail
-
nonCachingFindByPk
public <T extends ItemModel> java.util.Optional<T> nonCachingFindByPk(PK pk)
Description copied from interface:ItemModelSearchServiceFinds anItemModelby the givenPK. Warning: this method clears the cache before doing the search. This may impact performance.- Specified by:
nonCachingFindByPkin interfaceItemModelSearchService- Type Parameters:
T- Expected type of the item found- Parameters:
pk- PK of the item to find- Returns:
- the ItemModel wrapped in an
Optionalif found, otherwiseOptional.empty()
-
-