This commit is contained in:
Lucio Lelii 2008-12-04 09:19:56 +00:00
parent 526ec9b66e
commit 6d17dca93b
2 changed files with 16 additions and 12 deletions

View File

@ -337,7 +337,10 @@ public class ModelerService {
}
DBInterface.InsertInto("VRERELATEDMETADATAFORMAT", values);
}catch(Exception e){throw new GCUBEFault(e);}
}catch(Exception e){
throw new GCUBEFault(e);
e.printStackTrace();
}
}

View File

@ -316,15 +316,15 @@ public class XMLUtil {
try {
ResultSet csRes=DBInterface.queryDB("select * from cs;");
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()){
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>");
do{
temp.append("<child><CS id=\"");
temp.append(csRes.getString(1));
@ -337,12 +337,13 @@ public class XMLUtil {
temp.append(csRes.getString(3));
temp.append("</CSDescription>");
temp.append("</CS></child>");
}while (csRes.next());
temp.append("</CS>");
toReturn.append(temp);
}
temp.append("</CS>");
toReturn.append(temp);
} catch (SQLException e) {
logger.error("VDLModelService: DB error retreiving CS");