@ Override public void cacheResult ( List < CPDefinitionLocalization > cpDefinitionLocalizations ) { for ( CPDefinitionLocalization cpDefinitionLocalization : cpDefinitionLocalizations ) { if ( entityCache . getResult ( CPDefinitionLocalizationModelImpl . ENTITY_CACHE_ENABLED , CPDefinitionLocalizationImpl . class , cpDefinitionLocalization . getPrimaryKey ( ) ) == null ) { cacheResult ( cpDefinitionLocalization ) ; } else { cpDefinitionLocalization . resetOriginalValues ( ) ; } } }
Caches the cp definition localizations in the entity cache if it is enabled .