@ Override public void cacheResult ( List < CommerceDiscountRel > commerceDiscountRels ) { for ( CommerceDiscountRel commerceDiscountRel : commerceDiscountRels ) { if ( entityCache . getResult ( CommerceDiscountRelModelImpl . ENTITY_CACHE_ENABLED , CommerceDiscountRelImpl . class , commerceDiscountRel . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceDiscountRel ) ; } else { commerceDiscountRel . resetOriginalValues ( ) ; } } }
Caches the commerce discount rels in the entity cache if it is enabled .