Caches the cp rule asset category rel in the entity cache if it is enabled.

@param cpRuleAssetCategoryRel the cp rule asset category rel
540822
@Override
	public void cacheResult(CPRuleAssetCategoryRel cpRuleAssetCategoryRel) {
		entityCache.putResult(CPRuleAssetCategoryRelModelImpl.ENTITY_CACHE_ENABLED,
			CPRuleAssetCategoryRelImpl.class,
			cpRuleAssetCategoryRel.getPrimaryKey(), cpRuleAssetCategoryRel);

		cpRuleAssetCategoryRel.resetOriginalValues();
	}
865599
@Override
	public void cacheResult(
		CommerceDiscountUsageEntry commerceDiscountUsageEntry) {
		entityCache.putResult(CommerceDiscountUsageEntryModelImpl.ENTITY_CACHE_ENABLED,
			CommerceDiscountUsageEntryImpl.class,
			commerceDiscountUsageEntry.getPrimaryKey(),
			commerceDiscountUsageEntry);

		commerceDiscountUsageEntry.resetOriginalValues();
	}
273505
public void setAssetCategoryLocalService(
		com.liferay.asset.kernel.service.AssetCategoryLocalService assetCategoryLocalService) {
		this.assetCategoryLocalService = assetCategoryLocalService;
	}
1058791
@Override
	public void cacheResult(List<CPDefinitionOptionRel> cpDefinitionOptionRels) {
		for (CPDefinitionOptionRel cpDefinitionOptionRel : cpDefinitionOptionRels) {
			if (entityCache.getResult(
						CPDefinitionOptionRelModelImpl.ENTITY_CACHE_ENABLED,
						CPDefinitionOptionRelImpl.class,
						cpDefinitionOptionRel.getPrimaryKey()) == null) {
				cacheResult(cpDefinitionOptionRel);
			}
			else {
				cpDefinitionOptionRel.resetOriginalValues();
			}
		}
	}
188145
@Override
	public List<CPRuleAssetCategoryRel> findByAssetCategoryId(
		long assetCategoryId) {
		return findByAssetCategoryId(assetCategoryId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
270722
@Override
	public void clearCache() {
		entityCache.clearCache(CProductImpl.class);

		finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
941876
@Override
	public void cacheResult(CProduct cProduct) {
		entityCache.putResult(CProductModelImpl.ENTITY_CACHE_ENABLED,
			CProductImpl.class, cProduct.getPrimaryKey(), cProduct);

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

		cProduct.resetOriginalValues();
	}
1018401
@Override
	public void cacheResult(CPDefinitionInventory cpDefinitionInventory) {
		entityCache.putResult(CPDefinitionInventoryModelImpl.ENTITY_CACHE_ENABLED,
			CPDefinitionInventoryImpl.class,
			cpDefinitionInventory.getPrimaryKey(), cpDefinitionInventory);

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

		finderCache.putResult(FINDER_PATH_FETCH_BY_CPDEFINITIONID,
			new Object[] { cpDefinitionInventory.getCPDefinitionId() },
			cpDefinitionInventory);

		cpDefinitionInventory.resetOriginalValues();
	}
412291
@Override
	public void cacheResult(List<CPDefinitionInventory> cpDefinitionInventories) {
		for (CPDefinitionInventory cpDefinitionInventory : cpDefinitionInventories) {
			if (entityCache.getResult(
						CPDefinitionInventoryModelImpl.ENTITY_CACHE_ENABLED,
						CPDefinitionInventoryImpl.class,
						cpDefinitionInventory.getPrimaryKey()) == null) {
				cacheResult(cpDefinitionInventory);
			}
			else {
				cpDefinitionInventory.resetOriginalValues();
			}
		}
	}
423226
public static com.liferay.commerce.product.model.CPRule addCPRule(
		com.liferay.commerce.product.model.CPRule cpRule) {
		return getService().addCPRule(cpRule);
	}
211212
@Override
	public void clearCache() {
		entityCache.clearCache(CPDefinitionOptionValueRelImpl.class);

		finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
5525
@Override
	public void cacheResult(
		List<CPDefinitionGroupedEntry> cpDefinitionGroupedEntries) {
		for (CPDefinitionGroupedEntry cpDefinitionGroupedEntry : cpDefinitionGroupedEntries) {
			if (entityCache.getResult(
						CPDefinitionGroupedEntryModelImpl.ENTITY_CACHE_ENABLED,
						CPDefinitionGroupedEntryImpl.class,
						cpDefinitionGroupedEntry.getPrimaryKey()) == null) {
				cacheResult(cpDefinitionGroupedEntry);
			}
			else {
				cpDefinitionGroupedEntry.resetOriginalValues();
			}
		}
	}
937362
@Override
	public void clearCache(
		CPDefinitionVirtualSetting cpDefinitionVirtualSetting) {
		entityCache.removeResult(CPDefinitionVirtualSettingModelImpl.ENTITY_CACHE_ENABLED,
			CPDefinitionVirtualSettingImpl.class,
			cpDefinitionVirtualSetting.getPrimaryKey());

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

		clearUniqueFindersCache((CPDefinitionVirtualSettingModelImpl)cpDefinitionVirtualSetting,
			true);
	}
689982
@Override
	public void removeByCPRuleId(long CPRuleId) {
		for (CPRuleAssetCategoryRel cpRuleAssetCategoryRel : findByCPRuleId(
				CPRuleId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpRuleAssetCategoryRel);
		}
	}
177290
@Override
	public void clearCache(CPFriendlyURLEntry cpFriendlyURLEntry) {
		entityCache.removeResult(CPFriendlyURLEntryModelImpl.ENTITY_CACHE_ENABLED,
			CPFriendlyURLEntryImpl.class, cpFriendlyURLEntry.getPrimaryKey());

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

		clearUniqueFindersCache((CPFriendlyURLEntryModelImpl)cpFriendlyURLEntry,
			true);
	}
931035
public void setCPTaxCategoryLocalService(
		com.liferay.commerce.product.service.CPTaxCategoryLocalService cpTaxCategoryLocalService) {
		this.cpTaxCategoryLocalService = cpTaxCategoryLocalService;
	}
1348189
@Override
	public void cacheResult(
		List<CPDAvailabilityEstimate> cpdAvailabilityEstimates) {
		for (CPDAvailabilityEstimate cpdAvailabilityEstimate : cpdAvailabilityEstimates) {
			if (entityCache.getResult(
						CPDAvailabilityEstimateModelImpl.ENTITY_CACHE_ENABLED,
						CPDAvailabilityEstimateImpl.class,
						cpdAvailabilityEstimate.getPrimaryKey()) == null) {
				cacheResult(cpdAvailabilityEstimate);
			}
			else {
				cpdAvailabilityEstimate.resetOriginalValues();
			}
		}
	}