Interface ItemModelSearchService
-
- All Known Implementing Classes:
DefaultItemModelSearchService
public interface ItemModelSearchServiceConvenience service to search forItemModels
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends ItemModel>
java.util.Optional<T>nonCachingFindByPk(PK pk)
-
-
-
Method Detail
-
nonCachingFindByPk
<T extends ItemModel> java.util.Optional<T> nonCachingFindByPk(PK pk)
Finds anItemModelby the givenPK. Warning: this method clears the cache before doing the search. This may impact performance.- 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()
-
-