try
{
String concreteClass = (String) row.get(concreteClassFD.getColumnName());
if (concreteClass == null || concreteClass.trim().length() == 0)
{
throw new PersistenceBrokerException(
"ojbConcreteClass field returned null or 0-length string");
}
else
{
concreteClass = concreteClass.trim();
}
ClassDescriptor result = m_cld.getRepository().getDescriptorFor(concreteClass);
if (result == null)
{
LoggerFactory.getDefaultLogger().warn(
"[" + RowReaderDefaultImpl.class.getName()
+ "] Can not find class-descriptor for ojbConcreteClass " + concreteClass
+ ", use given class-descriptor '" + m_cld.getClassNameOfObject()
+ "' instead");
result = m_cld;
}
return result;
}
catch (PBFactoryException e)
{
throw new PersistenceBrokerException(e);
}
}
}