Creates a new commerce discount rel with the primary key. Does not add the commerce discount rel to the database.

@param commerceDiscountRelId the primary key for the new commerce discount rel
@return the new commerce discount rel
356900
@Override
	public CommerceDiscountRel create(long commerceDiscountRelId) {
		CommerceDiscountRel commerceDiscountRel = new CommerceDiscountRelImpl();

		commerceDiscountRel.setNew(true);
		commerceDiscountRel.setPrimaryKey(commerceDiscountRelId);

		commerceDiscountRel.setCompanyId(companyProvider.getCompanyId());

		return commerceDiscountRel;
	}
84894
public void setCommerceDiscountService(
		com.liferay.commerce.discount.service.CommerceDiscountService commerceDiscountService) {
		this.commerceDiscountService = commerceDiscountService;
	}
643010
public static com.liferay.commerce.discount.model.CommerceDiscountUserSegmentRel deleteCommerceDiscountUserSegmentRel(
		com.liferay.commerce.discount.model.CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel) {
		return getService()
				   .deleteCommerceDiscountUserSegmentRel(commerceDiscountUserSegmentRel);
	}
559897
public static com.liferay.commerce.discount.model.CommerceDiscountRel deleteCommerceDiscountRel(
		com.liferay.commerce.discount.model.CommerceDiscountRel commerceDiscountRel)
		throws com.liferay.portal.kernel.exception.PortalException {
		return getService().deleteCommerceDiscountRel(commerceDiscountRel);
	}
583131
@Override
	@Transactional(enabled = false)
	public CommerceCountry createCommerceCountry(long commerceCountryId) {
		return commerceCountryPersistence.create(commerceCountryId);
	}
1263900
public static com.liferay.commerce.price.list.model.CommerceTierPriceEntry createCommerceTierPriceEntry(
		long commerceTierPriceEntryId) {
		return getService()
				   .createCommerceTierPriceEntry(commerceTierPriceEntryId);
	}
879509
public static com.liferay.commerce.currency.model.CommerceCurrency createCommerceCurrency(
		long commerceCurrencyId) {
		return getService().createCommerceCurrency(commerceCurrencyId);
	}
1335954
@Override
	public com.liferay.commerce.product.model.CPDefinitionOptionRel createCPDefinitionOptionRel(
		long CPDefinitionOptionRelId) {
		return _cpDefinitionOptionRelLocalService.createCPDefinitionOptionRel(CPDefinitionOptionRelId);
	}
943395
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceDiscountRule addCommerceDiscountRule(
		CommerceDiscountRule commerceDiscountRule) {
		commerceDiscountRule.setNew(true);

		return commerceDiscountRulePersistence.update(commerceDiscountRule);
	}
467533
@Override
	@Transactional(enabled = false)
	public CommerceOrderNote createCommerceOrderNote(long commerceOrderNoteId) {
		return commerceOrderNotePersistence.create(commerceOrderNoteId);
	}
462621
@Override
	public List<CommerceDiscountRel> findByCommerceDiscountId(
		long commerceDiscountId) {
		return findByCommerceDiscountId(commerceDiscountId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
57029
public static com.liferay.commerce.model.CommerceOrder createCommerceOrder(
		long commerceOrderId) {
		return getService().createCommerceOrder(commerceOrderId);
	}
244234
public static com.liferay.commerce.model.CommerceOrderItem createCommerceOrderItem(
		long commerceOrderItemId) {
		return getService().createCommerceOrderItem(commerceOrderItemId);
	}
928339
@Override
	public List<CommerceDiscountRel> findByCN_CPK(long classNameId, long classPK) {
		return findByCN_CPK(classNameId, classPK, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
599857
@Override
	public int countByCommerceCountryId(long commerceCountryId) {
		FinderPath finderPath = FINDER_PATH_COUNT_BY_COMMERCECOUNTRYID;

		Object[] finderArgs = new Object[] { commerceCountryId };

		Long count = (Long)finderCache.getResult(finderPath, finderArgs, this);

		if (count == null) {
			StringBundler query = new StringBundler(2);

			query.append(_SQL_COUNT_COMMERCEREGION_WHERE);

			query.append(_FINDER_COLUMN_COMMERCECOUNTRYID_COMMERCECOUNTRYID_2);

			String sql = query.toString();

			Session session = null;

			try {
				session = openSession();

				Query q = session.createQuery(sql);

				QueryPos qPos = QueryPos.getInstance(q);

				qPos.add(commerceCountryId);

				count = (Long)q.uniqueResult();

				finderCache.putResult(finderPath, finderArgs, count);
			}
			catch (Exception e) {
				finderCache.removeResult(finderPath, finderArgs);

				throw processException(e);
			}
			finally {
				closeSession(session);
			}
		}

		return count.intValue();
	}
988922
public static com.liferay.commerce.discount.model.CommerceDiscount deleteCommerceDiscount(
		com.liferay.commerce.discount.model.CommerceDiscount commerceDiscount)
		throws com.liferay.portal.kernel.exception.PortalException {
		return getService().deleteCommerceDiscount(commerceDiscount);
	}
103298
public static com.liferay.commerce.model.CommerceCountry createCommerceCountry(
		long commerceCountryId) {
		return getService().createCommerceCountry(commerceCountryId);
	}