Updates the cp specification option in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

@param cpSpecificationOption the cp specification option
@return the cp specification option that was updated
973689
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPSpecificationOption updateCPSpecificationOption(
		CPSpecificationOption cpSpecificationOption) {
		return cpSpecificationOptionPersistence.update(cpSpecificationOption);
	}
439551
public void setCPOptionService(
		com.liferay.commerce.product.service.CPOptionService cpOptionService) {
		this.cpOptionService = cpOptionService;
	}
1274292
@Override
	public List<CPSpecificationOption> findAll() {
		return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
1285106
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPOption addCPOption(CPOption cpOption) {
		cpOption.setNew(true);

		return cpOptionPersistence.update(cpOption);
	}
672888
@Override
	public void clearCache() {
		entityCache.clearCache(CPSpecificationOptionImpl.class);

		finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
114836
@Override
	public List<CPDefinitionSpecificationOptionValue> findByCPOptionCategoryId(
		long CPOptionCategoryId) {
		return findByCPOptionCategoryId(CPOptionCategoryId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
377995
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPDefinitionInventory updateCPDefinitionInventory(
		CPDefinitionInventory cpDefinitionInventory) {
		return cpDefinitionInventoryPersistence.update(cpDefinitionInventory);
	}
579397
@Override
	public void removeByCPSpecificationOptionId(long CPSpecificationOptionId) {
		for (CPDefinitionSpecificationOptionValue cpDefinitionSpecificationOptionValue : findByCPSpecificationOptionId(
				CPSpecificationOptionId, QueryUtil.ALL_POS, QueryUtil.ALL_POS,
				null)) {
			remove(cpDefinitionSpecificationOptionValue);
		}
	}
79548
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPOptionValue addCPOptionValue(CPOptionValue cpOptionValue) {
		cpOptionValue.setNew(true);

		return cpOptionValuePersistence.update(cpOptionValue);
	}
88362
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPSpecificationOption addCPSpecificationOption(
		CPSpecificationOption cpSpecificationOption) {
		cpSpecificationOption.setNew(true);

		return cpSpecificationOptionPersistence.update(cpSpecificationOption);
	}
238609
public static com.liferay.commerce.model.CPDefinitionInventory updateCPDefinitionInventory(
		com.liferay.commerce.model.CPDefinitionInventory cpDefinitionInventory) {
		return getService().updateCPDefinitionInventory(cpDefinitionInventory);
	}
1212929
@Override
	@Transactional(enabled = false)
	public CPOptionValue createCPOptionValue(long CPOptionValueId) {
		return cpOptionValuePersistence.create(CPOptionValueId);
	}
1069390
@Override
	public com.liferay.commerce.product.model.CPDefinitionLink addCPDefinitionLink(
		com.liferay.commerce.product.model.CPDefinitionLink cpDefinitionLink) {
		return _cpDefinitionLinkLocalService.addCPDefinitionLink(cpDefinitionLink);
	}
743894
public static com.liferay.commerce.product.model.CPFriendlyURLEntry updateCPFriendlyURLEntry(
		com.liferay.commerce.product.model.CPFriendlyURLEntry cpFriendlyURLEntry) {
		return getService().updateCPFriendlyURLEntry(cpFriendlyURLEntry);
	}
686694
@Override
	@Transactional(enabled = false)
	public CPSpecificationOption createCPSpecificationOption(
		long CPSpecificationOptionId) {
		return cpSpecificationOptionPersistence.create(CPSpecificationOptionId);
	}
967450
@Override
	public void clearCache(
		CPDefinitionSpecificationOptionValue cpDefinitionSpecificationOptionValue) {
		entityCache.removeResult(CPDefinitionSpecificationOptionValueModelImpl.ENTITY_CACHE_ENABLED,
			CPDefinitionSpecificationOptionValueImpl.class,
			cpDefinitionSpecificationOptionValue.getPrimaryKey());

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

		clearUniqueFindersCache((CPDefinitionSpecificationOptionValueModelImpl)cpDefinitionSpecificationOptionValue,
			true);
	}
808899
@Override
	public com.liferay.commerce.product.model.CPSpecificationOption createCPSpecificationOption(
		long CPSpecificationOptionId) {
		return _cpSpecificationOptionLocalService.createCPSpecificationOption(CPSpecificationOptionId);
	}