Package org.objectweb.speedo.pobjects.collection

Examples of org.objectweb.speedo.pobjects.collection.BMMB


        AMMB a = new AMMB(ida);
        ArrayList bs = new ArrayList();
        ArrayList as = new ArrayList(1);
        as.add(a);
        for(int i=0; i<5; i++) {
            BMMB b = new BMMB(ida + i);
            b.setAs(as);
            bs.add(b);
        }
        a.setBs(bs);
        PersistenceManager pm = pmf.getPersistenceManager();
        pm.makePersistent(a);
View Full Code Here


        Ref2Ref2AMMB[] r2 = new Ref2Ref2AMMB[NB_XMMB];
        AMMB[] as = new AMMB[NB_XMMB];
        BMMB[] bs = new BMMB[NB_XMMB];
        for(int i=0; i<as.length; i++) {
            as[i] = new AMMB(i);
            bs[i] = new BMMB(i);
            r1[i] = new Ref2AMMB(i*10, as[i]);
            r2[i] = new Ref2Ref2AMMB(i*100, r1[i]);
        }
        Collection as0 = new ArrayList(2);
        as0.add(bs[0]);
View Full Code Here

    public void test1() {
        AMMB[] as = new AMMB[3];
        BMMB[] bs = new BMMB[3];
        for(int i=0; i<as.length; i++) {
            as[i] = new AMMB(i);
            bs[i] = new BMMB(i);
        }
        Collection as0 = new ArrayList(2);
        as0.add(bs[0]);
        as0.add(bs[1]);
        as[0].setBs(as0);
View Full Code Here

        Assert.assertNotNull("null AMMB object", a);
        Collection bs = a.getBs();
        Assert.assertNotNull("null collection of BMMB", bs);
        Iterator it = bs.iterator();
        while(it.hasNext()) {
            BMMB b = (BMMB) it.next();
            Assert.assertNotNull("null element collection of BMMB", b);
            logger.log(BasicLevel.DEBUG, "idb: " + b.getIdb());
            it.remove();
            b.getAs().remove(a);
            pm.deletePersistent(b);
        }
        pm.deletePersistent(a);
        pm.currentTransaction().commit();
        pm.close();
View Full Code Here

            Iterator iter = col.iterator();
            if (!iter.hasNext()) {
                fail("Test not initialized: impossible to load BMMB(" + idb
                    + "): not found");
            }
            BMMB bmmb = (BMMB) iter.next();
            query.close(col);

//            loggerFactory.getLogger("org.objectweb.speedo.rt.query").setIntLevel(BasicLevel.DEBUG);
//            loggerFactory.getLogger("org.objectweb.medor").setIntLevel(BasicLevel.DEBUG);
      query = pm.newQuery(AMMB.class);
View Full Code Here

        Iterator iter = col.iterator();
        if (!iter.hasNext()) {
          fail("Test not initialized: impossible to load BMMB(" + idb
              + "): not found");
        }
        BMMB bmmb1 = (BMMB) iter.next();
        BMMB bmmb2 = (BMMB) iter.next();
        query.close(col);

//            loggerFactory.getLogger("org.objectweb.speedo.rt.query").setIntLevel(BasicLevel.DEBUG);
//            loggerFactory.getLogger("org.objectweb.medor").setIntLevel(BasicLevel.DEBUG);
        query = pm.newQuery(AMMB.class);
View Full Code Here

                            + clazz.getName());
                } else if (o instanceof AMMB) {
                    AMMB a = (AMMB) o;
                    found.add(new Long(a.getIda()));
                } else if (o instanceof BMMB) {
                    BMMB b = (BMMB) o;
                    found.add(new Long(b.getIdb()));
                } else {
                    fail("the test does not manage the class " + o.getClass().getName());
                }
            }
            try {
View Full Code Here

TOP

Related Classes of org.objectweb.speedo.pobjects.collection.BMMB

Copyright © 2018 www.massapicom. 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.