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

@param CPDefinitionLinkId the primary key for the new cp definition link
@return the new cp definition link
422226
public static com.liferay.commerce.product.model.CPDefinitionLink createCPDefinitionLink(
		long CPDefinitionLinkId) {
		return getService().createCPDefinitionLink(CPDefinitionLinkId);
	}
740407
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPDefinitionInventory addCPDefinitionInventory(
		CPDefinitionInventory cpDefinitionInventory) {
		cpDefinitionInventory.setNew(true);

		return cpDefinitionInventoryPersistence.update(cpDefinitionInventory);
	}
46414
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPDefinitionOptionValueRel addCPDefinitionOptionValueRel(
		CPDefinitionOptionValueRel cpDefinitionOptionValueRel) {
		cpDefinitionOptionValueRel.setNew(true);

		return cpDefinitionOptionValueRelPersistence.update(cpDefinitionOptionValueRel);
	}
863588
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPDefinition addCPDefinition(CPDefinition cpDefinition) {
		cpDefinition.setNew(true);

		return cpDefinitionPersistence.update(cpDefinition);
	}
977943
public static List<CPDefinitionLink> findByUuid_C(String uuid,
		long companyId) {
		return getPersistence().findByUuid_C(uuid, companyId);
	}
160051
protected function createLink(LinkDefinition $definition, LinkData $data): LinkObject
    {
        $reference = $data->getReference();

        $metadata = array_replace(
            $data->getMetadata(),
            $definition->getMetadata()
        );

        return new LinkObject($reference, $metadata);
    }
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);
	}
926698
@Override
	public List<CPDefinitionLink> findByCPD_T(long CPDefinitionId, String type) {
		return findByCPD_T(CPDefinitionId, type, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
1347958
public static java.util.List<com.liferay.commerce.product.model.CPDefinitionLink> getCPDefinitionLinksByUuidAndCompanyId(
		String uuid, long companyId) {
		return getService()
				   .getCPDefinitionLinksByUuidAndCompanyId(uuid, companyId);
	}
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;
	}
822765
@Override
	public List<CPInstance> findByCPDefinitionId(long CPDefinitionId) {
		return findByCPDefinitionId(CPDefinitionId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
878566
@Override
	public CPDefinition fetchCPDefinitionByUuidAndGroupId(String uuid,
		long groupId) {
		return cpDefinitionPersistence.fetchByUUID_G(uuid, groupId);
	}
808899
@Override
	public com.liferay.commerce.product.model.CPSpecificationOption createCPSpecificationOption(
		long CPSpecificationOptionId) {
		return _cpSpecificationOptionLocalService.createCPSpecificationOption(CPSpecificationOptionId);
	}
556493
@Override
	public void clearCache(CPDefinitionLink cpDefinitionLink) {
		entityCache.removeResult(CPDefinitionLinkModelImpl.ENTITY_CACHE_ENABLED,
			CPDefinitionLinkImpl.class, cpDefinitionLink.getPrimaryKey());

		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);

		clearUniqueFindersCache((CPDefinitionLinkModelImpl)cpDefinitionLink,
			true);
	}
516426
JcrNodeDefinition getNodeDefinition( NodeDefinitionId definitionId ) {
        if (definitionId == null) return null;
        return nodeTypes().getChildNodeDefinition(definitionId);
    }
178207
public static com.liferay.commerce.product.model.CPFriendlyURLEntry createCPFriendlyURLEntry(
		long CPFriendlyURLEntryId) {
		return getService().createCPFriendlyURLEntry(CPFriendlyURLEntryId);
	}
850560
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPDefinitionLink addCPDefinitionLink(
		CPDefinitionLink cpDefinitionLink) {
		cpDefinitionLink.setNew(true);

		return cpDefinitionLinkPersistence.update(cpDefinitionLink);
	}