This commit is contained in:
Lucio Lelii 2008-12-04 03:11:46 +00:00
parent 10c71d0d41
commit ca13d8a57f
1 changed files with 20 additions and 14 deletions

View File

@ -316,13 +316,15 @@ public class XMLUtil {
try {
ResultSet csRes=DBInterface.queryDB("select * from cs;");
if (csRes.next()){
boolean notEntered= true;
StringBuilder temp= new StringBuilder();
temp.append("<CS id=\"-1\" name=\"Workflows\" ");
//if(selectedFunct.contains(res.getInt(1))) temp+="selected=\"true\">";
//else
temp.append("selected=\"false\">");
temp.append("<CSDescription>This class of functions contains compound functions defined by aggregating existing functions in structured workflows as to deliver advanced features.</CSDescription>");
if (csRes.next()){
do{
temp.append("<child><CS id=\"");
temp.append(csRes.getString(1));
@ -336,9 +338,13 @@ public class XMLUtil {
temp.append("</CSDescription>");
temp.append("</CS></child>");
}while (csRes.next());
}
temp.append("</CS>");
toReturn.append(temp);
}
if notEntered
} catch (SQLException e) {
logger.error("VDLModelService: DB error retreiving CS");
e.printStackTrace();