Salome HOME
Id now is Long instead of Integer. First unit test is created. hibernate-3.5.jar...
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / som / Step.java
index ebac98cabfad70920e8b35b7cf60f34274388c0a..46e44661c895d7c27370071565c84ad450462127 100644 (file)
@@ -94,11 +94,11 @@ public class Step {
       return  Collections.unmodifiableList(contex);
     }
 
-    public Publication getDocument (int index) {
+    public Publication getDocument (long l) {
 //  ------------------------------------------
       for (Iterator<Publication> i=docums.iterator(); i.hasNext();) {
        Publication found = i.next();                          // In a given study step,
-       if (found.value().getIndex() == index) return found;   // there is only one publication of a given document
+       if (found.value().getIndex() == l) return found;   // there is only one publication of a given document
       }
       return null;
     }
@@ -142,11 +142,11 @@ public class Step {
       return step;
     }
 
-    public SimulationContext getSimulationContext (int index) {
+    public SimulationContext getSimulationContext (long l) {
 //  ---------------------------------------------------------
       for (Iterator<SimulationContext> i=owner.SimulationContextIterator(); i.hasNext();) {
         SimulationContext myctex = i.next();
-        if (myctex.getIndex() == index) return myctex;
+        if (myctex.getIndex() == l) return myctex;
       }
       return null;
     }