Caches the commerce warehouse item in the entity cache if it is enabled.

@param commerceWarehouseItem the commerce warehouse item
766249
@Override
	public void cacheResult(CommerceWarehouseItem commerceWarehouseItem) {
		entityCache.putResult(CommerceWarehouseItemModelImpl.ENTITY_CACHE_ENABLED,
			CommerceWarehouseItemImpl.class,
			commerceWarehouseItem.getPrimaryKey(), commerceWarehouseItem);

		finderCache.putResult(FINDER_PATH_FETCH_BY_CWI_CPIU,
			new Object[] {
				commerceWarehouseItem.getCommerceWarehouseId(),
				commerceWarehouseItem.getCPInstanceUuid()
			}, commerceWarehouseItem);

		commerceWarehouseItem.resetOriginalValues();
	}
151239
@Override
	public void cacheResult(
		CommercePriceListAccountRel commercePriceListAccountRel) {
		entityCache.putResult(CommercePriceListAccountRelModelImpl.ENTITY_CACHE_ENABLED,
			CommercePriceListAccountRelImpl.class,
			commercePriceListAccountRel.getPrimaryKey(),
			commercePriceListAccountRel);

		finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
			new Object[] {
				commercePriceListAccountRel.getUuid(),
				commercePriceListAccountRel.getGroupId()
			}, commercePriceListAccountRel);

		finderCache.putResult(FINDER_PATH_FETCH_BY_C_C,
			new Object[] {
				commercePriceListAccountRel.getCommerceAccountId(),
				commercePriceListAccountRel.getCommercePriceListId()
			}, commercePriceListAccountRel);

		commercePriceListAccountRel.resetOriginalValues();
	}
711560
@Override
	public void clearCache(CommerceShipment commerceShipment) {
		entityCache.removeResult(CommerceShipmentModelImpl.ENTITY_CACHE_ENABLED,
			CommerceShipmentImpl.class, commerceShipment.getPrimaryKey());

		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
933156
@Override
	public void cacheResult(CommerceWishList commerceWishList) {
		entityCache.putResult(CommerceWishListModelImpl.ENTITY_CACHE_ENABLED,
			CommerceWishListImpl.class, commerceWishList.getPrimaryKey(),
			commerceWishList);

		finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
			new Object[] {
				commerceWishList.getUuid(), commerceWishList.getGroupId()
			}, commerceWishList);

		commerceWishList.resetOriginalValues();
	}
708987
@Override
	public void cacheResult(CommerceRegion commerceRegion) {
		entityCache.putResult(CommerceRegionModelImpl.ENTITY_CACHE_ENABLED,
			CommerceRegionImpl.class, commerceRegion.getPrimaryKey(),
			commerceRegion);

		finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
			new Object[] { commerceRegion.getUuid(), commerceRegion.getGroupId() },
			commerceRegion);

		finderCache.putResult(FINDER_PATH_FETCH_BY_C_C,
			new Object[] {
				commerceRegion.getCommerceCountryId(), commerceRegion.getCode()
			}, commerceRegion);

		commerceRegion.resetOriginalValues();
	}
