@Override
	public void cacheResult(List<CommerceDiscount> commerceDiscounts) {
		for (CommerceDiscount commerceDiscount : commerceDiscounts) {
			if (entityCache.getResult(
						CommerceDiscountModelImpl.ENTITY_CACHE_ENABLED,
						CommerceDiscountImpl.class,
						commerceDiscount.getPrimaryKey()) == null) {
				cacheResult(commerceDiscount);
			}
			else {
				commerceDiscount.resetOriginalValues();
			}
		}
	}
@ Override public void cacheResult ( List < CommerceDiscount > commerceDiscounts ) { for ( CommerceDiscount commerceDiscount : commerceDiscounts ) { if ( entityCache . getResult ( CommerceDiscountModelImpl . ENTITY_CACHE_ENABLED , CommerceDiscountImpl . class , commerceDiscount . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceDiscount ) ; } else { commerceDiscount . resetOriginalValues ( ) ; } } }
Caches the commerce discounts in the entity cache if it is enabled.

@param commerceDiscounts the commerce discounts