Caches the commerce addresses in the entity cache if it is enabled.

@param commerceAddresses the commerce addresses
179849
@Override
	public void cacheResult(List<CommerceAddress> commerceAddresses) {
		for (CommerceAddress commerceAddress : commerceAddresses) {
			if (entityCache.getResult(
						CommerceAddressModelImpl.ENTITY_CACHE_ENABLED,
						CommerceAddressImpl.class,
						commerceAddress.getPrimaryKey()) == null) {
				cacheResult(commerceAddress);
			}
			else {
				commerceAddress.resetOriginalValues();
			}
		}
	}
256341
@Override
	public void cacheResult(CommerceDiscountRel commerceDiscountRel) {
		entityCache.putResult(CommerceDiscountRelModelImpl.ENTITY_CACHE_ENABLED,
			CommerceDiscountRelImpl.class, commerceDiscountRel.getPrimaryKey(),
			commerceDiscountRel);

		commerceDiscountRel.resetOriginalValues();
	}
1311294
@Override
	public void cacheResult(
		List<CommerceNotificationAttachment> commerceNotificationAttachments) {
		for (CommerceNotificationAttachment commerceNotificationAttachment : commerceNotificationAttachments) {
			if (entityCache.getResult(
						CommerceNotificationAttachmentModelImpl.ENTITY_CACHE_ENABLED,
						CommerceNotificationAttachmentImpl.class,
						commerceNotificationAttachment.getPrimaryKey()) == null) {
				cacheResult(commerceNotificationAttachment);
			}
			else {
				commerceNotificationAttachment.resetOriginalValues();
			}
		}
	}
261353
@Override
	public void cacheResult(
		List<CommerceShippingFixedOptionRel> commerceShippingFixedOptionRels) {
		for (CommerceShippingFixedOptionRel commerceShippingFixedOptionRel : commerceShippingFixedOptionRels) {
			if (entityCache.getResult(
						CommerceShippingFixedOptionRelModelImpl.ENTITY_CACHE_ENABLED,
						CommerceShippingFixedOptionRelImpl.class,
						commerceShippingFixedOptionRel.getPrimaryKey()) == null) {
				cacheResult(commerceShippingFixedOptionRel);
			}
			else {
				commerceShippingFixedOptionRel.resetOriginalValues();
			}
		}
	}
1355774
@Override
	public void cacheResult(
		List<CommerceShippingFixedOption> commerceShippingFixedOptions) {
		for (CommerceShippingFixedOption commerceShippingFixedOption : commerceShippingFixedOptions) {
			if (entityCache.getResult(
						CommerceShippingFixedOptionModelImpl.ENTITY_CACHE_ENABLED,
						CommerceShippingFixedOptionImpl.class,
						commerceShippingFixedOption.getPrimaryKey()) == null) {
				cacheResult(commerceShippingFixedOption);
			}
			else {
				commerceShippingFixedOption.resetOriginalValues();
			}
		}
	}
481382
@Override
	public void cacheResult(List<CommerceTaxFixedRate> commerceTaxFixedRates) {
		for (CommerceTaxFixedRate commerceTaxFixedRate : commerceTaxFixedRates) {
			if (entityCache.getResult(
						CommerceTaxFixedRateModelImpl.ENTITY_CACHE_ENABLED,
						CommerceTaxFixedRateImpl.class,
						commerceTaxFixedRate.getPrimaryKey()) == null) {
				cacheResult(commerceTaxFixedRate);
			}
			else {
				commerceTaxFixedRate.resetOriginalValues();
			}
		}
	}
744683
@Override
	public void clearCache(CommerceCurrency commerceCurrency) {
		entityCache.removeResult(CommerceCurrencyModelImpl.ENTITY_CACHE_ENABLED,
			CommerceCurrencyImpl.class, commerceCurrency.getPrimaryKey());

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

		clearUniqueFindersCache((CommerceCurrencyModelImpl)commerceCurrency,
			true);
	}
1062128
@Override
	public void cacheResult(
		List<CommerceAvailabilityEstimate> commerceAvailabilityEstimates) {
		for (CommerceAvailabilityEstimate commerceAvailabilityEstimate : commerceAvailabilityEstimates) {
			if (entityCache.getResult(
						CommerceAvailabilityEstimateModelImpl.ENTITY_CACHE_ENABLED,
						CommerceAvailabilityEstimateImpl.class,
						commerceAvailabilityEstimate.getPrimaryKey()) == null) {
				cacheResult(commerceAvailabilityEstimate);
			}
			else {
				commerceAvailabilityEstimate.resetOriginalValues();
			}
		}
	}
1117011
@Override
	public void cacheResult(CommerceCurrency commerceCurrency) {
		entityCache.putResult(CommerceCurrencyModelImpl.ENTITY_CACHE_ENABLED,
			CommerceCurrencyImpl.class, commerceCurrency.getPrimaryKey(),
			commerceCurrency);

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

		finderCache.putResult(FINDER_PATH_FETCH_BY_G_C,
			new Object[] {
				commerceCurrency.getGroupId(), commerceCurrency.getCode()
			}, commerceCurrency);

		commerceCurrency.resetOriginalValues();
	}
471702
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceAddress addCommerceAddress(CommerceAddress commerceAddress) {
		commerceAddress.setNew(true);

		return commerceAddressPersistence.update(commerceAddress);
	}
493410
public void setAddresses(java.util.Collection<Address> addresses) {
        if (addresses == null) {
            this.addresses = null;
            return;
        }

        this.addresses = new java.util.ArrayList<Address>(addresses);
    }
1090633
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceAddress updateCommerceAddress(
		CommerceAddress commerceAddress) {
		return commerceAddressPersistence.update(commerceAddress);
	}
769048
public void setToAddresses(java.util.Collection<String> toAddresses) {
        if (toAddresses == null) {
            this.toAddresses = null;
            return;
        }

        this.toAddresses = new java.util.ArrayList<String>(toAddresses);
    }
200050
public void setToAddresses(java.util.Collection<String> toAddresses) {
        if (toAddresses == null) {
            this.toAddresses = null;
            return;
        }

        this.toAddresses = new com.amazonaws.internal.SdkInternalList<String>(toAddresses);
    }
573521
@Override
	public void cacheResult(List<CommerceDiscountRel> commerceDiscountRels) {
		for (CommerceDiscountRel commerceDiscountRel : commerceDiscountRels) {
			if (entityCache.getResult(
						CommerceDiscountRelModelImpl.ENTITY_CACHE_ENABLED,
						CommerceDiscountRelImpl.class,
						commerceDiscountRel.getPrimaryKey()) == null) {
				cacheResult(commerceDiscountRel);
			}
			else {
				commerceDiscountRel.resetOriginalValues();
			}
		}
	}
715364
@Override
	public void cacheResult(List<CommerceOrder> commerceOrders) {
		for (CommerceOrder commerceOrder : commerceOrders) {
			if (entityCache.getResult(
						CommerceOrderModelImpl.ENTITY_CACHE_ENABLED,
						CommerceOrderImpl.class, commerceOrder.getPrimaryKey()) == null) {
				cacheResult(commerceOrder);
			}
			else {
				commerceOrder.resetOriginalValues();
			}
		}
	}
759681
@Override
	public void clearCache(CommerceAddress commerceAddress) {
		entityCache.removeResult(CommerceAddressModelImpl.ENTITY_CACHE_ENABLED,
			CommerceAddressImpl.class, commerceAddress.getPrimaryKey());

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