@ Override public void cacheResult ( List < CPRule > cpRules ) { for ( CPRule cpRule : cpRules ) { if ( entityCache . getResult ( CPRuleModelImpl . ENTITY_CACHE_ENABLED , CPRuleImpl . class , cpRule . getPrimaryKey ( ) ) == null ) { cacheResult ( cpRule ) ; } else { cpRule . resetOriginalValues ( ) ; } } }
Caches the cp rules in the entity cache if it is enabled .