git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/vre-management/VREModeler@7383 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
2c310e999b
commit
47dc729cb0
|
@ -218,6 +218,8 @@ public class ModelerService {
|
||||||
*/
|
*/
|
||||||
public void setCollection(CollectionArray request) throws GCUBEFault{
|
public void setCollection(CollectionArray request) throws GCUBEFault{
|
||||||
try{
|
try{
|
||||||
|
logger.trace("method setCollection Called");
|
||||||
|
System.out.println("method setCollection Called");
|
||||||
DBInterface.connect();
|
DBInterface.connect();
|
||||||
DBInterface.ExecuteUpdate("DELETE FROM VRERELATEDCOLLECTION WHERE VRERELATEDCOLLECTION.vreid='"+getResource().getID()+"';");
|
DBInterface.ExecuteUpdate("DELETE FROM VRERELATEDCOLLECTION WHERE VRERELATEDCOLLECTION.vreid='"+getResource().getID()+"';");
|
||||||
|
|
||||||
|
@ -233,7 +235,10 @@ public class ModelerService {
|
||||||
}
|
}
|
||||||
DBInterface.connect();
|
DBInterface.connect();
|
||||||
DBInterface.InsertInto("VRERELATEDCOLLECTION", values);
|
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)+") ";
|
else preparedWhere=preparedWhere.substring(0, preparedWhere.length()-4)+") ";
|
||||||
|
|
||||||
totalMF = DBInterface.queryDB("select MDFORMAT.id, MDFORMAT.name, MDFORMAT.schemauri, MDFORMAT.language from MDFORMAT;");
|
totalMF = DBInterface.queryDB("select MDFORMAT.id, MDFORMAT.name, MDFORMAT.schemauri, MDFORMAT.language from MDFORMAT;");
|
||||||
|
|
Loading…
Reference in New Issue