Removes all the commerce notification queue entries where commerceNotificationTemplateId = &#63; from the database.

@param commerceNotificationTemplateId the commerce notification template ID
186132
@Override
	public void removeByCommerceNotificationTemplateId(
		long commerceNotificationTemplateId) {
		for (CommerceNotificationQueueEntry commerceNotificationQueueEntry : findByCommerceNotificationTemplateId(
				commerceNotificationTemplateId, QueryUtil.ALL_POS,
				QueryUtil.ALL_POS, null)) {
			remove(commerceNotificationQueueEntry);
		}
	}
495071
public void cancel(final int id) {
        final BaseNotificationItem notification = remove(id);

        if (notification == null) {
            return;
        }

        notification.cancel();
    }
419264
@Override
	public void removeByCommerceWarehouseId(long commerceWarehouseId) {
		for (CommerceWarehouseItem commerceWarehouseItem : findByCommerceWarehouseId(
				commerceWarehouseId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceWarehouseItem);
		}
	}
84652
public function clear_notification( $queue_id, Notification $notification ) {

		$notifications = $this->get_notifications( $queue_id );

		$notification = array_search( $notification, $notifications );

		if ( false === $notification ) {
			return false;
		}

		unset( $notifications[ $notification ] );

		return $this->store_notifications( $queue_id, $notifications );
	}
1037077
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommerceNotificationQueueEntry deleteCommerceNotificationQueueEntry(
		CommerceNotificationQueueEntry commerceNotificationQueueEntry) {
		return commerceNotificationQueueEntryPersistence.remove(commerceNotificationQueueEntry);
	}
79394
public void setCommerceNotificationTemplateService(
		com.liferay.commerce.notification.service.CommerceNotificationTemplateService commerceNotificationTemplateService) {
		this.commerceNotificationTemplateService = commerceNotificationTemplateService;
	}
1356188
@Override
	public void removeByGroupId(long groupId) {
		for (CommerceDiscount commerceDiscount : findByGroupId(groupId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceDiscount);
		}
	}
185640
@Override
	public void cacheResult(
		List<CommerceNotificationTemplate> commerceNotificationTemplates) {
		for (CommerceNotificationTemplate commerceNotificationTemplate : commerceNotificationTemplates) {
			if (entityCache.getResult(
						CommerceNotificationTemplateModelImpl.ENTITY_CACHE_ENABLED,
						CommerceNotificationTemplateImpl.class,
						commerceNotificationTemplate.getPrimaryKey()) == null) {
				cacheResult(commerceNotificationTemplate);
			}
			else {
				commerceNotificationTemplate.resetOriginalValues();
			}
		}
	}
464299
public static void deleteCommerceNotificationQueueEntry(
		long commerceNotificationQueueEntryId)
		throws com.liferay.portal.kernel.exception.PortalException {
		getService()
			.deleteCommerceNotificationQueueEntry(commerceNotificationQueueEntryId);
	}
124958
@Override
	public void removeByBillingAddressId(long billingAddressId) {
		for (CommerceOrder commerceOrder : findByBillingAddressId(
				billingAddressId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceOrder);
		}
	}
764312
public void setCommerceNotificationTemplateUserSegmentRelLocalService(
		com.liferay.commerce.notification.service.CommerceNotificationTemplateUserSegmentRelLocalService commerceNotificationTemplateUserSegmentRelLocalService) {
		this.commerceNotificationTemplateUserSegmentRelLocalService = commerceNotificationTemplateUserSegmentRelLocalService;
	}
1278218
@Override
	public void removeByGroupId(long groupId) {
		for (CommerceUserSegmentEntry commerceUserSegmentEntry : findByGroupId(
				groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceUserSegmentEntry);
		}
	}
615071
@Override
	public void removeByGroupId(long groupId) {
		for (CommerceSubscriptionEntry commerceSubscriptionEntry : findByGroupId(
				groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceSubscriptionEntry);
		}
	}
855430
@Override
	public void removeByC_I(long commerceOrderId, long CPInstanceId) {
		for (CommerceOrderItem commerceOrderItem : findByC_I(commerceOrderId,
				CPInstanceId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceOrderItem);
		}
	}
659322
@Override
	public void removeByCommerceAccountUserId(long commerceAccountUserId) {
		for (CommerceAccountUserRel commerceAccountUserRel : findByCommerceAccountUserId(
				commerceAccountUserId, QueryUtil.ALL_POS, QueryUtil.ALL_POS,
				null)) {
			remove(commerceAccountUserRel);
		}
	}
37720
@Override
	public void clearCache(
		CommerceNotificationTemplate commerceNotificationTemplate) {
		entityCache.removeResult(CommerceNotificationTemplateModelImpl.ENTITY_CACHE_ENABLED,
			CommerceNotificationTemplateImpl.class,
			commerceNotificationTemplate.getPrimaryKey());

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

		clearUniqueFindersCache((CommerceNotificationTemplateModelImpl)commerceNotificationTemplate,
			true);
	}
169779
@Override
	public void removeByG_C_O(long groupId, long commerceAccountId,
		int orderStatus) {
		for (CommerceOrder commerceOrder : findByG_C_O(groupId,
				commerceAccountId, orderStatus, QueryUtil.ALL_POS,
				QueryUtil.ALL_POS, null)) {
			remove(commerceOrder);
		}
	}