Returns all the cp measurement units where groupId = &#63; and type = &#63;.

@param groupId the group ID
@param type the type
@return the matching cp measurement units
514666
@Override
	public List<CPMeasurementUnit> findByG_T(long groupId, int type) {
		return findByG_T(groupId, type, QueryUtil.ALL_POS, QueryUtil.ALL_POS,
			null);
	}
735691
@Override
	public List<CPDefinitionOptionValueRel> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
1143665
@SuppressWarnings("unchecked")
	public <T> SortedGrouping<T> getSortedGrouping(int id) {
		return verifyType(id, sortedGroupings.get(id), SetType.SORTED_GROUPING);
	}
392155
public List<com.groupon.odo.proxylib.models.Method> getMethodsNotInGroup(int groupId) throws Exception {
        List<com.groupon.odo.proxylib.models.Method> allMethods = getAllMethods();
        List<com.groupon.odo.proxylib.models.Method> methodsNotInGroup = new ArrayList<com.groupon.odo.proxylib.models.Method>();
        List<com.groupon.odo.proxylib.models.Method> methodsInGroup = editService.getMethodsFromGroupId(groupId, null);

        for (int i = 0; i < allMethods.size(); i++) {
            boolean add = true;
            String methodName = allMethods.get(i).getMethodName();
            String className = allMethods.get(i).getClassName();

            for (int j = 0; j < methodsInGroup.size(); j++) {
                if ((methodName.equals(methodsInGroup.get(j).getMethodName())) &&
                    (className.equals(methodsInGroup.get(j).getClassName()))) {
                    add = false;
                }
            }
            if (add) {
                methodsNotInGroup.add(allMethods.get(i));
            }
        }
        return methodsNotInGroup;
    }
935377
@Override
	public CPMeasurementUnit removeByG_K_T(long groupId, String key, int type)
		throws NoSuchCPMeasurementUnitException {
		CPMeasurementUnit cpMeasurementUnit = findByG_K_T(groupId, key, type);

		return remove(cpMeasurementUnit);
	}
256283
@Override
	public List<CPOptionValue> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
587765
public String getObjectType(int groupID, int objectID) {
		if (groupID >= 0 && groupID < objectGroups.size()) {
			ObjectGroup grp = (ObjectGroup) objectGroups.get(groupID);
			if (objectID >= 0 && objectID < grp.objects.size()) {
				GroupObject object = (GroupObject) grp.objects.get(objectID);
				return object.type;
			}
		}
		return null;
	}
789686
@Override
	public com.liferay.commerce.product.model.CPOption fetchCPOptionByUuidAndGroupId(
		String uuid, long groupId) {
		return _cpOptionLocalService.fetchCPOptionByUuidAndGroupId(uuid, groupId);
	}
148682
protected <T> String getGroupType(T obj, String type, String name, Session session) throws CpoException {
    String retType = type;
    long objCount;

    if (CpoAdapter.PERSIST_GROUP.equals(retType)) {
      objCount = existsObject(name, obj, session, null);

      if (objCount == 0) {
        retType = CpoAdapter.CREATE_GROUP;
      } else if (objCount == 1) {
        retType = CpoAdapter.UPDATE_GROUP;
      } else {
        throw new CpoException("Persist can only UPDATE one record. Your EXISTS function returned 2 or more.");
      }
    }

    return retType;
  }
822765
@Override
	public List<CPInstance> findByCPDefinitionId(long CPDefinitionId) {
		return findByCPDefinitionId(CPDefinitionId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
966209
@Override
	public List<CProduct> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
1113220
@Override
	public List<CommerceCountry> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
878566
@Override
	public CPDefinition fetchCPDefinitionByUuidAndGroupId(String uuid,
		long groupId) {
		return cpDefinitionPersistence.fetchByUUID_G(uuid, groupId);
	}
1348938
@Override
	public List<CommerceCurrency> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
1290987
public static com.liferay.commerce.product.model.CProduct fetchCProductByUuidAndGroupId(
		String uuid, long groupId) {
		return getService().fetchCProductByUuidAndGroupId(uuid, groupId);
	}
595713
protected String getGroupId(String groupId) {
        return this.groupId == null || this.groupId.length() == 0
                ? groupId
                : this.groupId;
    }
410636
@Override
	public List<CPTaxCategory> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}