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

@param cpOption the cp option
@return the cp option that was updated
330811
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPOption updateCPOption(CPOption cpOption) {
		return cpOptionPersistence.update(cpOption);
	}
68773
@Override
	public List<CPOptionValue> findByCPOptionId(long CPOptionId) {
		return findByCPOptionId(CPOptionId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
847255
public static com.liferay.commerce.product.model.CPInstance updateCPInstance(
		com.liferay.commerce.product.model.CPInstance cpInstance) {
		return getService().updateCPInstance(cpInstance);
	}
1291640
public void setCPDefinitionSpecificationOptionValueLocalService(
		com.liferay.commerce.product.service.CPDefinitionSpecificationOptionValueLocalService cpDefinitionSpecificationOptionValueLocalService) {
		this.cpDefinitionSpecificationOptionValueLocalService = cpDefinitionSpecificationOptionValueLocalService;
	}
938328
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPInstance addCPInstance(CPInstance cpInstance) {
		cpInstance.setNew(true);

		return cpInstancePersistence.update(cpInstance);
	}
1123633
public void addSelectOption(CmsSelectWidgetOption option) {

        if (m_selectOptions == null) {
            m_selectOptions = new ArrayList<CmsSelectWidgetOption>();
        }
        m_selectOptions.add(option);
    }
665506
@Override
    protected UpdateOption<CB> createPlainUpdateOption() {
        UpdateOption<CB> updateOption = new UpdateOption<CB>();
        updateOption.xtoBeCompatibleBatchUpdateDefaultEveryColumn();
        return updateOption;
    }
581837
public static com.liferay.commerce.product.model.CPDisplayLayout updateCPDisplayLayout(
		com.liferay.commerce.product.model.CPDisplayLayout cpDisplayLayout) {
		return getService().updateCPDisplayLayout(cpDisplayLayout);
	}
219215
@Override
	public com.liferay.commerce.product.model.CPFriendlyURLEntry updateCPFriendlyURLEntry(
		com.liferay.commerce.product.model.CPFriendlyURLEntry cpFriendlyURLEntry) {
		return _cpFriendlyURLEntryLocalService.updateCPFriendlyURLEntry(cpFriendlyURLEntry);
	}
573835
@Override
	public void clearCache(CPOption cpOption) {
		entityCache.removeResult(CPOptionModelImpl.ENTITY_CACHE_ENABLED,
			CPOptionImpl.class, cpOption.getPrimaryKey());

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

		clearUniqueFindersCache((CPOptionModelImpl)cpOption, true);
	}
1324574
public static com.liferay.commerce.product.model.CPSpecificationOption updateCPSpecificationOption(
		com.liferay.commerce.product.model.CPSpecificationOption cpSpecificationOption) {
		return getService().updateCPSpecificationOption(cpSpecificationOption);
	}
485901
public static com.liferay.commerce.product.model.CPOptionCategory addCPOptionCategory(
		com.liferay.commerce.product.model.CPOptionCategory cpOptionCategory) {
		return getService().addCPOptionCategory(cpOptionCategory);
	}
864838
public void setCPDefinitionOptionRelLocalService(
		com.liferay.commerce.product.service.CPDefinitionOptionRelLocalService cpDefinitionOptionRelLocalService) {
		this.cpDefinitionOptionRelLocalService = cpDefinitionOptionRelLocalService;
	}
1099134
@Override
	public com.liferay.commerce.product.model.CPOption updateCPOption(
		com.liferay.commerce.product.model.CPOption cpOption) {
		return _cpOptionLocalService.updateCPOption(cpOption);
	}
58754
public void setCPSpecificationOptionLocalService(
		com.liferay.commerce.product.service.CPSpecificationOptionLocalService cpSpecificationOptionLocalService) {
		this.cpSpecificationOptionLocalService = cpSpecificationOptionLocalService;
	}
180167
@Override
	public com.liferay.commerce.product.model.CPOptionValue addCPOptionValue(
		com.liferay.commerce.product.model.CPOptionValue cpOptionValue) {
		return _cpOptionValueLocalService.addCPOptionValue(cpOptionValue);
	}
1212929
@Override
	@Transactional(enabled = false)
	public CPOptionValue createCPOptionValue(long CPOptionValueId) {
		return cpOptionValuePersistence.create(CPOptionValueId);
	}