@ Override public void cacheResult ( List < CommerceOrder > commerceOrders ) { for ( CommerceOrder commerceOrder : commerceOrders ) { if ( entityCache . getResult ( CommerceOrderModelImpl . ENTITY_CACHE_ENABLED , CommerceOrderImpl . class , commerceOrder . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceOrder ) ; } else { commerceOrder . resetOriginalValues ( ) ; } } }
Caches the commerce orders in the entity cache if it is enabled .