Removes all the cp definitions where CProductId = &#63; and status = &#63; from the database.

@param CProductId the c product ID
@param status the status
547563
@Override
	public void removeByC_S(long CProductId, int status) {
		for (CPDefinition cpDefinition : findByC_S(CProductId, status,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpDefinition);
		}
	}
95244
@Override
	public void removeByUuid_C(String uuid, long companyId) {
		for (CPDefinitionOptionRel cpDefinitionOptionRel : findByUuid_C(uuid,
				companyId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpDefinitionOptionRel);
		}
	}
806753
@Override
	public com.liferay.commerce.product.model.CProduct createCProduct(
		long CProductId) {
		return _cProductLocalService.createCProduct(CProductId);
	}
935322
@Override
	public void removeByC_C(long classNameId, long classPK) {
		for (CPFriendlyURLEntry cpFriendlyURLEntry : findByC_C(classNameId,
				classPK, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpFriendlyURLEntry);
		}
	}
863370
@Override
	public void removeByCPDefinitionOptionRelId(long CPDefinitionOptionRelId) {
		for (CPDefinitionOptionValueRel cpDefinitionOptionValueRel : findByCPDefinitionOptionRelId(
				CPDefinitionOptionRelId, QueryUtil.ALL_POS, QueryUtil.ALL_POS,
				null)) {
			remove(cpDefinitionOptionValueRel);
		}
	}
587951
@Override
	public void removeByCPDefinitionId(long CPDefinitionId) {
		for (CPDefinitionLocalization cpDefinitionLocalization : findByCPDefinitionId(
				CPDefinitionId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpDefinitionLocalization);
		}
	}
374123
@Override
	public void removeByC_ST(long CPDefinitionId, int status) {
		for (CPInstance cpInstance : findByC_ST(CPDefinitionId, status,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpInstance);
		}
	}
1261291
@Override
	public void removeByUuid_C(String uuid, long companyId) {
		for (CPOptionCategory cpOptionCategory : findByUuid_C(uuid, companyId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpOptionCategory);
		}
	}
272411
@Override
	public void removeByCommerceAvailabilityEstimateId(
		long commerceAvailabilityEstimateId) {
		for (CPDAvailabilityEstimate cpdAvailabilityEstimate : findByCommerceAvailabilityEstimateId(
				commerceAvailabilityEstimateId, QueryUtil.ALL_POS,
				QueryUtil.ALL_POS, null)) {
			remove(cpdAvailabilityEstimate);
		}
	}
1094127
@Override
	public void removeByCPDefinitionId(long CPDefinitionId) {
		for (CPDefinitionLink cpDefinitionLink : findByCPDefinitionId(
				CPDefinitionId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpDefinitionLink);
		}
	}
1293058
@Override
	public void removeByUuid_C(String uuid, long companyId) {
		for (CPDefinitionVirtualSetting cpDefinitionVirtualSetting : findByUuid_C(
				uuid, companyId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpDefinitionVirtualSetting);
		}
	}
762265
public static void removeByC_C_T_ST(long classNameId, long classPK,
		int type, int status) {
		getPersistence().removeByC_C_T_ST(classNameId, classPK, type, status);
	}
1026121
@Override
	public int countByC_S(long CProductId, int status) {
		FinderPath finderPath = FINDER_PATH_COUNT_BY_C_S;

		Object[] finderArgs = new Object[] { CProductId, status };

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

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

			query.append(_SQL_COUNT_CPDEFINITION_WHERE);

			query.append(_FINDER_COLUMN_C_S_CPRODUCTID_2);

			query.append(_FINDER_COLUMN_C_S_STATUS_2);

			String sql = query.toString();

			Session session = null;

			try {
				session = openSession();

				Query q = session.createQuery(sql);

				QueryPos qPos = QueryPos.getInstance(q);

				qPos.add(CProductId);

				qPos.add(status);

				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();
	}
385158
@Override
	public void removeByUuid_C(String uuid, long companyId) {
		for (CommerceCountry commerceCountry : findByUuid_C(uuid, companyId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceCountry);
		}
	}
90424
@Override
	public CPDAvailabilityEstimate removeByCProductId(long CProductId)
		throws NoSuchCPDAvailabilityEstimateException {
		CPDAvailabilityEstimate cpdAvailabilityEstimate = findByCProductId(CProductId);

		return remove(cpdAvailabilityEstimate);
	}
617725
@Override
	public void removeByC_CSO(long CPDefinitionId, long CPSpecificationOptionId) {
		for (CPDefinitionSpecificationOptionValue cpDefinitionSpecificationOptionValue : findByC_CSO(
				CPDefinitionId, CPSpecificationOptionId, QueryUtil.ALL_POS,
				QueryUtil.ALL_POS, null)) {
			remove(cpDefinitionSpecificationOptionValue);
		}
	}
735699
@Override
	public void removeByUuid_C(String uuid, long companyId) {
		for (CPMeasurementUnit cpMeasurementUnit : findByUuid_C(uuid,
				companyId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpMeasurementUnit);
		}
	}