@ Override public void cacheResult ( List < CPInstance > cpInstances ) { for ( CPInstance cpInstance : cpInstances ) { if ( entityCache . getResult ( CPInstanceModelImpl . ENTITY_CACHE_ENABLED , CPInstanceImpl . class , cpInstance . getPrimaryKey ( ) ) == null ) { cacheResult ( cpInstance ) ; } else { cpInstance . resetOriginalValues ( ) ; } } }
Caches the cp instances in the entity cache if it is enabled .