@ Override public void cacheResult ( List < CommerceWarehouse > commerceWarehouses ) { for ( CommerceWarehouse commerceWarehouse : commerceWarehouses ) { if ( entityCache . getResult ( CommerceWarehouseModelImpl . ENTITY_CACHE_ENABLED , CommerceWarehouseImpl . class , commerceWarehouse . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceWarehouse ) ; } else { commerceWarehouse . resetOriginalValues ( ) ; } } }
Caches the commerce warehouses in the entity cache if it is enabled .