@ Override public void cacheResult ( List < CommerceNotificationTemplateUserSegmentRel > commerceNotificationTemplateUserSegmentRels ) { for ( CommerceNotificationTemplateUserSegmentRel commerceNotificationTemplateUserSegmentRel : commerceNotificationTemplateUserSegmentRels ) { if ( entityCache . getResult ( CommerceNotificationTemplateUserSegmentRelModelImpl . ENTITY_CACHE_ENABLED , CommerceNotificationTemplateUserSegmentRelImpl . class , commerceNotificationTemplateUserSegmentRel . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceNotificationTemplateUserSegmentRel ) ; } else { commerceNotificationTemplateUserSegmentRel . resetOriginalValues ( ) ; } } }
Caches the commerce notification template user segment rels in the entity cache if it is enabled .