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

@param cpOptionValue the cp option value
@return the cp option value that was updated
199668
public static com.liferay.commerce.product.model.CPOptionValue updateCPOptionValue(
		com.liferay.commerce.product.model.CPOptionValue cpOptionValue) {
		return getService().updateCPOptionValue(cpOptionValue);
	}
1221182
public void setCPOptionValueService(
		com.liferay.commerce.product.service.CPOptionValueService cpOptionValueService) {
		this.cpOptionValueService = cpOptionValueService;
	}
1118189
public T set(final T newValue) {
        if(continuous!=null)
         continuous.offer(newValue);

        setDiscreteIfDiff(newValue);
        return newValue;
    }
840462
@Override
	public void setValue(String value, java.util.Locale locale) {
		_cpDefinitionSpecificationOptionValue.setValue(value, locale);
	}
561568
@Override
	public void cacheResult(List<CPSpecificationOption> cpSpecificationOptions) {
		for (CPSpecificationOption cpSpecificationOption : cpSpecificationOptions) {
			if (entityCache.getResult(
						CPSpecificationOptionModelImpl.ENTITY_CACHE_ENABLED,
						CPSpecificationOptionImpl.class,
						cpSpecificationOption.getPrimaryKey()) == null) {
				cacheResult(cpSpecificationOption);
			}
			else {
				cpSpecificationOption.resetOriginalValues();
			}
		}
	}
665506
@Override
    protected UpdateOption<CB> createPlainUpdateOption() {
        UpdateOption<CB> updateOption = new UpdateOption<CB>();
        updateOption.xtoBeCompatibleBatchUpdateDefaultEveryColumn();
        return updateOption;
    }
241080
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPOptionValue updateCPOptionValue(CPOptionValue cpOptionValue) {
		return cpOptionValuePersistence.update(cpOptionValue);
	}
946991
@Override
	public List<CPDefinitionOptionValueRel> findByCompanyId(long companyId) {
		return findByCompanyId(companyId, QueryUtil.ALL_POS, QueryUtil.ALL_POS,
			null);
	}
674177
@Override
	public void cacheResult(
		List<CPDefinitionSpecificationOptionValue> cpDefinitionSpecificationOptionValues) {
		for (CPDefinitionSpecificationOptionValue cpDefinitionSpecificationOptionValue : cpDefinitionSpecificationOptionValues) {
			if (entityCache.getResult(
						CPDefinitionSpecificationOptionValueModelImpl.ENTITY_CACHE_ENABLED,
						CPDefinitionSpecificationOptionValueImpl.class,
						cpDefinitionSpecificationOptionValue.getPrimaryKey()) == null) {
				cacheResult(cpDefinitionSpecificationOptionValue);
			}
			else {
				cpDefinitionSpecificationOptionValue.resetOriginalValues();
			}
		}
	}
485901
public static com.liferay.commerce.product.model.CPOptionCategory addCPOptionCategory(
		com.liferay.commerce.product.model.CPOptionCategory cpOptionCategory) {
		return getService().addCPOptionCategory(cpOptionCategory);
	}
401814
public static com.liferay.commerce.product.model.CPOption addCPOption(
		com.liferay.commerce.product.model.CPOption cpOption) {
		return getService().addCPOption(cpOption);
	}
732764
@Pure
	@SuppressWarnings("static-method")
	public Object getFirstOptionValue(String optionLabel) {
		final List<Object> options = getCommandLineOption(optionLabel);
		if (options == null || options.isEmpty()) {
			return null;
		}
		return options.get(0);
	}
1336436
@Override
	public com.liferay.commerce.product.model.CPOptionValue fetchCPOptionValueByUuidAndGroupId(
		String uuid, long groupId) {
		return _cpOptionValueLocalService.fetchCPOptionValueByUuidAndGroupId(uuid,
			groupId);
	}
194162
public void setCPDefinitionSpecificationOptionValueService(
		com.liferay.commerce.product.service.CPDefinitionSpecificationOptionValueService cpDefinitionSpecificationOptionValueService) {
		this.cpDefinitionSpecificationOptionValueService = cpDefinitionSpecificationOptionValueService;
	}
232253
@Override
	public CPOptionValue removeByC_K(long CPOptionId, String key)
		throws NoSuchCPOptionValueException {
		CPOptionValue cpOptionValue = findByC_K(CPOptionId, key);

		return remove(cpOptionValue);
	}
332680
@Override
	public void cacheResult(
		CPDefinitionSpecificationOptionValue cpDefinitionSpecificationOptionValue) {
		entityCache.putResult(CPDefinitionSpecificationOptionValueModelImpl.ENTITY_CACHE_ENABLED,
			CPDefinitionSpecificationOptionValueImpl.class,
			cpDefinitionSpecificationOptionValue.getPrimaryKey(),
			cpDefinitionSpecificationOptionValue);

		finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
			new Object[] {
				cpDefinitionSpecificationOptionValue.getUuid(),
				cpDefinitionSpecificationOptionValue.getGroupId()
			}, cpDefinitionSpecificationOptionValue);

		finderCache.putResult(FINDER_PATH_FETCH_BY_C_CSOVI,
			new Object[] {
				cpDefinitionSpecificationOptionValue.getCPDefinitionId(),
				cpDefinitionSpecificationOptionValue.getCPDefinitionSpecificationOptionValueId()
			}, cpDefinitionSpecificationOptionValue);

		cpDefinitionSpecificationOptionValue.resetOriginalValues();
	}
786021
@Override
	@Transactional(enabled = false)
	public CPOption createCPOption(long CPOptionId) {
		return cpOptionPersistence.create(CPOptionId);
	}