Caches the commerce tier price entry in the entity cache if it is enabled.

@param commerceTierPriceEntry the commerce tier price entry
1044
@Override
	public void cacheResult(CommerceTierPriceEntry commerceTierPriceEntry) {
		entityCache.putResult(CommerceTierPriceEntryModelImpl.ENTITY_CACHE_ENABLED,
			CommerceTierPriceEntryImpl.class,
			commerceTierPriceEntry.getPrimaryKey(), commerceTierPriceEntry);

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

		finderCache.putResult(FINDER_PATH_FETCH_BY_C_M,
			new Object[] {
				commerceTierPriceEntry.getCommercePriceEntryId(),
				commerceTierPriceEntry.getMinQuantity()
			}, commerceTierPriceEntry);

		finderCache.putResult(FINDER_PATH_FETCH_BY_C_ERC,
			new Object[] {
				commerceTierPriceEntry.getCompanyId(),
				commerceTierPriceEntry.getExternalReferenceCode()
			}, commerceTierPriceEntry);

		commerceTierPriceEntry.resetOriginalValues();
	}
497845
@Override
	public List<CommerceTierPriceEntry> findByCommercePriceEntryId(
		long commercePriceEntryId) {
		return findByCommercePriceEntryId(commercePriceEntryId,
			QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
1269724
@Override
	public void cacheResult(List<CommercePriceList> commercePriceLists) {
		for (CommercePriceList commercePriceList : commercePriceLists) {
			if (entityCache.getResult(
						CommercePriceListModelImpl.ENTITY_CACHE_ENABLED,
						CommercePriceListImpl.class,
						commercePriceList.getPrimaryKey()) == null) {
				cacheResult(commercePriceList);
			}
			else {
				commercePriceList.resetOriginalValues();
			}
		}
	}
969144
@Override
	public void cacheResult(CommercePriceList commercePriceList) {
		entityCache.putResult(CommercePriceListModelImpl.ENTITY_CACHE_ENABLED,
			CommercePriceListImpl.class, commercePriceList.getPrimaryKey(),
			commercePriceList);

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

		finderCache.putResult(FINDER_PATH_FETCH_BY_PARENTCOMMERCEPRICELISTID,
			new Object[] { commercePriceList.getParentCommercePriceListId() },
			commercePriceList);

		finderCache.putResult(FINDER_PATH_FETCH_BY_C_ERC,
			new Object[] {
				commercePriceList.getCompanyId(),
				commercePriceList.getExternalReferenceCode()
			}, commercePriceList);

		commercePriceList.resetOriginalValues();
	}
1346687
@Override
	public void cacheResult(
		CommercePriceListUserSegmentEntryRel commercePriceListUserSegmentEntryRel) {
		entityCache.putResult(CommercePriceListUserSegmentEntryRelModelImpl.ENTITY_CACHE_ENABLED,
			CommercePriceListUserSegmentEntryRelImpl.class,
			commercePriceListUserSegmentEntryRel.getPrimaryKey(),
			commercePriceListUserSegmentEntryRel);

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

		finderCache.putResult(FINDER_PATH_FETCH_BY_C_C,
			new Object[] {
				commercePriceListUserSegmentEntryRel.getCommercePriceListId(),
				commercePriceListUserSegmentEntryRel.getCommerceUserSegmentEntryId()
			}, commercePriceListUserSegmentEntryRel);

		commercePriceListUserSegmentEntryRel.resetOriginalValues();
	}
708439
@Override
	public List<CommerceTierPriceEntry> findAll() {
		return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
570242
@Override
	public void cacheResult(CommerceWarehouse commerceWarehouse) {
		entityCache.putResult(CommerceWarehouseModelImpl.ENTITY_CACHE_ENABLED,
			CommerceWarehouseImpl.class, commerceWarehouse.getPrimaryKey(),
			commerceWarehouse);

		commerceWarehouse.resetOriginalValues();
	}
736783
@Override
	public void cacheResult(List<CommerceAccount> commerceAccounts) {
		for (CommerceAccount commerceAccount : commerceAccounts) {
			if (entityCache.getResult(
						CommerceAccountModelImpl.ENTITY_CACHE_ENABLED,
						CommerceAccountImpl.class,
						commerceAccount.getPrimaryKey()) == null) {
				cacheResult(commerceAccount);
			}
			else {
				commerceAccount.resetOriginalValues();
			}
		}
	}
530231
@Override
	public CommercePriceEntry create(long commercePriceEntryId) {
		CommercePriceEntry commercePriceEntry = new CommercePriceEntryImpl();

		commercePriceEntry.setNew(true);
		commercePriceEntry.setPrimaryKey(commercePriceEntryId);

		String uuid = PortalUUIDUtil.generate();

		commercePriceEntry.setUuid(uuid);

		commercePriceEntry.setCompanyId(companyProvider.getCompanyId());

		return commercePriceEntry;
	}
26568
@Override
	public void cacheResult(List<CommerceOrderNote> commerceOrderNotes) {
		for (CommerceOrderNote commerceOrderNote : commerceOrderNotes) {
			if (entityCache.getResult(
						CommerceOrderNoteModelImpl.ENTITY_CACHE_ENABLED,
						CommerceOrderNoteImpl.class,
						commerceOrderNote.getPrimaryKey()) == null) {
				cacheResult(commerceOrderNote);
			}
			else {
				commerceOrderNote.resetOriginalValues();
			}
		}
	}
634286
@Override
	public void cacheResult(
		CommerceNotificationQueueEntry commerceNotificationQueueEntry) {
		entityCache.putResult(CommerceNotificationQueueEntryModelImpl.ENTITY_CACHE_ENABLED,
			CommerceNotificationQueueEntryImpl.class,
			commerceNotificationQueueEntry.getPrimaryKey(),
			commerceNotificationQueueEntry);

		commerceNotificationQueueEntry.resetOriginalValues();
	}
370605
@Override
	public List<CommercePriceEntry> findByCommercePriceListId(
		long commercePriceListId) {
		return findByCommercePriceListId(commercePriceListId,
			QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
548297
@Override
	public void cacheResult(CommerceDiscount commerceDiscount) {
		entityCache.putResult(CommerceDiscountModelImpl.ENTITY_CACHE_ENABLED,
			CommerceDiscountImpl.class, commerceDiscount.getPrimaryKey(),
			commerceDiscount);

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

		commerceDiscount.resetOriginalValues();
	}
548147
@Override
	public void clearCache(CommerceSubscriptionEntry commerceSubscriptionEntry) {
		entityCache.removeResult(CommerceSubscriptionEntryModelImpl.ENTITY_CACHE_ENABLED,
			CommerceSubscriptionEntryImpl.class,
			commerceSubscriptionEntry.getPrimaryKey());

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

		clearUniqueFindersCache((CommerceSubscriptionEntryModelImpl)commerceSubscriptionEntry,
			true);
	}
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();
			}
		}
	}
18042
@Override
	public void clearCache(CommerceOrderItem commerceOrderItem) {
		entityCache.removeResult(CommerceOrderItemModelImpl.ENTITY_CACHE_ENABLED,
			CommerceOrderItemImpl.class, commerceOrderItem.getPrimaryKey());

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

		clearUniqueFindersCache((CommerceOrderItemModelImpl)commerceOrderItem,
			true);
	}
558476
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommercePriceEntry deleteCommercePriceEntry(
		CommercePriceEntry commercePriceEntry) throws PortalException {
		return commercePriceEntryPersistence.remove(commercePriceEntry);
	}