Logger.info(MaintenanceUtil.class, "Unable to instaniate object");
Logger.debug(MaintenanceUtil.class,"Unable to instaniate object", e);
continue;
}
if(o instanceof Inode){
Inode i = (Inode)o;
String type = i.getType();
String tableName = ((com.dotcms.repackage.net.sf.hibernate.persister.AbstractEntityPersister)map.get(x)).getTableName();
MaintenanceUtil.cleanInodeTableData(tableName, type);
//FixAssetsProcessStatus.addAError();
}
}
}
it = map.entrySet().iterator();
while (it.hasNext()) {
Map.Entry pairs = (Map.Entry) it.next();
Class x = (Class) pairs.getKey();
if (!x.equals(Inode.class)){
Object o;
try {
o = x.newInstance();
} catch (Exception e) {
Logger.info(MaintenanceUtil.class,"Unable to instaniate object");
Logger.debug(MaintenanceUtil.class,"Unable to instaniate object", e);
continue;
}
if(o instanceof Inode){
Inode i = (Inode)o;
String type = i.getType();
String tableName = ((com.dotcms.repackage.net.sf.hibernate.persister.AbstractEntityPersister)map.get(x)).getTableName();
MaintenanceUtil.removeOphanedInodes(tableName, type);
}
}