Returns the column qualifier for the consumer state column. The qualifier is formed by
{@code <groupId><instanceId>}.
@param groupId Group ID of the consumer
@param instanceId Instance ID of the consumer
@return A new byte[] which is the column qualifier.
507097
public static byte[] getConsumerStateColumn(long groupId, int instanceId) {
    byte[] column = new byte[Longs.BYTES + Ints.BYTES];
    Bytes.putLong(column, 0, groupId);
    Bytes.putInt(column, Longs.BYTES, instanceId);
    return column;
  }
25812
public static com.liferay.commerce.product.model.CPOption fetchCPOptionByUuidAndGroupId(
		String uuid, long groupId) {
		return getService().fetchCPOptionByUuidAndGroupId(uuid, groupId);
	}
595713
protected String getGroupId(String groupId) {
        return this.groupId == null || this.groupId.length() == 0
                ? groupId
                : this.groupId;
    }
276741
public String getGroupNameFromId(int groupId) {
        return (String) sqlService.getFromTable(Constants.GROUPS_GROUP_NAME, Constants.GENERIC_ID, groupId,
                                                Constants.DB_TABLE_GROUPS);
    }
886540
@Override
	public List<CommercePriceEntry> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
344007
public static com.liferay.commerce.product.model.CPInstance getCPInstanceByUuidAndGroupId(
		String uuid, long groupId)
		throws com.liferay.portal.kernel.exception.PortalException {
		return getService().getCPInstanceByUuidAndGroupId(uuid, groupId);
	}
957039
public void setInstanceGroupIds(java.util.Collection<String> instanceGroupIds) {
        if (instanceGroupIds == null) {
            this.instanceGroupIds = null;
            return;
        }

        this.instanceGroupIds = new com.amazonaws.internal.SdkInternalList<String>(instanceGroupIds);
    }
642818
@Override
	public CommerceOrder getCommerceOrderByUuidAndGroupId(String uuid,
		long groupId) throws PortalException {
		return commerceOrderPersistence.findByUUID_G(uuid, groupId);
	}
966209
@Override
	public List<CProduct> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
458442
@Override
	public com.liferay.commerce.product.model.CPDefinition getCPDefinitionByUuidAndGroupId(
		String uuid, long groupId)
		throws com.liferay.portal.kernel.exception.PortalException {
		return _cpDefinitionLocalService.getCPDefinitionByUuidAndGroupId(uuid,
			groupId);
	}
864826
public static InstanceContext parse( String s ) {

		String name = null, qualifier = null, instancePathOrComponentName = null;
		if( s != null ) {
			Matcher m = Pattern.compile( "(.*)::(.*)::(.*)" ).matcher( s );
			if( m.matches()) {
				name = m.group( 1 ).equals( "null" ) ? null : m.group( 1 );
				qualifier = m.group( 2 ).equals( "null" ) ? null : m.group( 2 );
				instancePathOrComponentName = m.group( 3 ).equals( "null" ) ? null : m.group( 3 );
			}
		}

		return new InstanceContext( name, qualifier, instancePathOrComponentName );
	}
648082
@Override
	public List<CPMeasurementUnit> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
865189
@Override
    public GroupDef group(String name) {
        return new GroupDefImpl(getDescriptorName(), model, model.getOrCreate("group@qualifier=" + name));
    }
1290987
public static com.liferay.commerce.product.model.CProduct fetchCProductByUuidAndGroupId(
		String uuid, long groupId) {
		return getService().fetchCProductByUuidAndGroupId(uuid, groupId);
	}
373667
@Override
	public List<CommerceTierPriceEntry> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
757306
@Override
	public List<CPOption> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
633202
public String getInstanceEndpoint(String entityName, String groupId, String id) {
		String edp = getCollectionEndpoint(entityName, groupId);

		if (id != null && !id.isEmpty()) {
			edp += "/" + id;
		}

		return edp;
	}