Creates a new cp definition inventory with the primary key. Does not add the cp definition inventory to the database.

@param CPDefinitionInventoryId the primary key for the new cp definition inventory
@return the new cp definition inventory
545306
@Override
	public com.liferay.commerce.model.CPDefinitionInventory createCPDefinitionInventory(
		long CPDefinitionInventoryId) {
		return _cpDefinitionInventoryLocalService.createCPDefinitionInventory(CPDefinitionInventoryId);
	}
87795
private String createKeyDefinition(final List<FieldDefinition> keyDefinitionList) {
        final StringBuilder sql = new StringBuilder();

        sql.append(" PRIMARY KEY");
        boolean isFirst = true;

        for (FieldDefinition fieldDefinition : keyDefinitionList) {
            if (isFirst) {
                sql.append("(");
                isFirst = false;
            } else {
                sql.append(",");
            }

            sql.append(fieldDefinition.getName());
        }

        sql.append(")");
        return sql.toString();
    }
472680
@Override
	public List<CPDefinition> getCPDefinitionsByUuidAndCompanyId(String uuid,
		long companyId) {
		return cpDefinitionPersistence.findByUuid_C(uuid, companyId);
	}
861951
public static com.liferay.commerce.product.model.CPDefinitionOptionRel createCPDefinitionOptionRel(
		long CPDefinitionOptionRelId) {
		return getService().createCPDefinitionOptionRel(CPDefinitionOptionRelId);
	}
930061
@Override
	public CPDefinitionInventory removeByCPDefinitionId(long CPDefinitionId)
		throws NoSuchCPDefinitionInventoryException {
		CPDefinitionInventory cpDefinitionInventory = findByCPDefinitionId(CPDefinitionId);

		return remove(cpDefinitionInventory);
	}
68249
public static com.liferay.commerce.product.model.CPInstance createCPInstance(
		long CPInstanceId) {
		return getService().createCPInstance(CPInstanceId);
	}
1305335
public static com.liferay.commerce.product.model.CPDefinition fetchCPDefinitionByUuidAndGroupId(
		String uuid, long groupId) {
		return getService().fetchCPDefinitionByUuidAndGroupId(uuid, groupId);
	}
458442
@Override
	public com.liferay.commerce.product.model.CPDefinition getCPDefinitionByUuidAndGroupId(
		String uuid, long groupId)
		throws com.liferay.portal.kernel.exception.PortalException {
		return _cpDefinitionLocalService.getCPDefinitionByUuidAndGroupId(uuid,
			groupId);
	}
834406
@Override
	public CommerceOrderItem create(long commerceOrderItemId) {
		CommerceOrderItem commerceOrderItem = new CommerceOrderItemImpl();

		commerceOrderItem.setNew(true);
		commerceOrderItem.setPrimaryKey(commerceOrderItemId);

		commerceOrderItem.setCompanyId(companyProvider.getCompanyId());

		return commerceOrderItem;
	}
192805
@Override
	public com.liferay.commerce.product.model.CPDisplayLayout createCPDisplayLayout(
		long CPDisplayLayoutId) {
		return _cpDisplayLayoutLocalService.createCPDisplayLayout(CPDisplayLayoutId);
	}
313841
@Override
	public com.liferay.commerce.product.model.CPFriendlyURLEntry createCPFriendlyURLEntry(
		long CPFriendlyURLEntryId) {
		return _cpFriendlyURLEntryLocalService.createCPFriendlyURLEntry(CPFriendlyURLEntryId);
	}
1233631
public static com.liferay.commerce.product.type.grouped.model.CPDefinitionGroupedEntry addCPDefinitionGroupedEntry(
		com.liferay.commerce.product.type.grouped.model.CPDefinitionGroupedEntry cpDefinitionGroupedEntry) {
		return getService().addCPDefinitionGroupedEntry(cpDefinitionGroupedEntry);
	}
1074651
@Override
	public CProduct create(long CProductId) {
		CProduct cProduct = new CProductImpl();

		cProduct.setNew(true);
		cProduct.setPrimaryKey(CProductId);

		String uuid = PortalUUIDUtil.generate();

		cProduct.setUuid(uuid);

		cProduct.setCompanyId(companyProvider.getCompanyId());

		return cProduct;
	}
494217
@Override
	public CPDefinition create(long CPDefinitionId) {
		CPDefinition cpDefinition = new CPDefinitionImpl();

		cpDefinition.setNew(true);
		cpDefinition.setPrimaryKey(CPDefinitionId);

		String uuid = PortalUUIDUtil.generate();

		cpDefinition.setUuid(uuid);

		cpDefinition.setCompanyId(companyProvider.getCompanyId());

		return cpDefinition;
	}
1292879
@Override
	public com.liferay.commerce.discount.model.CommerceDiscount createCommerceDiscount(
		long commerceDiscountId) {
		return _commerceDiscountLocalService.createCommerceDiscount(commerceDiscountId);
	}
1335954
@Override
	public com.liferay.commerce.product.model.CPDefinitionOptionRel createCPDefinitionOptionRel(
		long CPDefinitionOptionRelId) {
		return _cpDefinitionOptionRelLocalService.createCPDefinitionOptionRel(CPDefinitionOptionRelId);
	}
953862
public static com.liferay.commerce.model.CPDefinitionInventory deleteCPDefinitionInventory(
		com.liferay.commerce.model.CPDefinitionInventory cpDefinitionInventory) {
		return getService().deleteCPDefinitionInventory(cpDefinitionInventory);
	}