This commit is contained in:
Lucio Lelii 2008-12-02 16:57:43 +00:00
parent 2c310e999b
commit 47dc729cb0
1 changed files with 7 additions and 2 deletions

View File

@ -218,6 +218,8 @@ public class ModelerService {
*/
public void setCollection(CollectionArray request) throws GCUBEFault{
try{
logger.trace("method setCollection Called");
System.out.println("method setCollection Called");
DBInterface.connect();
DBInterface.ExecuteUpdate("DELETE FROM VRERELATEDCOLLECTION WHERE VRERELATEDCOLLECTION.vreid='"+getResource().getID()+"';");
@ -233,7 +235,10 @@ public class ModelerService {
}
DBInterface.connect();
DBInterface.InsertInto("VRERELATEDCOLLECTION", values);
}catch(Exception e){throw new GCUBEFault(e);}
}catch(Exception e){
e.printStackTrace();
throw new GCUBEFault(e);
}
}
@ -274,7 +279,7 @@ public class ModelerService {
}
}
if(!enter) throw new RemoteException("no collection selected for this DL");
if(!enter) throw new GCUBEFault("no collection selected for this VRE");
else preparedWhere=preparedWhere.substring(0, preparedWhere.length()-4)+") ";
totalMF = DBInterface.queryDB("select MDFORMAT.id, MDFORMAT.name, MDFORMAT.schemauri, MDFORMAT.language from MDFORMAT;");