This commit is contained in:
Lucio Lelii 2009-10-01 15:33:18 +00:00
parent ed9a0d9210
commit 06e581ed6a
3 changed files with 2 additions and 6 deletions

View File

@ -130,10 +130,7 @@ public class ModelFactoryService{
try{
ModelerContext pctx= ModelerContext.getPortTypeContext();
ModelerResource mr= (ModelerResource) pctx.getWSHome().find(pctx.makeKey(id));
logger.trace("Deleting resource with id "+id);
System.out.println("Deleting resource "+id);
//destroy the resource;
DBInterface.ExecuteUpdate("DELETE FROM VRE where VRE.id='"+id+"';");
pctx.getWSHome().remove(pctx.makeKey(id));

View File

@ -420,7 +420,7 @@ public class ModelerService {
* @throws RemoteException -
*/
public void setFunctionality(FunctionalityIDArray request) throws GCUBEFault {
System.out.println("Set Functionality called");
logger.trace("Set Functionality called");
try{
DBInterface.ExecuteUpdate("DELETE FROM VRERELATEDFUNCT WHERE VRERELATEDFUNCT.vreid='"+getResource().getId()+"';");
@ -442,7 +442,7 @@ public class ModelerService {
}
DBInterface.insertInto("VRERELATEDFUNCT", values.toArray(new String[0][0]));
}else System.out.println("requestFunciotnality is null");
}else logger.warn("requestFunciotnality is null");
if (request.getCsIDElement()!=null)
{

View File

@ -180,7 +180,6 @@ public class XMLUtil {
//setting the native MDF
for(ModelerCollection key: nativeMetadataFormat.keySet()){
System.out.println(key.getId());
Element collectionEl= addElements(doc, "Collection", new Element[]{
createTextElement(doc,"CollectionID" , key.getId()),
createTextElement(doc,"Name" , key.getName()),