Caches the commerce discount in the entity cache if it is enabled.

@param commerceDiscount the commerce discount
548297
@Override
	public void cacheResult(CommerceDiscount commerceDiscount) {
		entityCache.putResult(CommerceDiscountModelImpl.ENTITY_CACHE_ENABLED,
			CommerceDiscountImpl.class, commerceDiscount.getPrimaryKey(),
			commerceDiscount);

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

		commerceDiscount.resetOriginalValues();
	}
857257
@Override
	public void clearCache(CommerceCountry commerceCountry) {
		entityCache.removeResult(CommerceCountryModelImpl.ENTITY_CACHE_ENABLED,
			CommerceCountryImpl.class, commerceCountry.getPrimaryKey());

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

		clearUniqueFindersCache((CommerceCountryModelImpl)commerceCountry, true);
	}
197586
@Override
	public void cacheResult(List<CommerceOrderPayment> commerceOrderPayments) {
		for (CommerceOrderPayment commerceOrderPayment : commerceOrderPayments) {
			if (entityCache.getResult(
						CommerceOrderPaymentModelImpl.ENTITY_CACHE_ENABLED,
						CommerceOrderPaymentImpl.class,
						commerceOrderPayment.getPrimaryKey()) == null) {
				cacheResult(commerceOrderPayment);
			}
			else {
				commerceOrderPayment.resetOriginalValues();
			}
		}
	}
1017276
@Override
	public void removeByCommerceDiscountId(long commerceDiscountId) {
		for (CommerceDiscountRel commerceDiscountRel : findByCommerceDiscountId(
				commerceDiscountId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceDiscountRel);
		}
	}
580927
@Override
	public void clearCache(
		CommerceAccountOrganizationRel commerceAccountOrganizationRel) {
		entityCache.removeResult(CommerceAccountOrganizationRelModelImpl.ENTITY_CACHE_ENABLED,
			CommerceAccountOrganizationRelImpl.class,
			commerceAccountOrganizationRel.getPrimaryKey());

		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
303004
@Override
	public void cacheResult(CommerceTaxMethod commerceTaxMethod) {
		entityCache.putResult(CommerceTaxMethodModelImpl.ENTITY_CACHE_ENABLED,
			CommerceTaxMethodImpl.class, commerceTaxMethod.getPrimaryKey(),
			commerceTaxMethod);

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

		commerceTaxMethod.resetOriginalValues();
	}
477970
@Override
	public void cacheResult(CommerceOrder commerceOrder) {
		entityCache.putResult(CommerceOrderModelImpl.ENTITY_CACHE_ENABLED,
			CommerceOrderImpl.class, commerceOrder.getPrimaryKey(),
			commerceOrder);

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

		finderCache.putResult(FINDER_PATH_FETCH_BY_C_ERC,
			new Object[] {
				commerceOrder.getCompanyId(),
				commerceOrder.getExternalReferenceCode()
			}, commerceOrder);

		commerceOrder.resetOriginalValues();
	}
66636
@Override
	public void clearCache() {
		entityCache.clearCache(CommerceDiscountRuleImpl.class);

		finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
356877
@Override
	public void clearCache() {
		entityCache.clearCache(CommercePriceEntryImpl.class);

		finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
1301126
@Override
	public void clearCache() {
		entityCache.clearCache(CommerceCountryImpl.class);

		finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
925052
@Override
	public void cacheResult(
		CommerceAccountOrganizationRel commerceAccountOrganizationRel) {
		entityCache.putResult(CommerceAccountOrganizationRelModelImpl.ENTITY_CACHE_ENABLED,
			CommerceAccountOrganizationRelImpl.class,
			commerceAccountOrganizationRel.getPrimaryKey(),
			commerceAccountOrganizationRel);

		commerceAccountOrganizationRel.resetOriginalValues();
	}
1330143
@Override
	public void cacheResult(List<CommerceOrderItem> commerceOrderItems) {
		for (CommerceOrderItem commerceOrderItem : commerceOrderItems) {
			if (entityCache.getResult(
						CommerceOrderItemModelImpl.ENTITY_CACHE_ENABLED,
						CommerceOrderItemImpl.class,
						commerceOrderItem.getPrimaryKey()) == null) {
				cacheResult(commerceOrderItem);
			}
			else {
				commerceOrderItem.resetOriginalValues();
			}
		}
	}
203983
@Override
	public com.liferay.commerce.discount.model.CommerceDiscountRel getCommerceDiscountRel(
		long commerceDiscountRelId)
		throws com.liferay.portal.kernel.exception.PortalException {
		return _commerceDiscountRelLocalService.getCommerceDiscountRel(commerceDiscountRelId);
	}
1043033
@Override
	public void cacheResult(
		List<CommerceDiscountUsageEntry> commerceDiscountUsageEntries) {
		for (CommerceDiscountUsageEntry commerceDiscountUsageEntry : commerceDiscountUsageEntries) {
			if (entityCache.getResult(
						CommerceDiscountUsageEntryModelImpl.ENTITY_CACHE_ENABLED,
						CommerceDiscountUsageEntryImpl.class,
						commerceDiscountUsageEntry.getPrimaryKey()) == null) {
				cacheResult(commerceDiscountUsageEntry);
			}
			else {
				commerceDiscountUsageEntry.resetOriginalValues();
			}
		}
	}
523972
@Override
	public void cacheResult(
		List<CommerceAccountOrganizationRel> commerceAccountOrganizationRels) {
		for (CommerceAccountOrganizationRel commerceAccountOrganizationRel : commerceAccountOrganizationRels) {
			if (entityCache.getResult(
						CommerceAccountOrganizationRelModelImpl.ENTITY_CACHE_ENABLED,
						CommerceAccountOrganizationRelImpl.class,
						commerceAccountOrganizationRel.getPrimaryKey()) == null) {
				cacheResult(commerceAccountOrganizationRel);
			}
			else {
				commerceAccountOrganizationRel.resetOriginalValues();
			}
		}
	}
736783
@Override
	public void cacheResult(List<CommerceAccount> commerceAccounts) {
		for (CommerceAccount commerceAccount : commerceAccounts) {
			if (entityCache.getResult(
						CommerceAccountModelImpl.ENTITY_CACHE_ENABLED,
						CommerceAccountImpl.class,
						commerceAccount.getPrimaryKey()) == null) {
				cacheResult(commerceAccount);
			}
			else {
				commerceAccount.resetOriginalValues();
			}
		}
	}
11924
@Override
	public com.liferay.commerce.discount.model.CommerceDiscountRel createCommerceDiscountRel(
		long commerceDiscountRelId) {
		return _commerceDiscountRelLocalService.createCommerceDiscountRel(commerceDiscountRelId);
	}