@ Override public void cacheResult ( List < CommerceVirtualOrderItem > commerceVirtualOrderItems ) { for ( CommerceVirtualOrderItem commerceVirtualOrderItem : commerceVirtualOrderItems ) { if ( entityCache . getResult ( CommerceVirtualOrderItemModelImpl . ENTITY_CACHE_ENABLED , CommerceVirtualOrderItemImpl . class , commerceVirtualOrderItem . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceVirtualOrderItem ) ; } else { commerceVirtualOrderItem . resetOriginalValues ( ) ; } } }
Caches the commerce virtual order items in the entity cache if it is enabled .