try {
connection = getConnectionHandler().getPoolConnection();
resultSet = getConnectionHandler().getInterfaceProvider().getMetadataInterface().loadInvalidObjects(getName(), connection);
while (resultSet != null && resultSet.next()) {
String objectName = resultSet.getString("OBJECT_NAME");
DBSchemaObject schemaObject = (DBSchemaObject) getChildObjectNoLoad(objectName);
if (schemaObject != null && schemaObject.getStatus().has(DBObjectStatus.VALID)) {
DBObjectStatusHolder objectStatus = schemaObject.getStatus();
boolean statusChanged;
if (schemaObject.getContentType().isBundle()) {
String objectType = resultSet.getString("OBJECT_TYPE");
statusChanged = objectType.contains("BODY") ?
objectStatus.set(DBContentType.CODE_BODY, DBObjectStatus.VALID, false) :
objectStatus.set(DBContentType.CODE_SPEC, DBObjectStatus.VALID, false);
}
else {
statusChanged = objectStatus.set(DBObjectStatus.VALID, false);
}
if (statusChanged) {
refreshNodes.add(schemaObject.getTreeParent());
}
}
}
resultSet = getConnectionHandler().getInterfaceProvider().getMetadataInterface().loadDebugObjects(getName(), connection);
while (resultSet != null && resultSet.next()) {
String objectName = resultSet.getString("OBJECT_NAME");
DBSchemaObject schemaObject = (DBSchemaObject) getChildObjectNoLoad(objectName);
if (schemaObject != null && schemaObject.getStatus().has(DBObjectStatus.DEBUG)) {
DBObjectStatusHolder objectStatus = schemaObject.getStatus();
boolean statusChanged;
if (schemaObject.getContentType().isBundle()) {
String objectType = resultSet.getString("OBJECT_TYPE");
statusChanged = objectType.contains("BODY") ?
objectStatus.set(DBContentType.CODE_BODY, DBObjectStatus.DEBUG, true) :
objectStatus.set(DBContentType.CODE_SPEC, DBObjectStatus.DEBUG, true);
}
else {
statusChanged = objectStatus.set(DBObjectStatus.DEBUG, true);
}
if (statusChanged) {
refreshNodes.add(schemaObject.getTreeParent());
}
}
}
} catch (SQLException e) {