Caches the commerce notification templates in the entity cache if it is enabled.

@param commerceNotificationTemplates the commerce notification templates
185640
@Override
	public void cacheResult(
		List<CommerceNotificationTemplate> commerceNotificationTemplates) {
		for (CommerceNotificationTemplate commerceNotificationTemplate : commerceNotificationTemplates) {
			if (entityCache.getResult(
						CommerceNotificationTemplateModelImpl.ENTITY_CACHE_ENABLED,
						CommerceNotificationTemplateImpl.class,
						commerceNotificationTemplate.getPrimaryKey()) == null) {
				cacheResult(commerceNotificationTemplate);
			}
			else {
				commerceNotificationTemplate.resetOriginalValues();
			}
		}
	}
1062128
@Override
	public void cacheResult(
		List<CommerceAvailabilityEstimate> commerceAvailabilityEstimates) {
		for (CommerceAvailabilityEstimate commerceAvailabilityEstimate : commerceAvailabilityEstimates) {
			if (entityCache.getResult(
						CommerceAvailabilityEstimateModelImpl.ENTITY_CACHE_ENABLED,
						CommerceAvailabilityEstimateImpl.class,
						commerceAvailabilityEstimate.getPrimaryKey()) == null) {
				cacheResult(commerceAvailabilityEstimate);
			}
			else {
				commerceAvailabilityEstimate.resetOriginalValues();
			}
		}
	}
1311294
@Override
	public void cacheResult(
		List<CommerceNotificationAttachment> commerceNotificationAttachments) {
		for (CommerceNotificationAttachment commerceNotificationAttachment : commerceNotificationAttachments) {
			if (entityCache.getResult(
						CommerceNotificationAttachmentModelImpl.ENTITY_CACHE_ENABLED,
						CommerceNotificationAttachmentImpl.class,
						commerceNotificationAttachment.getPrimaryKey()) == null) {
				cacheResult(commerceNotificationAttachment);
			}
			else {
				commerceNotificationAttachment.resetOriginalValues();
			}
		}
	}
552566
@Override
	public void setFromNameMap(Map<java.util.Locale, String> fromNameMap) {
		_commerceNotificationTemplate.setFromNameMap(fromNameMap);
	}
63762
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceNotificationAttachment addCommerceNotificationAttachment(
		CommerceNotificationAttachment commerceNotificationAttachment) {
		commerceNotificationAttachment.setNew(true);

		return commerceNotificationAttachmentPersistence.update(commerceNotificationAttachment);
	}
778254
@Override
	public void cacheResult(CommerceAccount commerceAccount) {
		entityCache.putResult(CommerceAccountModelImpl.ENTITY_CACHE_ENABLED,
			CommerceAccountImpl.class, commerceAccount.getPrimaryKey(),
			commerceAccount);

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

		commerceAccount.resetOriginalValues();
	}
179849
@Override
	public void cacheResult(List<CommerceAddress> commerceAddresses) {
		for (CommerceAddress commerceAddress : commerceAddresses) {
			if (entityCache.getResult(
						CommerceAddressModelImpl.ENTITY_CACHE_ENABLED,
						CommerceAddressImpl.class,
						commerceAddress.getPrimaryKey()) == null) {
				cacheResult(commerceAddress);
			}
			else {
				commerceAddress.resetOriginalValues();
			}
		}
	}
808316
@Override
	public void cacheResult(List<CommerceShipmentItem> commerceShipmentItems) {
		for (CommerceShipmentItem commerceShipmentItem : commerceShipmentItems) {
			if (entityCache.getResult(
						CommerceShipmentItemModelImpl.ENTITY_CACHE_ENABLED,
						CommerceShipmentItemImpl.class,
						commerceShipmentItem.getPrimaryKey()) == null) {
				cacheResult(commerceShipmentItem);
			}
			else {
				commerceShipmentItem.resetOriginalValues();
			}
		}
	}
787044
@Override
	public void removeByCommerceUserSegmentEntryId(
		long commerceUserSegmentEntryId) {
		for (CommerceNotificationTemplateUserSegmentRel commerceNotificationTemplateUserSegmentRel : findByCommerceUserSegmentEntryId(
				commerceUserSegmentEntryId, QueryUtil.ALL_POS,
				QueryUtil.ALL_POS, null)) {
			remove(commerceNotificationTemplateUserSegmentRel);
		}
	}
524714
@Override
	public List<CommerceNotificationTemplate> findByG_E(long groupId,
		boolean enabled) {
		return findByG_E(groupId, enabled, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
590627
@Override
	public com.liferay.commerce.notification.model.CommerceNotificationAttachment addCommerceNotificationAttachment(
		com.liferay.commerce.notification.model.CommerceNotificationAttachment commerceNotificationAttachment) {
		return _commerceNotificationAttachmentLocalService.addCommerceNotificationAttachment(commerceNotificationAttachment);
	}
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();
			}
		}
	}
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();
			}
		}
	}
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();
			}
		}
	}
413658
@Override
	public void removeByG_E(long groupId, boolean enabled) {
		for (CommerceNotificationTemplate commerceNotificationTemplate : findByG_E(
				groupId, enabled, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceNotificationTemplate);
		}
	}
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();
	}
342882
@Override
	public void setSubjectMap(Map<java.util.Locale, String> subjectMap) {
		_commerceNotificationTemplate.setSubjectMap(subjectMap);
	}