@ Override public void cacheResult ( List < CommerceShippingMethod > commerceShippingMethods ) { for ( CommerceShippingMethod commerceShippingMethod : commerceShippingMethods ) { if ( entityCache . getResult ( CommerceShippingMethodModelImpl . ENTITY_CACHE_ENABLED , CommerceShippingMethodImpl . class , commerceShippingMethod . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceShippingMethod ) ; } else { commerceShippingMethod . resetOriginalValues ( ) ; } } }
Caches the commerce shipping methods in the entity cache if it is enabled .