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
779119
@Override
	public CPDefinitionInventory create(long CPDefinitionInventoryId) {
		CPDefinitionInventory cpDefinitionInventory = new CPDefinitionInventoryImpl();

		cpDefinitionInventory.setNew(true);
		cpDefinitionInventory.setPrimaryKey(CPDefinitionInventoryId);

		String uuid = PortalUUIDUtil.generate();

		cpDefinitionInventory.setUuid(uuid);

		cpDefinitionInventory.setCompanyId(companyProvider.getCompanyId());

		return cpDefinitionInventory;
	}
846754
public static com.liferay.commerce.model.CPDefinitionInventory addCPDefinitionInventory(
		com.liferay.commerce.model.CPDefinitionInventory cpDefinitionInventory) {
		return getService().addCPDefinitionInventory(cpDefinitionInventory);
	}
11924
@Override
	public com.liferay.commerce.discount.model.CommerceDiscountRel createCommerceDiscountRel(
		long commerceDiscountRelId) {
		return _commerceDiscountRelLocalService.createCommerceDiscountRel(commerceDiscountRelId);
	}
878566
@Override
	public CPDefinition fetchCPDefinitionByUuidAndGroupId(String uuid,
		long groupId) {
		return cpDefinitionPersistence.fetchByUUID_G(uuid, groupId);
	}
428460
public static com.liferay.commerce.product.type.virtual.model.CPDefinitionVirtualSetting addCPDefinitionVirtualSetting(
		com.liferay.commerce.product.type.virtual.model.CPDefinitionVirtualSetting cpDefinitionVirtualSetting) {
		return getService()
				   .addCPDefinitionVirtualSetting(cpDefinitionVirtualSetting);
	}
412291
@Override
	public void cacheResult(List<CPDefinitionInventory> cpDefinitionInventories) {
		for (CPDefinitionInventory cpDefinitionInventory : cpDefinitionInventories) {
			if (entityCache.getResult(
						CPDefinitionInventoryModelImpl.ENTITY_CACHE_ENABLED,
						CPDefinitionInventoryImpl.class,
						cpDefinitionInventory.getPrimaryKey()) == null) {
				cacheResult(cpDefinitionInventory);
			}
			else {
				cpDefinitionInventory.resetOriginalValues();
			}
		}
	}
548881
@Override
	public List<CPDefinitionOptionRel> findByCPDefinitionId(long CPDefinitionId) {
		return findByCPDefinitionId(CPDefinitionId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
226993
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPDefinition updateCPDefinition(CPDefinition cpDefinition) {
		return cpDefinitionPersistence.update(cpDefinition);
	}
1292879
@Override
	public com.liferay.commerce.discount.model.CommerceDiscount createCommerceDiscount(
		long commerceDiscountId) {
		return _commerceDiscountLocalService.createCommerceDiscount(commerceDiscountId);
	}
989635
public static com.liferay.commerce.discount.model.CommerceDiscount createCommerceDiscount(
		long commerceDiscountId) {
		return getService().createCommerceDiscount(commerceDiscountId);
	}
377995
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPDefinitionInventory updateCPDefinitionInventory(
		CPDefinitionInventory cpDefinitionInventory) {
		return cpDefinitionInventoryPersistence.update(cpDefinitionInventory);
	}
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;
	}
740407
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPDefinitionInventory addCPDefinitionInventory(
		CPDefinitionInventory cpDefinitionInventory) {
		cpDefinitionInventory.setNew(true);

		return cpDefinitionInventoryPersistence.update(cpDefinitionInventory);
	}
614353
@Indexable(type = IndexableType.DELETE)
	@Override
	public CPDefinitionInventory deleteCPDefinitionInventory(
		CPDefinitionInventory cpDefinitionInventory) {
		return cpDefinitionInventoryPersistence.remove(cpDefinitionInventory);
	}
387228
public static com.liferay.commerce.product.model.CPSpecificationOption createCPSpecificationOption(
		long CPSpecificationOptionId) {
		return getService().createCPSpecificationOption(CPSpecificationOptionId);
	}
238609
public static com.liferay.commerce.model.CPDefinitionInventory updateCPDefinitionInventory(
		com.liferay.commerce.model.CPDefinitionInventory cpDefinitionInventory) {
		return getService().updateCPDefinitionInventory(cpDefinitionInventory);
	}
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);
	}