@ Override public void cacheResult ( List < CommercePriceList > commercePriceLists ) { for ( CommercePriceList commercePriceList : commercePriceLists ) { if ( entityCache . getResult ( CommercePriceListModelImpl . ENTITY_CACHE_ENABLED , CommercePriceListImpl . class , commercePriceList . getPrimaryKey ( ) ) == null ) { cacheResult ( commercePriceList ) ; } else { commercePriceList . resetOriginalValues ( ) ; } } }
Caches the commerce price lists in the entity cache if it is enabled .