@ Override public void cacheResult ( List < CommerceUserSegmentEntry > commerceUserSegmentEntries ) { for ( CommerceUserSegmentEntry commerceUserSegmentEntry : commerceUserSegmentEntries ) { if ( entityCache . getResult ( CommerceUserSegmentEntryModelImpl . ENTITY_CACHE_ENABLED , CommerceUserSegmentEntryImpl . class , commerceUserSegmentEntry . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceUserSegmentEntry ) ; } else { commerceUserSegmentEntry . resetOriginalValues ( ) ; } } }
Caches the commerce user segment entries in the entity cache if it is enabled .