Updates the commerce discount rel in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

@param commerceDiscountRel the commerce discount rel
@return the commerce discount rel that was updated
519855
public static com.liferay.commerce.discount.model.CommerceDiscountRel updateCommerceDiscountRel(
		com.liferay.commerce.discount.model.CommerceDiscountRel commerceDiscountRel) {
		return getService().updateCommerceDiscountRel(commerceDiscountRel);
	}
459933
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceOrderNote updateCommerceOrderNote(
		CommerceOrderNote commerceOrderNote) {
		return commerceOrderNotePersistence.update(commerceOrderNote);
	}
76459
@Override
	public com.liferay.commerce.model.CommerceCountry updateCommerceCountry(
		com.liferay.commerce.model.CommerceCountry commerceCountry) {
		return _commerceCountryLocalService.updateCommerceCountry(commerceCountry);
	}
743037
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommercePaymentMethodGroupRel addCommercePaymentMethodGroupRel(
		CommercePaymentMethodGroupRel commercePaymentMethodGroupRel) {
		commercePaymentMethodGroupRel.setNew(true);

		return commercePaymentMethodGroupRelPersistence.update(commercePaymentMethodGroupRel);
	}
838354
public static com.liferay.commerce.model.CommerceOrder addCommerceOrder(
		com.liferay.commerce.model.CommerceOrder commerceOrder) {
		return getService().addCommerceOrder(commerceOrder);
	}
862042
public static com.liferay.commerce.discount.model.CommerceDiscountUsageEntry addCommerceDiscountUsageEntry(
		com.liferay.commerce.discount.model.CommerceDiscountUsageEntry commerceDiscountUsageEntry) {
		return getService()
				   .addCommerceDiscountUsageEntry(commerceDiscountUsageEntry);
	}
643010
public static com.liferay.commerce.discount.model.CommerceDiscountUserSegmentRel deleteCommerceDiscountUserSegmentRel(
		com.liferay.commerce.discount.model.CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel) {
		return getService()
				   .deleteCommerceDiscountUserSegmentRel(commerceDiscountUserSegmentRel);
	}
135711
@Override
	public List<CommerceDiscountRel> findByCD_CN(long commerceDiscountId,
		long classNameId) {
		return findByCD_CN(commerceDiscountId, classNameId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
997132
@Override
	public List<CommerceDiscountUserSegmentRel> findByCommerceDiscountId(
		long commerceDiscountId) {
		return findByCommerceDiscountId(commerceDiscountId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
33382
@Override
	public void clearCache(CommerceDiscountRel commerceDiscountRel) {
		entityCache.removeResult(CommerceDiscountRelModelImpl.ENTITY_CACHE_ENABLED,
			CommerceDiscountRelImpl.class, commerceDiscountRel.getPrimaryKey());

		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
14967
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceOrderItem updateCommerceOrderItem(
		CommerceOrderItem commerceOrderItem) {
		return commerceOrderItemPersistence.update(commerceOrderItem);
	}
346906
public void setCommerceDiscountRelService(
		com.liferay.commerce.discount.service.CommerceDiscountRelService commerceDiscountRelService) {
		this.commerceDiscountRelService = commerceDiscountRelService;
	}
784045
@Override
	public com.liferay.commerce.discount.model.CommerceDiscount updateCommerceDiscount(
		com.liferay.commerce.discount.model.CommerceDiscount commerceDiscount) {
		return _commerceDiscountLocalService.updateCommerceDiscount(commerceDiscount);
	}
984251
public static com.liferay.commerce.discount.model.CommerceDiscountRule createCommerceDiscountRule(
		long commerceDiscountRuleId) {
		return getService().createCommerceDiscountRule(commerceDiscountRuleId);
	}
1232453
public static com.liferay.commerce.currency.model.CommerceCurrency updateCommerceCurrency(
		com.liferay.commerce.currency.model.CommerceCurrency commerceCurrency) {
		return getService().updateCommerceCurrency(commerceCurrency);
	}
424576
public static com.liferay.commerce.model.CommerceShipment updateCommerceShipment(
		com.liferay.commerce.model.CommerceShipment commerceShipment) {
		return getService().updateCommerceShipment(commerceShipment);
	}
633923
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceDiscountUserSegmentRel addCommerceDiscountUserSegmentRel(
		CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel) {
		commerceDiscountUserSegmentRel.setNew(true);

		return commerceDiscountUserSegmentRelPersistence.update(commerceDiscountUserSegmentRel);
	}