Caches the cp definition option value rels in the entity cache if it is enabled.

@param cpDefinitionOptionValueRels the cp definition option value rels
173739
@Override
	public void cacheResult(
		List<CPDefinitionOptionValueRel> cpDefinitionOptionValueRels) {
		for (CPDefinitionOptionValueRel cpDefinitionOptionValueRel : cpDefinitionOptionValueRels) {
			if (entityCache.getResult(
						CPDefinitionOptionValueRelModelImpl.ENTITY_CACHE_ENABLED,
						CPDefinitionOptionValueRelImpl.class,
						cpDefinitionOptionValueRel.getPrimaryKey()) == null) {
				cacheResult(cpDefinitionOptionValueRel);
			}
			else {
				cpDefinitionOptionValueRel.resetOriginalValues();
			}
		}
	}
268840
public void setCPDefinitionOptionValueRelLocalService(
		com.liferay.commerce.product.service.CPDefinitionOptionValueRelLocalService cpDefinitionOptionValueRelLocalService) {
		this.cpDefinitionOptionValueRelLocalService = cpDefinitionOptionValueRelLocalService;
	}
752934
@Override
	public void clearCache() {
		entityCache.clearCache(CPDefinitionLocalizationImpl.class);

		finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
1041269
@Override
	public List<CPDefinitionSpecificationOptionValue> findByCPSpecificationOptionId(
		long CPSpecificationOptionId) {
		return findByCPSpecificationOptionId(CPSpecificationOptionId,
			QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
967450
@Override
	public void clearCache(
		CPDefinitionSpecificationOptionValue cpDefinitionSpecificationOptionValue) {
		entityCache.removeResult(CPDefinitionSpecificationOptionValueModelImpl.ENTITY_CACHE_ENABLED,
			CPDefinitionSpecificationOptionValueImpl.class,
			cpDefinitionSpecificationOptionValue.getPrimaryKey());

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

		clearUniqueFindersCache((CPDefinitionSpecificationOptionValueModelImpl)cpDefinitionSpecificationOptionValue,
			true);
	}
579397
@Override
	public void removeByCPSpecificationOptionId(long CPSpecificationOptionId) {
		for (CPDefinitionSpecificationOptionValue cpDefinitionSpecificationOptionValue : findByCPSpecificationOptionId(
				CPSpecificationOptionId, QueryUtil.ALL_POS, QueryUtil.ALL_POS,
				null)) {
			remove(cpDefinitionSpecificationOptionValue);
		}
	}
1303799
@Override
	public void cacheResult(List<CPDefinition> cpDefinitions) {
		for (CPDefinition cpDefinition : cpDefinitions) {
			if (entityCache.getResult(
						CPDefinitionModelImpl.ENTITY_CACHE_ENABLED,
						CPDefinitionImpl.class, cpDefinition.getPrimaryKey()) == null) {
				cacheResult(cpDefinition);
			}
			else {
				cpDefinition.resetOriginalValues();
			}
		}
	}
545093
@Override
	public CPDefinitionOptionRel create(long CPDefinitionOptionRelId) {
		CPDefinitionOptionRel cpDefinitionOptionRel = new CPDefinitionOptionRelImpl();

		cpDefinitionOptionRel.setNew(true);
		cpDefinitionOptionRel.setPrimaryKey(CPDefinitionOptionRelId);

		String uuid = PortalUUIDUtil.generate();

		cpDefinitionOptionRel.setUuid(uuid);

		cpDefinitionOptionRel.setCompanyId(companyProvider.getCompanyId());

		return cpDefinitionOptionRel;
	}
573835
@Override
	public void clearCache(CPOption cpOption) {
		entityCache.removeResult(CPOptionModelImpl.ENTITY_CACHE_ENABLED,
			CPOptionImpl.class, cpOption.getPrimaryKey());

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

		clearUniqueFindersCache((CPOptionModelImpl)cpOption, true);
	}
1221182
public void setCPOptionValueService(
		com.liferay.commerce.product.service.CPOptionValueService cpOptionValueService) {
		this.cpOptionValueService = cpOptionValueService;
	}
1084133
@Override
	public void clearCache(CPDefinitionGroupedEntry cpDefinitionGroupedEntry) {
		entityCache.removeResult(CPDefinitionGroupedEntryModelImpl.ENTITY_CACHE_ENABLED,
			CPDefinitionGroupedEntryImpl.class,
			cpDefinitionGroupedEntry.getPrimaryKey());

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

		clearUniqueFindersCache((CPDefinitionGroupedEntryModelImpl)cpDefinitionGroupedEntry,
			true);
	}
735691
@Override
	public List<CPDefinitionOptionValueRel> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
863588
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPDefinition addCPDefinition(CPDefinition cpDefinition) {
		cpDefinition.setNew(true);

		return cpDefinitionPersistence.update(cpDefinition);
	}
863370
@Override
	public void removeByCPDefinitionOptionRelId(long CPDefinitionOptionRelId) {
		for (CPDefinitionOptionValueRel cpDefinitionOptionValueRel : findByCPDefinitionOptionRelId(
				CPDefinitionOptionRelId, QueryUtil.ALL_POS, QueryUtil.ALL_POS,
				null)) {
			remove(cpDefinitionOptionValueRel);
		}
	}
548881
@Override
	public List<CPDefinitionOptionRel> findByCPDefinitionId(long CPDefinitionId) {
		return findByCPDefinitionId(CPDefinitionId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
809408
@Override
	public List<CPDefinitionSpecificationOptionValue> findAll() {
		return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
1006864
@Override
	public void cacheResult(List<CPOption> cpOptions) {
		for (CPOption cpOption : cpOptions) {
			if (entityCache.getResult(CPOptionModelImpl.ENTITY_CACHE_ENABLED,
						CPOptionImpl.class, cpOption.getPrimaryKey()) == null) {
				cacheResult(cpOption);
			}
			else {
				cpOption.resetOriginalValues();
			}
		}
	}