@ Override public void cacheResult ( CommerceOrderItem commerceOrderItem ) { entityCache . putResult ( CommerceOrderItemModelImpl . ENTITY_CACHE_ENABLED , CommerceOrderItemImpl . class , commerceOrderItem . getPrimaryKey ( ) , commerceOrderItem ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_ERC , new Object [ ] { commerceOrderItem . getCompanyId ( ) , commerceOrderItem . getExternalReferenceCode ( ) } , commerceOrderItem ) ; commerceOrderItem . resetOriginalValues ( ) ; }
Caches the commerce order item in the entity cache if it is enabled .