@ Override public void cacheResult ( List < CommerceWishListItem > commerceWishListItems ) { for ( CommerceWishListItem commerceWishListItem : commerceWishListItems ) { if ( entityCache . getResult ( CommerceWishListItemModelImpl . ENTITY_CACHE_ENABLED , CommerceWishListItemImpl . class , commerceWishListItem . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceWishListItem ) ; } else { commerceWishListItem . resetOriginalValues ( ) ; } } }
Caches the commerce wish list items in the entity cache if it is enabled .