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

@param commercePriceList the commerce price list
@return the commerce price list that was updated
973557
@Override
	public com.liferay.commerce.price.list.model.CommercePriceList updateCommercePriceList(
		com.liferay.commerce.price.list.model.CommercePriceList commercePriceList) {
		return _commercePriceListLocalService.updateCommercePriceList(commercePriceList);
	}
1120270
@Override
	public void clearCache() {
		entityCache.clearCache(CommercePriceListUserSegmentEntryRelImpl.class);

		finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
234306
public static com.liferay.commerce.price.list.model.CommercePriceEntry updateCommercePriceEntry(
		com.liferay.commerce.price.list.model.CommercePriceEntry commercePriceEntry) {
		return getService().updateCommercePriceEntry(commercePriceEntry);
	}
1250490
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommercePriceEntry updateCommercePriceEntry(
		CommercePriceEntry commercePriceEntry) {
		return commercePriceEntryPersistence.update(commercePriceEntry);
	}
1124367
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommercePriceList deleteCommercePriceList(
		CommercePriceList commercePriceList) throws PortalException {
		return commercePriceListPersistence.remove(commercePriceList);
	}
632076
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommercePriceList updateCommercePriceList(
		CommercePriceList commercePriceList) {
		return commercePriceListPersistence.update(commercePriceList);
	}
538215
@Override
	public void clearCache() {
		entityCache.clearCache(CommercePriceListAccountRelImpl.class);

		finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
1183378
public void setCommercePriceListAccountRelLocalService(
		com.liferay.commerce.price.list.service.CommercePriceListAccountRelLocalService commercePriceListAccountRelLocalService) {
		this.commercePriceListAccountRelLocalService = commercePriceListAccountRelLocalService;
	}
669364
@Override
	public com.liferay.commerce.price.list.model.CommercePriceEntry addCommercePriceEntry(
		com.liferay.commerce.price.list.model.CommercePriceEntry commercePriceEntry) {
		return _commercePriceEntryLocalService.addCommercePriceEntry(commercePriceEntry);
	}
899936
public void setCommercePriceListUserSegmentEntryRelService(
		com.liferay.commerce.price.list.service.CommercePriceListUserSegmentEntryRelService commercePriceListUserSegmentEntryRelService) {
		this.commercePriceListUserSegmentEntryRelService = commercePriceListUserSegmentEntryRelService;
	}
961981
@Override
	public com.liferay.commerce.model.CommerceOrderItem updateCommerceOrderItem(
		com.liferay.commerce.model.CommerceOrderItem commerceOrderItem) {
		return _commerceOrderItemLocalService.updateCommerceOrderItem(commerceOrderItem);
	}
1009162
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceOrderItem addCommerceOrderItem(
		CommerceOrderItem commerceOrderItem) {
		commerceOrderItem.setNew(true);

		return commerceOrderItemPersistence.update(commerceOrderItem);
	}
269727
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceOrder updateCommerceOrder(CommerceOrder commerceOrder) {
		return commerceOrderPersistence.update(commerceOrder);
	}
620226
public static com.liferay.commerce.model.CommerceOrder updateCommerceOrder(
		com.liferay.commerce.model.CommerceOrder commerceOrder) {
		return getService().updateCommerceOrder(commerceOrder);
	}
440414
public static com.liferay.commerce.model.CommerceWarehouse updateCommerceWarehouse(
		com.liferay.commerce.model.CommerceWarehouse commerceWarehouse) {
		return getService().updateCommerceWarehouse(commerceWarehouse);
	}
1328500
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceTierPriceEntry addCommerceTierPriceEntry(
		CommerceTierPriceEntry commerceTierPriceEntry) {
		commerceTierPriceEntry.setNew(true);

		return commerceTierPriceEntryPersistence.update(commerceTierPriceEntry);
	}
1347103
protected function setPriceListAttribute($arPriceList)
    {
        if (empty($arPriceList) || !is_array($arPriceList)) {
            return;
        }

        if (isset($arPriceList[0])) {
            $this->fSavedPrice = array_get($arPriceList[0], 'price');
            $this->fSavedOldPrice = array_get($arPriceList[0], 'old_price');
            unset($arPriceList[0]);
        }

        $this->arSavedPriceList = $arPriceList;
    }