Update of /cvsroot/cobricks/cobricks2/src/org/cobricks/context
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv23013/cobricks/context
Modified Files:
ContextManagerImpl.java
Log Message:
Index: ContextManagerImpl.java
===================================================================
RCS file: /cvsroot/cobricks/cobricks2/src/org/cobricks/context/ContextManagerImpl.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- ContextManagerImpl.java 6 Oct 2006 13:03:06 -0000 1.9
+++ ContextManagerImpl.java 18 Oct 2006 16:47:49 -0000 1.10
@@ -130,12 +130,18 @@
}
+ /**
+ *
+ */
public Ontology getOntology()
{
return ontology;
}
-
+
+ /**
+ *
+ */
public List searchContexts(int sourcetype, int destinationtype,
String classname,
int sourceid, int destinationid, Map attrs)
@@ -149,11 +155,10 @@
String mname = (String)i.next();
ComponentManagerInterface cm =
componentDirectory.getManager(mname);
- Map attrs2 = new HashMap();
List tmpres =
cm.getContexts(sourcetype, destinationtype,
classname, sourceid, destinationid,
- attrs2);
+ attrs);
result.addAll(tmpres);
}
return result;
@@ -323,7 +328,8 @@
conditions.put("sourceid", new Integer(sourceid));
List fields = new ArrayList();
fields.add("cid");
- List sqlResults = dbAccess.sqlSelect("context", conditions, fields);
+ List sqlResults =
+ dbAccess.sqlSelect("context", conditions, fields);
Iterator i = sqlResults.listIterator();
while (i.hasNext()) {
Map map = (Map)i.next();
|