Caches the cp instances in the entity cache if it is enabled.

@param cpInstances the cp instances
436717
@Override
	public void cacheResult(List<CPInstance> cpInstances) {
		for (CPInstance cpInstance : cpInstances) {
			if (entityCache.getResult(
						CPInstanceModelImpl.ENTITY_CACHE_ENABLED,
						CPInstanceImpl.class, cpInstance.getPrimaryKey()) == null) {
				cacheResult(cpInstance);
			}
			else {
				cpInstance.resetOriginalValues();
			}
		}
	}
873734
@Override
	public void clearCache() {
		entityCache.clearCache(CPOptionImpl.class);

		finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
1043830
@Override
	public void cacheResult(CPDefinitionOptionRel cpDefinitionOptionRel) {
		entityCache.putResult(CPDefinitionOptionRelModelImpl.ENTITY_CACHE_ENABLED,
			CPDefinitionOptionRelImpl.class,
			cpDefinitionOptionRel.getPrimaryKey(), cpDefinitionOptionRel);

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

		finderCache.putResult(FINDER_PATH_FETCH_BY_C_C,
			new Object[] {
				cpDefinitionOptionRel.getCPDefinitionId(),
				cpDefinitionOptionRel.getCPOptionId()
			}, cpDefinitionOptionRel);

		cpDefinitionOptionRel.resetOriginalValues();
	}
1067640
@Override
	public void cacheResult(List<CPRuleUserSegmentRel> cpRuleUserSegmentRels) {
		for (CPRuleUserSegmentRel cpRuleUserSegmentRel : cpRuleUserSegmentRels) {
			if (entityCache.getResult(
						CPRuleUserSegmentRelModelImpl.ENTITY_CACHE_ENABLED,
						CPRuleUserSegmentRelImpl.class,
						cpRuleUserSegmentRel.getPrimaryKey()) == null) {
				cacheResult(cpRuleUserSegmentRel);
			}
			else {
				cpRuleUserSegmentRel.resetOriginalValues();
			}
		}
	}
401451
@Override
	public void clearCache(CPDAvailabilityEstimate cpdAvailabilityEstimate) {
		entityCache.removeResult(CPDAvailabilityEstimateModelImpl.ENTITY_CACHE_ENABLED,
			CPDAvailabilityEstimateImpl.class,
			cpdAvailabilityEstimate.getPrimaryKey());

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

		clearUniqueFindersCache((CPDAvailabilityEstimateModelImpl)cpdAvailabilityEstimate,
			true);
	}
540822
@Override
	public void cacheResult(CPRuleAssetCategoryRel cpRuleAssetCategoryRel) {
		entityCache.putResult(CPRuleAssetCategoryRelModelImpl.ENTITY_CACHE_ENABLED,
			CPRuleAssetCategoryRelImpl.class,
			cpRuleAssetCategoryRel.getPrimaryKey(), cpRuleAssetCategoryRel);

		cpRuleAssetCategoryRel.resetOriginalValues();
	}
306714
@Override
	public void clearCache() {
		entityCache.clearCache(CPFriendlyURLEntryImpl.class);

		finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
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);
	}
1345732
@Override
	public void cacheResult(CPAttachmentFileEntry cpAttachmentFileEntry) {
		entityCache.putResult(CPAttachmentFileEntryModelImpl.ENTITY_CACHE_ENABLED,
			CPAttachmentFileEntryImpl.class,
			cpAttachmentFileEntry.getPrimaryKey(), cpAttachmentFileEntry);

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

		finderCache.putResult(FINDER_PATH_FETCH_BY_C_C_F,
			new Object[] {
				cpAttachmentFileEntry.getClassNameId(),
				cpAttachmentFileEntry.getClassPK(),
				cpAttachmentFileEntry.getFileEntryId()
			}, cpAttachmentFileEntry);

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

		cpAttachmentFileEntry.resetOriginalValues();
	}
522089
@Override
	public void cacheResult(List<CPAttachmentFileEntry> cpAttachmentFileEntries) {
		for (CPAttachmentFileEntry cpAttachmentFileEntry : cpAttachmentFileEntries) {
			if (entityCache.getResult(
						CPAttachmentFileEntryModelImpl.ENTITY_CACHE_ENABLED,
						CPAttachmentFileEntryImpl.class,
						cpAttachmentFileEntry.getPrimaryKey()) == null) {
				cacheResult(cpAttachmentFileEntry);
			}
			else {
				cpAttachmentFileEntry.resetOriginalValues();
			}
		}
	}
1085147
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPInstance updateCPInstance(CPInstance cpInstance) {
		return cpInstancePersistence.update(cpInstance);
	}
1313692
@Override
	public void clearCache() {
		entityCache.clearCache(CPDefinitionInventoryImpl.class);

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

		finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
24860
@Override
	public void cacheResult(CPMeasurementUnit cpMeasurementUnit) {
		entityCache.putResult(CPMeasurementUnitModelImpl.ENTITY_CACHE_ENABLED,
			CPMeasurementUnitImpl.class, cpMeasurementUnit.getPrimaryKey(),
			cpMeasurementUnit);

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

		finderCache.putResult(FINDER_PATH_FETCH_BY_G_K_T,
			new Object[] {
				cpMeasurementUnit.getGroupId(), cpMeasurementUnit.getKey(),
				cpMeasurementUnit.getType()
			}, cpMeasurementUnit);

		cpMeasurementUnit.resetOriginalValues();
	}
1174083
@Override
	public void cacheResult(List<CProduct> cProducts) {
		for (CProduct cProduct : cProducts) {
			if (entityCache.getResult(CProductModelImpl.ENTITY_CACHE_ENABLED,
						CProductImpl.class, cProduct.getPrimaryKey()) == null) {
				cacheResult(cProduct);
			}
			else {
				cProduct.resetOriginalValues();
			}
		}
	}
766755
@Override
	public void clearCache() {
		entityCache.clearCache(CPAttachmentFileEntryImpl.class);

		finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
152300
@Override
	public void cacheResult(CPDefinitionLink cpDefinitionLink) {
		entityCache.putResult(CPDefinitionLinkModelImpl.ENTITY_CACHE_ENABLED,
			CPDefinitionLinkImpl.class, cpDefinitionLink.getPrimaryKey(),
			cpDefinitionLink);

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

		finderCache.putResult(FINDER_PATH_FETCH_BY_C_C_T,
			new Object[] {
				cpDefinitionLink.getCPDefinitionId(),
				cpDefinitionLink.getCProductId(), cpDefinitionLink.getType()
			}, cpDefinitionLink);

		cpDefinitionLink.resetOriginalValues();
	}