@ Override public void cacheResult ( List < CommerceNotificationAttachment > commerceNotificationAttachments ) { for ( CommerceNotificationAttachment commerceNotificationAttachment : commerceNotificationAttachments ) { if ( entityCache . getResult ( CommerceNotificationAttachmentModelImpl . ENTITY_CACHE_ENABLED , CommerceNotificationAttachmentImpl . class , commerceNotificationAttachment . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceNotificationAttachment ) ; } else { commerceNotificationAttachment . resetOriginalValues ( ) ; } } }
Caches the commerce notification attachments in the entity cache if it is enabled .