Returns all the commerce warehouse items where CProductId = &#63; and CPInstanceUuid = &#63;.

@param CProductId the c product ID
@param CPInstanceUuid the cp instance uuid
@return the matching commerce warehouse items
347874
@Override
	public List<CommerceWarehouseItem> findByCPI_CPIU(long CProductId,
		String CPInstanceUuid) {
		return findByCPI_CPIU(CProductId, CPInstanceUuid, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
1343400
public static List<CommercePriceList> findByUuid_C(String uuid,
		long companyId) {
		return getPersistence().findByUuid_C(uuid, companyId);
	}
969422
@Override
	public int countByCPI_CPIU(long CProductId, String CPInstanceUuid) {
		FinderPath finderPath = FINDER_PATH_COUNT_BY_CPI_CPIU;

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

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

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

			query.append(_SQL_COUNT_COMMERCEWAREHOUSEITEM_WHERE);

			query.append(_FINDER_COLUMN_CPI_CPIU_CPRODUCTID_2);

			boolean bindCPInstanceUuid = false;

			if (CPInstanceUuid == null) {
				query.append(_FINDER_COLUMN_CPI_CPIU_CPINSTANCEUUID_1);
			}
			else if (CPInstanceUuid.equals("")) {
				query.append(_FINDER_COLUMN_CPI_CPIU_CPINSTANCEUUID_3);
			}
			else {
				bindCPInstanceUuid = true;

				query.append(_FINDER_COLUMN_CPI_CPIU_CPINSTANCEUUID_2);
			}

			String sql = query.toString();

			Session session = null;

			try {
				session = openSession();

				Query q = session.createQuery(sql);

				QueryPos qPos = QueryPos.getInstance(q);

				qPos.add(CProductId);

				if (bindCPInstanceUuid) {
					qPos.add(CPInstanceUuid);
				}

				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();
	}
1101762
public static com.liferay.commerce.product.model.CPInstance fetchCPInstanceByUuidAndGroupId(
		String uuid, long groupId) {
		return getService().fetchCPInstanceByUuidAndGroupId(uuid, groupId);
	}
1074560
@Override
	public List<CPDefinitionLink> getCPDefinitionLinksByUuidAndCompanyId(
		String uuid, long companyId) {
		return cpDefinitionLinkPersistence.findByUuid_C(uuid, companyId);
	}
565439
@Override
	public void removeByCPI_CPIU(long CProductId, String CPInstanceUuid) {
		for (CommerceWarehouseItem commerceWarehouseItem : findByCPI_CPIU(
				CProductId, CPInstanceUuid, QueryUtil.ALL_POS,
				QueryUtil.ALL_POS, null)) {
			remove(commerceWarehouseItem);
		}
	}
969049
@Override
	public List<CPDAvailabilityEstimate> findByCommerceAvailabilityEstimateId(
		long commerceAvailabilityEstimateId) {
		return findByCommerceAvailabilityEstimateId(commerceAvailabilityEstimateId,
			QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
1290987
public static com.liferay.commerce.product.model.CProduct fetchCProductByUuidAndGroupId(
		String uuid, long groupId) {
		return getService().fetchCProductByUuidAndGroupId(uuid, groupId);
	}
923393
public static List<CProduct> findByUuid_C(String uuid, long companyId) {
		return getPersistence().findByUuid_C(uuid, companyId);
	}
440051
@Override
	public List<CommerceOrderItem> findByCProductId(long CProductId) {
		return findByCProductId(CProductId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
184100
@Override
	public List<CommerceOrder> getCommerceOrdersByUuidAndCompanyId(
		String uuid, long companyId) {
		return commerceOrderPersistence.findByUuid_C(uuid, companyId);
	}
524268
@Override
	public com.liferay.commerce.model.CommerceOrder fetchCommerceOrderByUuidAndGroupId(
		String uuid, long groupId) {
		return _commerceOrderLocalService.fetchCommerceOrderByUuidAndGroupId(uuid,
			groupId);
	}
806753
@Override
	public com.liferay.commerce.product.model.CProduct createCProduct(
		long CProductId) {
		return _cProductLocalService.createCProduct(CProductId);
	}
1067748
public static java.util.List<com.liferay.commerce.product.model.CPOptionValue> getCPOptionValuesByUuidAndCompanyId(
		String uuid, long companyId) {
		return getService().getCPOptionValuesByUuidAndCompanyId(uuid, companyId);
	}
834412
public static List<CPDefinition> findByUuid_C(String uuid, long companyId) {
		return getPersistence().findByUuid_C(uuid, companyId);
	}
1256792
public static java.util.List<com.liferay.commerce.wish.list.model.CommerceWishList> getCommerceWishListsByUuidAndCompanyId(
		String uuid, long companyId) {
		return getService()
				   .getCommerceWishListsByUuidAndCompanyId(uuid, companyId);
	}
789686
@Override
	public com.liferay.commerce.product.model.CPOption fetchCPOptionByUuidAndGroupId(
		String uuid, long groupId) {
		return _cpOptionLocalService.fetchCPOptionByUuidAndGroupId(uuid, groupId);
	}