@ Override public void cacheResult ( List < CPRuleAssetCategoryRel > cpRuleAssetCategoryRels ) { for ( CPRuleAssetCategoryRel cpRuleAssetCategoryRel : cpRuleAssetCategoryRels ) { if ( entityCache . getResult ( CPRuleAssetCategoryRelModelImpl . ENTITY_CACHE_ENABLED , CPRuleAssetCategoryRelImpl . class , cpRuleAssetCategoryRel . getPrimaryKey ( ) ) == null ) { cacheResult ( cpRuleAssetCategoryRel ) ; } else { cpRuleAssetCategoryRel . resetOriginalValues ( ) ; } } }
Caches the cp rule asset category rels in the entity cache if it is enabled .