834005
@Override
	public void clearCache(CommerceShipmentItem commerceShipmentItem) {
		entityCache.removeResult(CommerceShipmentItemModelImpl.ENTITY_CACHE_ENABLED,
			CommerceShipmentItemImpl.class, commerceShipmentItem.getPrimaryKey());

		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
1081098
@Override
	public List<CommerceWarehouseItem> findByCommerceWarehouseId(
		long commerceWarehouseId) {
		return findByCommerceWarehouseId(commerceWarehouseId,
			QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
349174
@Override
	public void cacheResult(CommerceShippingMethod commerceShippingMethod) {
		entityCache.putResult(CommerceShippingMethodModelImpl.ENTITY_CACHE_ENABLED,
			CommerceShippingMethodImpl.class,
			commerceShippingMethod.getPrimaryKey(), commerceShippingMethod);

		finderCache.putResult(FINDER_PATH_FETCH_BY_G_E,
			new Object[] {
				commerceShippingMethod.getGroupId(),
				commerceShippingMethod.getEngineKey()
			}, commerceShippingMethod);

		commerceShippingMethod.resetOriginalValues();
	}
759681
@Override
	public void clearCache(CommerceAddress commerceAddress) {
		entityCache.removeResult(CommerceAddressModelImpl.ENTITY_CACHE_ENABLED,
			CommerceAddressImpl.class, commerceAddress.getPrimaryKey());

		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
808316
@Override
	public void cacheResult(List<CommerceShipmentItem> commerceShipmentItems) {
		for (CommerceShipmentItem commerceShipmentItem : commerceShipmentItems) {
			if (entityCache.getResult(
						CommerceShipmentItemModelImpl.ENTITY_CACHE_ENABLED,
						CommerceShipmentItemImpl.class,
						commerceShipmentItem.getPrimaryKey()) == null) {
				cacheResult(commerceShipmentItem);
			}
			else {
				commerceShipmentItem.resetOriginalValues();
			}
		}
	}
880420
@Override
	public void clearCache(CommerceTaxMethod commerceTaxMethod) {
		entityCache.removeResult(CommerceTaxMethodModelImpl.ENTITY_CACHE_ENABLED,
			CommerceTaxMethodImpl.class, commerceTaxMethod.getPrimaryKey());

		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);

		clearUniqueFindersCache((CommerceTaxMethodModelImpl)commerceTaxMethod,
			true);
	}
232751
@Override
	public void cacheResult(CommerceCountry commerceCountry) {
		entityCache.putResult(CommerceCountryModelImpl.ENTITY_CACHE_ENABLED,
			CommerceCountryImpl.class, commerceCountry.getPrimaryKey(),
			commerceCountry);

		finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
			new Object[] { commerceCountry.getUuid(), commerceCountry.getGroupId() },
			commerceCountry);

		finderCache.putResult(FINDER_PATH_FETCH_BY_G_TW,
			new Object[] {
				commerceCountry.getGroupId(),
				commerceCountry.getTwoLettersISOCode()
			}, commerceCountry);

		finderCache.putResult(FINDER_PATH_FETCH_BY_G_N,
			new Object[] {
				commerceCountry.getGroupId(),
				commerceCountry.getNumericISOCode()
			}, commerceCountry);

		commerceCountry.resetOriginalValues();
	}
1106878
@Override
	public void cacheResult(List<CommerceShipment> commerceShipments) {
		for (CommerceShipment commerceShipment : commerceShipments) {
			if (entityCache.getResult(
						CommerceShipmentModelImpl.ENTITY_CACHE_ENABLED,
						CommerceShipmentImpl.class,
						commerceShipment.getPrimaryKey()) == null) {
				cacheResult(commerceShipment);
			}
			else {
				commerceShipment.resetOriginalValues();
			}
		}
	}
1038269
public static com.liferay.commerce.model.CommerceWarehouseItem deleteCommerceWarehouseItem(
		com.liferay.commerce.model.CommerceWarehouseItem commerceWarehouseItem) {
		return getService().deleteCommerceWarehouseItem(commerceWarehouseItem);
	}
1208767
@Override
	public void cacheResult(CommerceVirtualOrderItem commerceVirtualOrderItem) {
		entityCache.putResult(CommerceVirtualOrderItemModelImpl.ENTITY_CACHE_ENABLED,
			CommerceVirtualOrderItemImpl.class,
			commerceVirtualOrderItem.getPrimaryKey(), commerceVirtualOrderItem);

		finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
			new Object[] {
				commerceVirtualOrderItem.getUuid(),
				commerceVirtualOrderItem.getGroupId()
			}, commerceVirtualOrderItem);

		finderCache.putResult(FINDER_PATH_FETCH_BY_COMMERCEORDERITEMID,
			new Object[] { commerceVirtualOrderItem.getCommerceOrderItemId() },
			commerceVirtualOrderItem);

		commerceVirtualOrderItem.resetOriginalValues();
	}
1118474
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceWarehouseItem updateCommerceWarehouseItem(
		CommerceWarehouseItem commerceWarehouseItem) {
		return commerceWarehouseItemPersistence.update(commerceWarehouseItem);
	}
715364
@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();
			}
		}
	}