Caches the commerce availability estimate in the entity cache if it is enabled.

@param commerceAvailabilityEstimate the commerce availability estimate
189783
@Override
	public void cacheResult(
		CommerceAvailabilityEstimate commerceAvailabilityEstimate) {
		entityCache.putResult(CommerceAvailabilityEstimateModelImpl.ENTITY_CACHE_ENABLED,
			CommerceAvailabilityEstimateImpl.class,
			commerceAvailabilityEstimate.getPrimaryKey(),
			commerceAvailabilityEstimate);

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

		commerceAvailabilityEstimate.resetOriginalValues();
	}
1105042
@Override
	public void cacheResult(
		List<CommerceSubscriptionEntry> commerceSubscriptionEntries) {
		for (CommerceSubscriptionEntry commerceSubscriptionEntry : commerceSubscriptionEntries) {
			if (entityCache.getResult(
						CommerceSubscriptionEntryModelImpl.ENTITY_CACHE_ENABLED,
						CommerceSubscriptionEntryImpl.class,
						commerceSubscriptionEntry.getPrimaryKey()) == null) {
				cacheResult(commerceSubscriptionEntry);
			}
			else {
				commerceSubscriptionEntry.resetOriginalValues();
			}
		}
	}
866255
@Override
	public void clearCache(CommerceDiscount commerceDiscount) {
		entityCache.removeResult(CommerceDiscountModelImpl.ENTITY_CACHE_ENABLED,
			CommerceDiscountImpl.class, commerceDiscount.getPrimaryKey());

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

		clearUniqueFindersCache((CommerceDiscountModelImpl)commerceDiscount,
			true);
	}
291960
@Override
	public void cacheResult(CommerceDiscountRule commerceDiscountRule) {
		entityCache.putResult(CommerceDiscountRuleModelImpl.ENTITY_CACHE_ENABLED,
			CommerceDiscountRuleImpl.class,
			commerceDiscountRule.getPrimaryKey(), commerceDiscountRule);

		commerceDiscountRule.resetOriginalValues();
	}
758649
@Override
	public void cacheResult(CommerceAccountUserRel commerceAccountUserRel) {
		entityCache.putResult(CommerceAccountUserRelModelImpl.ENTITY_CACHE_ENABLED,
			CommerceAccountUserRelImpl.class,
			commerceAccountUserRel.getPrimaryKey(), commerceAccountUserRel);

		commerceAccountUserRel.resetOriginalValues();
	}
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();
			}
		}
	}
807519
@Override
	public void cacheResult(List<CommerceWarehouseItem> commerceWarehouseItems) {
		for (CommerceWarehouseItem commerceWarehouseItem : commerceWarehouseItems) {
			if (entityCache.getResult(
						CommerceWarehouseItemModelImpl.ENTITY_CACHE_ENABLED,
						CommerceWarehouseItemImpl.class,
						commerceWarehouseItem.getPrimaryKey()) == null) {
				cacheResult(commerceWarehouseItem);
			}
			else {
				commerceWarehouseItem.resetOriginalValues();
			}
		}
	}
1117011
@Override
	public void cacheResult(CommerceCurrency commerceCurrency) {
		entityCache.putResult(CommerceCurrencyModelImpl.ENTITY_CACHE_ENABLED,
			CommerceCurrencyImpl.class, commerceCurrency.getPrimaryKey(),
			commerceCurrency);

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

		finderCache.putResult(FINDER_PATH_FETCH_BY_G_C,
			new Object[] {
				commerceCurrency.getGroupId(), commerceCurrency.getCode()
			}, commerceCurrency);

		commerceCurrency.resetOriginalValues();
	}
1229398
@Override
	public void clearCache() {
		entityCache.clearCache(CommerceAvailabilityEstimateImpl.class);

		finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
570509
@Override
	public CommerceAvailabilityEstimate removeByUUID_G(String uuid, long groupId)
		throws NoSuchAvailabilityEstimateException {
		CommerceAvailabilityEstimate commerceAvailabilityEstimate = findByUUID_G(uuid,
				groupId);

		return remove(commerceAvailabilityEstimate);
	}
1111401
@Override
	public void cacheResult(List<CommerceCurrency> commerceCurrencies) {
		for (CommerceCurrency commerceCurrency : commerceCurrencies) {
			if (entityCache.getResult(
						CommerceCurrencyModelImpl.ENTITY_CACHE_ENABLED,
						CommerceCurrencyImpl.class,
						commerceCurrency.getPrimaryKey()) == null) {
				cacheResult(commerceCurrency);
			}
			else {
				commerceCurrency.resetOriginalValues();
			}
		}
	}
1336570
public static com.liferay.commerce.model.CPDAvailabilityEstimate updateCPDAvailabilityEstimate(
		com.liferay.commerce.model.CPDAvailabilityEstimate cpdAvailabilityEstimate) {
		return getService()
				   .updateCPDAvailabilityEstimate(cpdAvailabilityEstimate);
	}
1340249
@Override
	public void cacheResult(List<CommerceCountry> commerceCountries) {
		for (CommerceCountry commerceCountry : commerceCountries) {
			if (entityCache.getResult(
						CommerceCountryModelImpl.ENTITY_CACHE_ENABLED,
						CommerceCountryImpl.class,
						commerceCountry.getPrimaryKey()) == null) {
				cacheResult(commerceCountry);
			}
			else {
				commerceCountry.resetOriginalValues();
			}
		}
	}
1269724
@Override
	public void cacheResult(List<CommercePriceList> commercePriceLists) {
		for (CommercePriceList commercePriceList : commercePriceLists) {
			if (entityCache.getResult(
						CommercePriceListModelImpl.ENTITY_CACHE_ENABLED,
						CommercePriceListImpl.class,
						commercePriceList.getPrimaryKey()) == null) {
				cacheResult(commercePriceList);
			}
			else {
				commercePriceList.resetOriginalValues();
			}
		}
	}
1137557
@Override
	public void cacheResult(
		CommerceUserSegmentCriterion commerceUserSegmentCriterion) {
		entityCache.putResult(CommerceUserSegmentCriterionModelImpl.ENTITY_CACHE_ENABLED,
			CommerceUserSegmentCriterionImpl.class,
			commerceUserSegmentCriterion.getPrimaryKey(),
			commerceUserSegmentCriterion);

		commerceUserSegmentCriterion.resetOriginalValues();
	}
1320255
@Override
	public void cacheResult(
		CommerceAddressRestriction commerceAddressRestriction) {
		entityCache.putResult(CommerceAddressRestrictionModelImpl.ENTITY_CACHE_ENABLED,
			CommerceAddressRestrictionImpl.class,
			commerceAddressRestriction.getPrimaryKey(),
			commerceAddressRestriction);

		finderCache.putResult(FINDER_PATH_FETCH_BY_C_C_C,
			new Object[] {
				commerceAddressRestriction.getClassNameId(),
				commerceAddressRestriction.getClassPK(),
				commerceAddressRestriction.getCommerceCountryId()
			}, commerceAddressRestriction);

		commerceAddressRestriction.resetOriginalValues();
	}
650428
@Override
	public void cacheResult(
		List<CommerceShippingMethod> commerceShippingMethods) {
		for (CommerceShippingMethod commerceShippingMethod : commerceShippingMethods) {
			if (entityCache.getResult(
						CommerceShippingMethodModelImpl.ENTITY_CACHE_ENABLED,
						CommerceShippingMethodImpl.class,
						commerceShippingMethod.getPrimaryKey()) == null) {
				cacheResult(commerceShippingMethod);
			}
			else {
				commerceShippingMethod.resetOriginalValues();
			}
		}
	}