Removes all the commerce discount rels where classNameId = &#63; and classPK = &#63; from the database.

@param classNameId the class name ID
@param classPK the class pk
979979
@Override
	public void removeByCN_CPK(long classNameId, long classPK) {
		for (CommerceDiscountRel commerceDiscountRel : findByCN_CPK(
				classNameId, classPK, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceDiscountRel);
		}
	}
928339
@Override
	public List<CommerceDiscountRel> findByCN_CPK(long classNameId, long classPK) {
		return findByCN_CPK(classNameId, classPK, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
224189
@Override
	public void removeByCommerceCurrencyId(long commerceCurrencyId) {
		for (CommercePriceList commercePriceList : findByCommerceCurrencyId(
				commerceCurrencyId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commercePriceList);
		}
	}
657716
@Override
	public void removeByCPInstanceUuid(String CPInstanceUuid) {
		for (CommerceWishListItem commerceWishListItem : findByCPInstanceUuid(
				CPInstanceUuid, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceWishListItem);
		}
	}
659160
@Override
	public void removeByG_C(long groupId, String couponCode) {
		for (CommerceDiscount commerceDiscount : findByG_C(groupId, couponCode,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceDiscount);
		}
	}
163113
@Override
	public void removeByGroupId(long groupId) {
		for (CommerceDiscountUsageEntry commerceDiscountUsageEntry : findByGroupId(
				groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceDiscountUsageEntry);
		}
	}
1287611
@Override
	public void removeByCommerceCountryId(long commerceCountryId) {
		for (CommerceRegion commerceRegion : findByCommerceCountryId(
				commerceCountryId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceRegion);
		}
	}
1086337
@Override
	public void removeByCommerceOrderId(long commerceOrderId) {
		for (CommerceOrderPayment commerceOrderPayment : findByCommerceOrderId(
				commerceOrderId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceOrderPayment);
		}
	}
680738
@Override
	public void removeByCommerceOrderId(long commerceOrderId) {
		for (CommerceOrderNote commerceOrderNote : findByCommerceOrderId(
				commerceOrderId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceOrderNote);
		}
	}
777488
@Override
	public List<CommerceAddressRestriction> findByC_C(long classNameId,
		long classPK) {
		return findByC_C(classNameId, classPK, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
1209962
public static String removeClassName(String classNameKey) {
        String[] splitKey = classNameKey.split("[.]");
        String resultString = "";

        for (int i = 1; i < splitKey.length; i++) {
            resultString = resultString.concat(splitKey[i]);

            if ((i + 1) < splitKey.length) {
                resultString = resultString.concat(".");
            }
        }

        if (resultString.length() == 0) {
            resultString = classNameKey;
        }

        return resultString;
    }
779214
@Override
	public void removeByG_P(long groupId, boolean primary) {
		for (CommerceWarehouse commerceWarehouse : findByG_P(groupId, primary,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceWarehouse);
		}
	}
620391
@Override
	public void removeByGroupId(long groupId) {
		for (CommercePriceList commercePriceList : findByGroupId(groupId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commercePriceList);
		}
	}
706376
@Override
	public void removeByG_C_C(long groupId, long classNameId, long classPK) {
		for (CPFriendlyURLEntry cpFriendlyURLEntry : findByG_C_C(groupId,
				classNameId, classPK, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpFriendlyURLEntry);
		}
	}
1143403
@Override
	public void removeByUuid(String uuid) {
		for (CommerceDiscount commerceDiscount : findByUuid(uuid,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceDiscount);
		}
	}
1253404
@Override
	public void removeByCW_CP(long commerceWishListId, long CProductId) {
		for (CommerceWishListItem commerceWishListItem : findByCW_CP(
				commerceWishListId, CProductId, QueryUtil.ALL_POS,
				QueryUtil.ALL_POS, null)) {
			remove(commerceWishListItem);
		}
	}
66636
@Override
	public void clearCache() {
		entityCache.clearCache(CommerceDiscountRuleImpl.class);

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