@ Override public void cacheResult ( List < CommerceOrderNote > commerceOrderNotes ) { for ( CommerceOrderNote commerceOrderNote : commerceOrderNotes ) { if ( entityCache . getResult ( CommerceOrderNoteModelImpl . ENTITY_CACHE_ENABLED , CommerceOrderNoteImpl . class , commerceOrderNote . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceOrderNote ) ; } else { commerceOrderNote . resetOriginalValues ( ) ; } } }
Caches the commerce order notes in the entity cache if it is enabled .