Adds the commerce address restriction to the database. Also notifies the appropriate model listeners.

@param commerceAddressRestriction the commerce address restriction
@return the commerce address restriction that was added
429852
@Override
	public com.liferay.commerce.model.CommerceAddressRestriction addCommerceAddressRestriction(
		com.liferay.commerce.model.CommerceAddressRestriction commerceAddressRestriction) {
		return _commerceAddressRestrictionLocalService.addCommerceAddressRestriction(commerceAddressRestriction);
	}
1036439
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceDiscount updateCommerceDiscount(
		CommerceDiscount commerceDiscount) {
		return commerceDiscountPersistence.update(commerceDiscount);
	}
888794
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommerceAddressRestriction deleteCommerceAddressRestriction(
		CommerceAddressRestriction commerceAddressRestriction) {
		return commerceAddressRestrictionPersistence.remove(commerceAddressRestriction);
	}
727039
public static CommerceAddressRestriction toModel(
		CommerceAddressRestrictionSoap soapModel) {
		if (soapModel == null) {
			return null;
		}

		CommerceAddressRestriction model = new CommerceAddressRestrictionImpl();

		model.setCommerceAddressRestrictionId(soapModel.getCommerceAddressRestrictionId());
		model.setGroupId(soapModel.getGroupId());
		model.setCompanyId(soapModel.getCompanyId());
		model.setUserId(soapModel.getUserId());
		model.setUserName(soapModel.getUserName());
		model.setCreateDate(soapModel.getCreateDate());
		model.setModifiedDate(soapModel.getModifiedDate());
		model.setClassNameId(soapModel.getClassNameId());
		model.setClassPK(soapModel.getClassPK());
		model.setCommerceCountryId(soapModel.getCommerceCountryId());

		return model;
	}
490136
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceAccount updateCommerceAccount(
		CommerceAccount commerceAccount) {
		return commerceAccountPersistence.update(commerceAccount);
	}
783778
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceRegion addCommerceRegion(CommerceRegion commerceRegion) {
		commerceRegion.setNew(true);

		return commerceRegionPersistence.update(commerceRegion);
	}
1203164
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceOrder addCommerceOrder(CommerceOrder commerceOrder) {
		commerceOrder.setNew(true);

		return commerceOrderPersistence.update(commerceOrder);
	}
69082
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceDiscountRel addCommerceDiscountRel(
		CommerceDiscountRel commerceDiscountRel) {
		commerceDiscountRel.setNew(true);

		return commerceDiscountRelPersistence.update(commerceDiscountRel);
	}
545433
public void setCommerceTaxFixedRateAddressRelLocalService(
		com.liferay.commerce.tax.engine.fixed.service.CommerceTaxFixedRateAddressRelLocalService commerceTaxFixedRateAddressRelLocalService) {
		this.commerceTaxFixedRateAddressRelLocalService = commerceTaxFixedRateAddressRelLocalService;
	}
151059
@Override
	public void removeByCommerceCountryId(long commerceCountryId) {
		for (CommerceAddressRestriction commerceAddressRestriction : findByCommerceCountryId(
				commerceCountryId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceAddressRestriction);
		}
	}
142398
@Override
	public com.liferay.commerce.model.CommerceAddress deleteCommerceAddress(
		com.liferay.commerce.model.CommerceAddress commerceAddress)
		throws com.liferay.portal.kernel.exception.PortalException {
		return _commerceAddressLocalService.deleteCommerceAddress(commerceAddress);
	}
101255
@Override
	public void cacheResult(
		List<CommerceAddressRestriction> commerceAddressRestrictions) {
		for (CommerceAddressRestriction commerceAddressRestriction : commerceAddressRestrictions) {
			if (entityCache.getResult(
						CommerceAddressRestrictionModelImpl.ENTITY_CACHE_ENABLED,
						CommerceAddressRestrictionImpl.class,
						commerceAddressRestriction.getPrimaryKey()) == null) {
				cacheResult(commerceAddressRestriction);
			}
			else {
				commerceAddressRestriction.resetOriginalValues();
			}
		}
	}
89199
@Override
	@Transactional(enabled = false)
	public CommerceDiscount createCommerceDiscount(long commerceDiscountId) {
		return commerceDiscountPersistence.create(commerceDiscountId);
	}
471702
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceAddress addCommerceAddress(CommerceAddress commerceAddress) {
		commerceAddress.setNew(true);

		return commerceAddressPersistence.update(commerceAddress);
	}
161815
@Override
	public void cacheResult(CommerceAddress commerceAddress) {
		entityCache.putResult(CommerceAddressModelImpl.ENTITY_CACHE_ENABLED,
			CommerceAddressImpl.class, commerceAddress.getPrimaryKey(),
			commerceAddress);

		commerceAddress.resetOriginalValues();
	}
197652
@Override
	public void removeByC_R(long commerceOrderId, boolean restricted) {
		for (CommerceOrderNote commerceOrderNote : findByC_R(commerceOrderId,
				restricted, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceOrderNote);
		}
	}
631925
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceTaxFixedRateAddressRel addCommerceTaxFixedRateAddressRel(
		CommerceTaxFixedRateAddressRel commerceTaxFixedRateAddressRel) {
		commerceTaxFixedRateAddressRel.setNew(true);

		return commerceTaxFixedRateAddressRelPersistence.update(commerceTaxFixedRateAddressRel);
	}