This commit is contained in:
Lucio Lelii 2008-12-01 16:52:34 +00:00
parent 13cc58d4fc
commit 6ae9334185
3 changed files with 4 additions and 0 deletions

View File

@ -166,6 +166,7 @@ public class IStoDBUtil {
GCUBECollectionQuery query= queryClient.getQuery(GCUBECollectionQuery.class);
query.addGenericCondition("$result/Profile/IsUserCollection[string(@value) eq 'true']");
collectionList= queryClient.execute(query, scope);
System.out.println("collections "+ collectionList.size());
}catch(Exception e ){logger.error("Error queryng IS"); throw new GCUBEFault(e); }
try{

View File

@ -192,6 +192,7 @@ public class ModelerService {
DBInterface.connect();
res= DBInterface.queryDB("select * from COLLECTION;");
ResultSet resRelated= DBInterface.queryDB("select collid from VRERELATEDCOLLECTION where VRERELATEDCOLLECTION.vreid='"+getResource().getId()+"';");
while(resRelated.next()){
relatedCollection.add(resRelated.getString(1));

View File

@ -35,6 +35,8 @@ public class XMLUtil {
temp.append("<ResultSet>");
try{
while (res.next()){
System.out.println("entered");
selectedString= relatedCollection.contains(res.getString("ID")) ? "true" : "false";
temp.append("<Collection><ID>");
temp.append(res.getString(1));