@ Override public void cacheResult ( List < CProduct > cProducts ) { for ( CProduct cProduct : cProducts ) { if ( entityCache . getResult ( CProductModelImpl . ENTITY_CACHE_ENABLED , CProductImpl . class , cProduct . getPrimaryKey ( ) ) == null ) { cacheResult ( cProduct ) ; } else { cProduct . resetOriginalValues ( ) ; } } }
Caches the c products in the entity cache if it is enabled .