@ Override public void cacheResult ( List < CPDefinition > cpDefinitions ) { for ( CPDefinition cpDefinition : cpDefinitions ) { if ( entityCache . getResult ( CPDefinitionModelImpl . ENTITY_CACHE_ENABLED , CPDefinitionImpl . class , cpDefinition . getPrimaryKey ( ) ) == null ) { cacheResult ( cpDefinition ) ; } else { cpDefinition . resetOriginalValues ( ) ; } } }
Caches the cp definitions in the entity cache if it is enabled .