@ Override public void cacheResult ( List < CommerceCountry > commerceCountries ) { for ( CommerceCountry commerceCountry : commerceCountries ) { if ( entityCache . getResult ( CommerceCountryModelImpl . ENTITY_CACHE_ENABLED , CommerceCountryImpl . class , commerceCountry . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceCountry ) ; } else { commerceCountry . resetOriginalValues ( ) ; } } }
Caches the commerce countries in the entity cache if it is enabled .