Caches the commerce notification template user segment rel in the entity cache if it is enabled.

@param commerceNotificationTemplateUserSegmentRel the commerce notification template user segment rel
493978
@Override
	public void cacheResult(
		CommerceNotificationTemplateUserSegmentRel commerceNotificationTemplateUserSegmentRel) {
		entityCache.putResult(CommerceNotificationTemplateUserSegmentRelModelImpl.ENTITY_CACHE_ENABLED,
			CommerceNotificationTemplateUserSegmentRelImpl.class,
			commerceNotificationTemplateUserSegmentRel.getPrimaryKey(),
			commerceNotificationTemplateUserSegmentRel);

		finderCache.putResult(FINDER_PATH_FETCH_BY_C_C,
			new Object[] {
				commerceNotificationTemplateUserSegmentRel.getCommerceNotificationTemplateId(),
				commerceNotificationTemplateUserSegmentRel.getCommerceUserSegmentEntryId()
			}, commerceNotificationTemplateUserSegmentRel);

		commerceNotificationTemplateUserSegmentRel.resetOriginalValues();
	}
1002184
@Override
	public List<CommerceNotificationTemplate> findByG_T_E(long groupId,
		String type, boolean enabled) {
		return findByG_T_E(groupId, type, enabled, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
406629
@Override
	public void clearCache() {
		entityCache.clearCache(CommerceNotificationTemplateUserSegmentRelImpl.class);

		finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
170961
@Override
	public List<CPRuleUserSegmentRel> findByCommerceUserSegmentEntryId(
		long commerceUserSegmentEntryId) {
		return findByCommerceUserSegmentEntryId(commerceUserSegmentEntryId,
			QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
925052
@Override
	public void cacheResult(
		CommerceAccountOrganizationRel commerceAccountOrganizationRel) {
		entityCache.putResult(CommerceAccountOrganizationRelModelImpl.ENTITY_CACHE_ENABLED,
			CommerceAccountOrganizationRelImpl.class,
			commerceAccountOrganizationRel.getPrimaryKey(),
			commerceAccountOrganizationRel);

		commerceAccountOrganizationRel.resetOriginalValues();
	}
1224409
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceAccountUserRel addCommerceAccountUserRel(
		CommerceAccountUserRel commerceAccountUserRel) {
		commerceAccountUserRel.setNew(true);

		return commerceAccountUserRelPersistence.update(commerceAccountUserRel);
	}
706360
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommerceDiscountUserSegmentRel deleteCommerceDiscountUserSegmentRel(
		CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel) {
		return commerceDiscountUserSegmentRelPersistence.remove(commerceDiscountUserSegmentRel);
	}
1273882
@Override
	public void cacheResult(
		List<CommerceNotificationTemplateUserSegmentRel> commerceNotificationTemplateUserSegmentRels) {
		for (CommerceNotificationTemplateUserSegmentRel commerceNotificationTemplateUserSegmentRel : commerceNotificationTemplateUserSegmentRels) {
			if (entityCache.getResult(
						CommerceNotificationTemplateUserSegmentRelModelImpl.ENTITY_CACHE_ENABLED,
						CommerceNotificationTemplateUserSegmentRelImpl.class,
						commerceNotificationTemplateUserSegmentRel.getPrimaryKey()) == null) {
				cacheResult(commerceNotificationTemplateUserSegmentRel);
			}
			else {
				commerceNotificationTemplateUserSegmentRel.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();
			}
		}
	}
1120729
public void setCommerceNotificationQueueEntryService(
		com.liferay.commerce.notification.service.CommerceNotificationQueueEntryService commerceNotificationQueueEntryService) {
		this.commerceNotificationQueueEntryService = commerceNotificationQueueEntryService;
	}
828002
@Override
	public void clearCache(CommerceAccountUserRel commerceAccountUserRel) {
		entityCache.removeResult(CommerceAccountUserRelModelImpl.ENTITY_CACHE_ENABLED,
			CommerceAccountUserRelImpl.class,
			commerceAccountUserRel.getPrimaryKey());

		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
633923
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceDiscountUserSegmentRel addCommerceDiscountUserSegmentRel(
		CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel) {
		commerceDiscountUserSegmentRel.setNew(true);

		return commerceDiscountUserSegmentRelPersistence.update(commerceDiscountUserSegmentRel);
	}
366050
@Override
	public List<CommerceNotificationTemplateUserSegmentRel> findByCommerceUserSegmentEntryId(
		long commerceUserSegmentEntryId) {
		return findByCommerceUserSegmentEntryId(commerceUserSegmentEntryId,
			QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
868498
public void setCommerceUserSegmentEntryLocalService(
		com.liferay.commerce.user.segment.service.CommerceUserSegmentEntryLocalService commerceUserSegmentEntryLocalService) {
		this.commerceUserSegmentEntryLocalService = commerceUserSegmentEntryLocalService;
	}
213236
@Override
	public void cacheResult(CPRuleUserSegmentRel cpRuleUserSegmentRel) {
		entityCache.putResult(CPRuleUserSegmentRelModelImpl.ENTITY_CACHE_ENABLED,
			CPRuleUserSegmentRelImpl.class,
			cpRuleUserSegmentRel.getPrimaryKey(), cpRuleUserSegmentRel);

		cpRuleUserSegmentRel.resetOriginalValues();
	}
1268659
@Override
	public List<CommerceNotificationTemplate> findAll() {
		return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
275723
@Override
	public void removeByCommerceUserSegmentEntryId(
		long commerceUserSegmentEntryId) {
		for (CommerceUserSegmentCriterion commerceUserSegmentCriterion : findByCommerceUserSegmentEntryId(
				commerceUserSegmentEntryId, QueryUtil.ALL_POS,
				QueryUtil.ALL_POS, null)) {
			remove(commerceUserSegmentCriterion);
		}
	}