Updates the commerce tier price entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

@param commerceTierPriceEntry the commerce tier price entry
@return the commerce tier price entry that was updated
962116
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceTierPriceEntry updateCommerceTierPriceEntry(
		CommerceTierPriceEntry commerceTierPriceEntry) {
		return commerceTierPriceEntryPersistence.update(commerceTierPriceEntry);
	}
677895
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceDiscountRel updateCommerceDiscountRel(
		CommerceDiscountRel commerceDiscountRel) {
		return commerceDiscountRelPersistence.update(commerceDiscountRel);
	}
162700
public static com.liferay.commerce.price.list.model.CommerceTierPriceEntry addCommerceTierPriceEntry(
		com.liferay.commerce.price.list.model.CommerceTierPriceEntry commerceTierPriceEntry) {
		return getService().addCommerceTierPriceEntry(commerceTierPriceEntry);
	}
532643
protected function updatePrice(ProductPrice $price, $matchedEntry)
    {
        if (isset($matchedEntry['minimumQuantity'])) {
            $price->getEntity()->setMinimumQuantity($matchedEntry['minimumQuantity']);
        }
        if (isset($matchedEntry['price'])) {
            $price->setPrice($matchedEntry['price']);
        }
        if (isset($matchedEntry['priceInfo'])) {
            $price->getEntity()->setPriceInfo($matchedEntry['priceInfo']);
        }
        if (isset($matchedEntry['currency'])) {
            $currency = $this->currencyRepository->find($matchedEntry['currency']['id']);
            if (!$currency) {
                throw new ProductDependencyNotFoundException(
                    self::$productPriceEntityName,
                    $matchedEntry['currency']['id']
                );
            }
            $price->getEntity()->setCurrency($currency);
        }

        return true;
    }
844891
@Override
	public com.liferay.commerce.discount.model.CommerceDiscountRel updateCommerceDiscountRel(
		com.liferay.commerce.discount.model.CommerceDiscountRel commerceDiscountRel) {
		return _commerceDiscountRelLocalService.updateCommerceDiscountRel(commerceDiscountRel);
	}
259145
public void setCommerceTierPriceEntryService(
		com.liferay.commerce.price.list.service.CommerceTierPriceEntryService commerceTierPriceEntryService) {
		this.commerceTierPriceEntryService = commerceTierPriceEntryService;
	}
373667
@Override
	public List<CommerceTierPriceEntry> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
1009162
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceOrderItem addCommerceOrderItem(
		CommerceOrderItem commerceOrderItem) {
		commerceOrderItem.setNew(true);

		return commerceOrderItemPersistence.update(commerceOrderItem);
	}
370795
public static List<CommerceTierPriceEntry> toModels(
		CommerceTierPriceEntrySoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

		List<CommerceTierPriceEntry> models = new ArrayList<CommerceTierPriceEntry>(soapModels.length);

		for (CommerceTierPriceEntrySoap soapModel : soapModels) {
			models.add(toModel(soapModel));
		}

		return models;
	}
207611
@Override
	@Transactional(enabled = false)
	public CommerceTierPriceEntry createCommerceTierPriceEntry(
		long commerceTierPriceEntryId) {
		return commerceTierPriceEntryPersistence.create(commerceTierPriceEntryId);
	}
664924
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceAccountUserRel updateCommerceAccountUserRel(
		CommerceAccountUserRel commerceAccountUserRel) {
		return commerceAccountUserRelPersistence.update(commerceAccountUserRel);
	}
373675
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceCurrency addCommerceCurrency(
		CommerceCurrency commerceCurrency) {
		commerceCurrency.setNew(true);

		return commerceCurrencyPersistence.update(commerceCurrency);
	}
421345
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceCurrency updateCommerceCurrency(
		CommerceCurrency commerceCurrency) {
		return commerceCurrencyPersistence.update(commerceCurrency);
	}
210283
public void setCommercePriceEntryLocalService(
		com.liferay.commerce.price.list.service.CommercePriceEntryLocalService commercePriceEntryLocalService) {
		this.commercePriceEntryLocalService = commercePriceEntryLocalService;
	}
1232453
public static com.liferay.commerce.currency.model.CommerceCurrency updateCommerceCurrency(
		com.liferay.commerce.currency.model.CommerceCurrency commerceCurrency) {
		return getService().updateCommerceCurrency(commerceCurrency);
	}
1314951
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceVirtualOrderItem addCommerceVirtualOrderItem(
		CommerceVirtualOrderItem commerceVirtualOrderItem) {
		commerceVirtualOrderItem.setNew(true);

		return commerceVirtualOrderItemPersistence.update(commerceVirtualOrderItem);
	}
973557
@Override
	public com.liferay.commerce.price.list.model.CommercePriceList updateCommercePriceList(
		com.liferay.commerce.price.list.model.CommercePriceList commercePriceList) {
		return _commercePriceListLocalService.updateCommercePriceList(commercePriceList);
	}