/** * Accessor for the groups. * @return The groups */ public Set getGroups() { return fp.getGroups(); }
/** * Accessor for the groups. * @return The groups */ public Set getGroups() { return fp.getGroups(); }
private Set<Integer> getFieldsToLoad(AbstractClassMetaData acmd, FetchPlan fetchPlan) { Set<Integer> memberPositions; if (fetchPlan != null && fetchPlan.getGroups().size() > 1) { memberPositions = new LinkedHashSet<Integer>(acmd.getMemberCount()); for (String group : fetchPlan.getGroups()) { if ("default".equals(group)) { for (int i : acmd.getDFGMemberPositions()) { memberPositions.add(i); } } else { FetchGroupMetaData fgmd = acmd.getFetchGroupMetaData(group); if (fgmd == null) { throw new NucleusDataStoreException("Fetch group metadata not found for group: " + group); } addFetchGroupMemberPositions(acmd, memberPositions, fgmd); } } } else { memberPositions = new LinkedHashSet<Integer>(acmd.getDFGMemberPositions().length); for (int pos : acmd.getDFGMemberPositions()) { memberPositions.add(pos); } } return memberPositions; }
private Set<Integer> getFieldsToLoad(AbstractClassMetaData acmd, FetchPlan fetchPlan) { Set<Integer> memberPositions; if (fetchPlan != null && fetchPlan.getGroups().size() > 1) { memberPositions = new LinkedHashSet<Integer>(acmd.getMemberCount()); for (String group : fetchPlan.getGroups()) { if ("default".equals(group)) { for (int i : acmd.getDFGMemberPositions()) { memberPositions.add(i); } } else { FetchGroupMetaData fgmd = acmd.getFetchGroupMetaData(group); if (fgmd == null) { throw new NucleusDataStoreException("Fetch group metadata not found for group: " + group); } addFetchGroupMemberPositions(acmd, memberPositions, fgmd); } } } else { memberPositions = new LinkedHashSet<Integer>(acmd.getDFGMemberPositions().length); for (int pos : acmd.getDFGMemberPositions()) { memberPositions.add(pos); } } return memberPositions; }