@ Override public void cacheResult ( List < CommerceTierPriceEntry > commerceTierPriceEntries ) { for ( CommerceTierPriceEntry commerceTierPriceEntry : commerceTierPriceEntries ) { if ( entityCache . getResult ( CommerceTierPriceEntryModelImpl . ENTITY_CACHE_ENABLED , CommerceTierPriceEntryImpl . class , commerceTierPriceEntry . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceTierPriceEntry ) ; } else { commerceTierPriceEntry . resetOriginalValues ( ) ; } } }
Caches the commerce tier price entries in the entity cache if it is enabled .