@ Override public void cacheResult ( CommerceOrderNote commerceOrderNote ) { entityCache . putResult ( CommerceOrderNoteModelImpl . ENTITY_CACHE_ENABLED , CommerceOrderNoteImpl . class , commerceOrderNote . getPrimaryKey ( ) , commerceOrderNote ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_ERC , new Object [ ] { commerceOrderNote . getCompanyId ( ) , commerceOrderNote . getExternalReferenceCode ( ) } , commerceOrderNote ) ; commerceOrderNote . resetOriginalValues ( ) ; }
Caches the commerce order note in the entity cache if it is enabled .