945946947948949950951952
+ " PROJECT: " + projectName); } JDBCAccessorHelper.setStringValue(ps, 1, projectName); } }; return new CollectionRepositoryEnumeration( template.query(jdbcConnection, sql, rowProcessor,setter)); }
219220221222223224225
public void next(String pattern) { devicePatterns.add(new String[]{deviceName, pattern}); } }); } return new CollectionRepositoryEnumeration(devicePatterns); }
400401402403404405406
// This is how the old JDOM accessor worked. deviceFallbacks.add(new String[] { entry.getDeviceName(), null}); } } return new CollectionRepositoryEnumeration(deviceFallbacks); }
431432433434435436437
} } } } // else, we return an empty enumeration. return new CollectionRepositoryEnumeration(tacPairs); }
458459460461462463464
// ... plus the fake fallback policy name. // Note that this will have a bit of a strange ordering, but I don't // think we make any guarantees about ordering... names.add(DeviceRepositoryConstants.FALLBACK_POLICY_NAME); return new CollectionRepositoryEnumeration(names); }
481482483484485486487
if (DeviceRepositoryConstants.FALLBACK_POLICY_CATEGORY.equals( categoryName)) { names.add(DeviceRepositoryConstants.FALLBACK_POLICY_NAME); } return new CollectionRepositoryEnumeration(names); }
495496497498499500501
final List categoryNames = new LinkedList(); while (categoriesIter.hasNext()) { final Category category = (Category) categoriesIter.next(); categoryNames.add(category.getName()); } return new CollectionRepositoryEnumeration(categoryNames); }
663664665666667668669
if (!deviceToFallback.containsKey(fallbackName)) { orphaned.add(deviceName); } } return new CollectionRepositoryEnumeration(orphaned); }