@ Override public void cacheResult ( List < CommerceAvailabilityEstimate > commerceAvailabilityEstimates ) { for ( CommerceAvailabilityEstimate commerceAvailabilityEstimate : commerceAvailabilityEstimates ) { if ( entityCache . getResult ( CommerceAvailabilityEstimateModelImpl . ENTITY_CACHE_ENABLED , CommerceAvailabilityEstimateImpl . class , commerceAvailabilityEstimate . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceAvailabilityEstimate ) ; } else { commerceAvailabilityEstimate . resetOriginalValues ( ) ; } } }
Caches the commerce availability estimates in the entity cache if it is enabled .