Examples of GeoRef


Examples of org.objectweb.speedo.pobjects.ref.GeoRef

            }
            pm.makePersistent(ml);
        }
       
        //creation of GeoRef
        GeoRef g1 = new GeoRef("g1");
        GeoRef g2 = new GeoRef("g2");
        GeoRef g3 = new GeoRef("g3");
        GeoRef g4 = new GeoRef("g4");
        g2.setPreviousRef(g2);
        g3.setPreviousRef(g4);
        g4.setPreviousRef(g1);
        pm.makePersistent(g1);
        pm.makePersistent(g2);
        pm.makePersistent(g3);
        pm.makePersistent(g4);
       
View Full Code Here

Examples of org.objectweb.speedo.pobjects.ref.GeoRef

        q.declareParameters("String referenceName");
        Collection results = (Collection) q.execute(nameToFind);
        assertTrue("Result is empty", !results.isEmpty());
        Iterator it = results.iterator();
        while (it.hasNext()) {
          GeoRef g = (GeoRef) it.next();
          assertTrue("Name of previous ref is not correct", nameToFind.equals(g.getPreviousRef().getName()));

    }
        q.closeAll();
        pm.close();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.