@ Override public void cacheResult ( List < CommerceAddressRestriction > commerceAddressRestrictions ) { for ( CommerceAddressRestriction commerceAddressRestriction : commerceAddressRestrictions ) { if ( entityCache . getResult ( CommerceAddressRestrictionModelImpl . ENTITY_CACHE_ENABLED , CommerceAddressRestrictionImpl . class , commerceAddressRestriction . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceAddressRestriction ) ; } else { commerceAddressRestriction . resetOriginalValues ( ) ; } } }
Caches the commerce address restrictions in the entity cache if it is enabled .