}
listing.setItemCommands(cmdDescriptor);
}
PersistentDescriptor persistents = new PersistentDescriptor();
PersistentFactory persistentManager = null;
try
{
persistentManager = (PersistentFactory) KeelTools.getService(PersistentFactory.ROLE);
if (persistentConfig.size() > 0)
{
Iterator persistentConfigIterator = persistentConfig.iterator();
Configuration aPersistentConfig = (Configuration) persistentConfigIterator.next();
Persistent persistent = persistentManager.create(aPersistentConfig.getAttribute("name"));
persistents.put(aPersistentConfig.getAttribute("id"), persistent);
for (; persistentConfigIterator.hasNext();)
{
aPersistentConfig = (Configuration) persistentConfigIterator.next();
persistent = persistentManager.create(aPersistentConfig.getAttribute("name"));
String join = aPersistentConfig.getAttribute("join", null);
if (join != null)
{
persistents.put(aPersistentConfig.getAttribute("id"), persistent).join(join,
aPersistentConfig.getAttribute("otherKey"),
aPersistentConfig.getAttribute("myKey"),
aPersistentConfig.getAttribute("condition", null));
}
else
{
persistents.put(aPersistentConfig.getAttribute("id"), persistent);
}
}
}
}
catch (ServiceException x)