Removes the commerce user segment entry where groupId = &#63; and key = &#63; from the database.

@param groupId the group ID
@param key the key
@return the commerce user segment entry that was removed
519731
public static CommerceUserSegmentEntry removeByG_K(long groupId, String key)
		throws com.liferay.commerce.user.segment.exception.NoSuchUserSegmentEntryException {
		return getPersistence().removeByG_K(groupId, key);
	}
856175
@Override
	public List<CommerceUserSegmentEntry> filterFindByGroupId(long groupId) {
		return filterFindByGroupId(groupId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
985405
@Override
	public void removeByG_U(long groupId, long userId) {
		for (CommerceSubscriptionEntry commerceSubscriptionEntry : findByG_U(
				groupId, userId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceSubscriptionEntry);
		}
	}
99188
public static CommerceCurrency removeByG_C(long groupId, String code)
		throws com.liferay.commerce.currency.exception.NoSuchCurrencyException {
		return getPersistence().removeByG_C(groupId, code);
	}
67698
@Override
	public void removeByG_B_A(long groupId, boolean billingAllowed,
		boolean active) {
		for (CommerceCountry commerceCountry : findByG_B_A(groupId,
				billingAllowed, active, QueryUtil.ALL_POS, QueryUtil.ALL_POS,
				null)) {
			remove(commerceCountry);
		}
	}
359245
@Override
	public void removeByG_A(long groupId, boolean active) {
		for (CommerceCurrency commerceCurrency : findByG_A(groupId, active,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceCurrency);
		}
	}
781078
public static CommercePriceListAccountRel removeByUUID_G(String uuid,
		long groupId)
		throws com.liferay.commerce.price.list.exception.NoSuchPriceListAccountRelException {
		return getPersistence().removeByUUID_G(uuid, groupId);
	}
755300
@Override
	public void removeByG_A(long groupId, boolean active) {
		for (CommerceCountry commerceCountry : findByG_A(groupId, active,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceCountry);
		}
	}
1106967
@Override
	public void removeByGroupId(long groupId) {
		for (CommerceAvailabilityEstimate commerceAvailabilityEstimate : findByGroupId(
				groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceAvailabilityEstimate);
		}
	}
487720
@Override
	public void removeByGroupId(long groupId) {
		for (CPTaxCategory cpTaxCategory : findByGroupId(groupId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpTaxCategory);
		}
	}
938368
@Override
	public CommerceCountry removeByG_Tw(long groupId, String twoLettersISOCode)
		throws NoSuchCountryException {
		CommerceCountry commerceCountry = findByG_Tw(groupId, twoLettersISOCode);

		return remove(commerceCountry);
	}
228894
public static CommerceCountry removeByG_Tw(long groupId,
		String twoLettersISOCode)
		throws com.liferay.commerce.exception.NoSuchCountryException {
		return getPersistence().removeByG_Tw(groupId, twoLettersISOCode);
	}
338761
@Override
	public List<CommerceSubscriptionEntry> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
216807
@Override
	public CommercePaymentMethodGroupRel removeByG_E(long groupId,
		String engineKey) throws NoSuchPaymentMethodGroupRelException {
		CommercePaymentMethodGroupRel commercePaymentMethodGroupRel = findByG_E(groupId,
				engineKey);

		return remove(commercePaymentMethodGroupRel);
	}
1356188
@Override
	public void removeByGroupId(long groupId) {
		for (CommerceDiscount commerceDiscount : findByGroupId(groupId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceDiscount);
		}
	}
989547
public void removeMember(JSConsumerKey key)
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "removeMember", key);

    LocalQPConsumerKey anyKey = null;

    // We lock the CD so other members are not added/removed while
    // we do this
    synchronized(consumerDispatcher.getDestination().getReadyConsumerPointLock())
    {
      if(singleMember != null)
      {
        if(!(key.isSpecific()))
          generalMemberCount--;

        if(singleMember == key)
          singleMember = null;
        else
        {
          // We must be the only member
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "removeMember", "SIErrorException");
            throw new SIErrorException(
              nls.getFormattedMessage(
                "INTERNAL_MESSAGING_ERROR_CWSIP0001",
                new Object[] {
                  "com.ibm.ws.sib.processor.impl.LocalQPConsumerKeyGroup",
                  "1:453:1.6.1.14" },
                null));
        }
      }
      else
      {
        if(key.isSpecific())
          specificKeyMembers.remove(key);
        else
        {
          generalKeyMembers.remove(key);
          generalMemberCount--;
          // As we've modified the list we need a new iterator
          generalMemberIndex = 0;
        }
      }

      memberCount--;

      // If that was the last member, we can remove this group
      if(memberCount == 0)
      {
        consumerDispatcher.removeKeyGroup(this);
        // Drive finished against the set of cursors
        
        if(classifyingMessages)
        {
          // Take the classifications read lock
          consumerSet.takeClassificationReadLock();
          
          int numFilters = consumerKeyFilter.length;    
          for(int i=0;i<numFilters;i++)
            consumerKeyFilter[i].detach(); 

          // Free the classifications read lock
          consumerSet.freeClassificationReadLock();          
        }
        else
        {
          consumerKeyFilter[0].detach();  
        }
      }
      // If all the remaining members are started we can start receiving
      // messages again (we couldn't have been before because the member
      // was in stopped state.
      else if(memberCount == startedCount)
      {
        if(generalMemberCount > 0)
          anyKey = generalKeyMembers.get(0);
        else
          anyKey = specificKeyMembers.get(0);
      }
    } // synchronized

    //  Start the member up
    if(anyKey!=null)
      anyKey.getConsumerPoint().checkForMessages();

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "removeMember");
  }
482284
@Override
	public void removeByG_U(long groupId, long userId) {
		for (CommerceWishList commerceWishList : findByG_U(groupId, userId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceWishList);
		}
	}