Creates a new c product with the primary key. Does not add the c product to the database.

@param CProductId the primary key for the new c product
@return the new c product
183565
public static com.liferay.commerce.product.model.CProduct createCProduct(
		long CProductId) {
		return getService().createCProduct(CProductId);
	}
1335954
@Override
	public com.liferay.commerce.product.model.CPDefinitionOptionRel createCPDefinitionOptionRel(
		long CPDefinitionOptionRelId) {
		return _cpDefinitionOptionRelLocalService.createCPDefinitionOptionRel(CPDefinitionOptionRelId);
	}
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();
	}
605615
public static com.liferay.commerce.model.CommerceOrderPayment createCommerceOrderPayment(
		long commerceOrderPaymentId) {
		return getService().createCommerceOrderPayment(commerceOrderPaymentId);
	}
294429
public static com.liferay.commerce.model.CPDAvailabilityEstimate createCPDAvailabilityEstimate(
		long CPDAvailabilityEstimateId) {
		return getService()
				   .createCPDAvailabilityEstimate(CPDAvailabilityEstimateId);
	}
1020830
@Override
	@Transactional(enabled = false)
	public CPFriendlyURLEntry createCPFriendlyURLEntry(
		long CPFriendlyURLEntryId) {
		return cpFriendlyURLEntryPersistence.create(CPFriendlyURLEntryId);
	}
267870
@Override
	public CommerceDiscount create(long commerceDiscountId) {
		CommerceDiscount commerceDiscount = new CommerceDiscountImpl();

		commerceDiscount.setNew(true);
		commerceDiscount.setPrimaryKey(commerceDiscountId);

		String uuid = PortalUUIDUtil.generate();

		commerceDiscount.setUuid(uuid);

		commerceDiscount.setCompanyId(companyProvider.getCompanyId());

		return commerceDiscount;
	}
708600
@Override
	public CPRuleAssetCategoryRel create(long CPRuleAssetCategoryRelId) {
		CPRuleAssetCategoryRel cpRuleAssetCategoryRel = new CPRuleAssetCategoryRelImpl();

		cpRuleAssetCategoryRel.setNew(true);
		cpRuleAssetCategoryRel.setPrimaryKey(CPRuleAssetCategoryRelId);

		cpRuleAssetCategoryRel.setCompanyId(companyProvider.getCompanyId());

		return cpRuleAssetCategoryRel;
	}
686694
@Override
	@Transactional(enabled = false)
	public CPSpecificationOption createCPSpecificationOption(
		long CPSpecificationOptionId) {
		return cpSpecificationOptionPersistence.create(CPSpecificationOptionId);
	}
163231
public Id<Attributes<T>> getOrCreateId()
   {
      List<Node> nodeList = childNode.get("id");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new IdImpl<Attributes<T>>(this, "id", childNode, nodeList.get(0));
      }
      return createId();
   }
1283668
public static List<CommerceWarehouseItem> findByCPI_CPIU(long CProductId,
		String CPInstanceUuid) {
		return getPersistence().findByCPI_CPIU(CProductId, CPInstanceUuid);
	}
888921
@Override
	public CPAttachmentFileEntry create(long CPAttachmentFileEntryId) {
		CPAttachmentFileEntry cpAttachmentFileEntry = new CPAttachmentFileEntryImpl();

		cpAttachmentFileEntry.setNew(true);
		cpAttachmentFileEntry.setPrimaryKey(CPAttachmentFileEntryId);

		String uuid = PortalUUIDUtil.generate();

		cpAttachmentFileEntry.setUuid(uuid);

		cpAttachmentFileEntry.setCompanyId(companyProvider.getCompanyId());

		return cpAttachmentFileEntry;
	}
1097195
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CProduct updateCProduct(CProduct cProduct) {
		return cProductPersistence.update(cProduct);
	}
298311
@Override
	public java.util.List<com.liferay.commerce.product.model.CProduct> getCProductsByUuidAndCompanyId(
		String uuid, long companyId) {
		return _cProductLocalService.getCProductsByUuidAndCompanyId(uuid,
			companyId);
	}
1183779
protected final PrcCsvColumnCreate<RS>
    createPutPrcCsvColumnCreate() throws Exception {
    PrcCsvColumnCreate<RS> proc = new PrcCsvColumnCreate<RS>();
    @SuppressWarnings("unchecked")
    PrcEntityCreate<RS, CsvColumn, Long> procDlg =
      (PrcEntityCreate<RS, CsvColumn, Long>)
        lazyGet(null, PrcEntityCreate.class.getSimpleName());
    proc.setPrcEntityCreate(procDlg);
    //assigning fully initialized object:
    this.processorsMap
      .put(PrcCsvColumnCreate.class.getSimpleName(), proc);
    return proc;
  }
763269
@Override
	public List<CPDefinition> findByC_S(long CProductId, int status) {
		return findByC_S(CProductId, status, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
984293
@Override
	public CPDisplayLayout create(long CPDisplayLayoutId) {
		CPDisplayLayout cpDisplayLayout = new CPDisplayLayoutImpl();

		cpDisplayLayout.setNew(true);
		cpDisplayLayout.setPrimaryKey(CPDisplayLayoutId);

		String uuid = PortalUUIDUtil.generate();

		cpDisplayLayout.setUuid(uuid);

		cpDisplayLayout.setCompanyId(companyProvider.getCompanyId());

		return cpDisplayLayout;
	}