Examples of writeF1()


Examples of org.objectweb.speedo.pobjects.basic.BasicA.writeF1()

    logger.log(BasicLevel.WARN, "Creating " + NBOBJ + " objects ...");
    PersistenceManager pm = pmf.getPersistenceManager();
    pm.currentTransaction().begin();
    for(int i=0; i<NBOBJ; i++) {
      BasicA ba = new BasicA();
      ba.writeF1("testBigExtent_" + NBOBJ);
      pm.makePersistent(ba);
    }
    pm.currentTransaction().commit();
    pm.evictAll();
    pm.close();
View Full Code Here

Examples of org.objectweb.speedo.pobjects.basic.BasicA.writeF1()

  }

  public void testRollBackTxSamePM() {
    logger.log(BasicLevel.DEBUG, "testRollBackTxSamePM");
    BasicA ba = new BasicA();
    ba.writeF1("testRollBack1");
    ba.writeF2(2);
    PersistenceManager pm = pmf.getPersistenceManager();

        pm.currentTransaction().begin();
    pm.makePersistent(ba);
View Full Code Here

Examples of org.objectweb.speedo.pobjects.basic.BasicA.writeF1()

  }

    public void testRollBack2() {
        logger.log(BasicLevel.DEBUG, "testRollBack2");
        BasicA ba = new BasicA();
        ba.writeF1("testRollBack1");
        ba.writeF2(2);
        PersistenceManager pm = pmf.getPersistenceManager();

        pm.currentTransaction().begin();
        pm.makePersistent(ba);
View Full Code Here

Examples of org.objectweb.speedo.pobjects.basic.BasicA.writeF1()

    }

  public void testSerialization() {
    logger.log(BasicLevel.DEBUG, "testSerialization");
    BasicA ba = new BasicA();
    ba.writeF1("testSerialization");
    ba.writeF2(5);
    Locale l = new Locale("en"); //Examples: "en", "de_DE", "_GB", "en_US_WIN", "de__POSIX", "fr__MAC"
    ba.setLocale(l);
    PersistenceManager pm = pmf.getPersistenceManager();
View Full Code Here

Examples of org.objectweb.speedo.pobjects.basic.BasicA.writeF1()

    logger.log(BasicLevel.DEBUG, "testStaticFinder");
    ArrayList oids = new ArrayList();
    PersistenceManager pm = pmf.getPersistenceManager();
    for(int i =0; i<50; i++) {
      BasicA ba = new BasicA();
      ba.writeF1("testStaticFinder" + i);
      ba.writeF2(i);
      pm.makePersistent(ba);
      oids.add(pm.getObjectId(ba));
    }
    pm.close();
View Full Code Here

Examples of org.objectweb.speedo.pobjects.basic.BasicA.writeF1()

  }

  public void testNonNullField() {
    logger.log(BasicLevel.DEBUG, "testNonNullField");
    BasicA ba = new BasicA();
    ba.writeF1("testNonNullField");
    PersistenceManager pm = pmf.getPersistenceManager();
    pm.currentTransaction().begin();
    pm.makePersistent(ba);
    pm.currentTransaction().commit();
    pm.currentTransaction().begin();
View Full Code Here

Examples of org.objectweb.speedo.pobjects.basic.BasicA.writeF1()

    }
  }
  public void testRefresh() {
    logger.log(BasicLevel.DEBUG, "testRefresh");
    BasicA ba = new BasicA();
    ba.writeF1("testRefresh");
    ba.writeF2(2);
    PersistenceManager pm = pmf.getPersistenceManager();
    pm.currentTransaction().begin();
    pm.makePersistent(ba);
        pm.currentTransaction().commit();
View Full Code Here

Examples of org.objectweb.speedo.pobjects.basic.BasicA.writeF1()

  }

  public void testRefreshDirty() {
    logger.log(BasicLevel.DEBUG, "testRefreshDirty");
    BasicA ba = new BasicA();
    ba.writeF1("testRefreshDirty");
    ba.writeF2(2);
    PersistenceManager pm = pmf.getPersistenceManager();
    pm.currentTransaction().begin();
    pm.makePersistent(ba);
        pm.currentTransaction().commit();
View Full Code Here

Examples of org.objectweb.speedo.pobjects.basic.BasicA.writeF1()

      assertEquals("Bad content", expected, found);
      final Class superClass = JDOImplHelper.getInstance().getPersistenceCapableSuperclass(BasicA.class);
      assertNull("Bad super class name", superClass);
     
    BasicA ba = new BasicA();
    ba.writeF1("testPONEICompatible");
    ba.writeF2(23242);
    PersistenceManager pm = pmf.getPersistenceManager();
    pm.currentTransaction().begin();
    pm.makePersistent(ba);
        pm.currentTransaction().commit();
View Full Code Here

Examples of org.objectweb.speedo.pobjects.basic.BasicA.writeF1()

   
    //test delete and make an object persistent in the same transaction
    public void testDeleteRollback() {
       logger.log(BasicLevel.DEBUG, "testDeleteRollBack");
         BasicA ba = new BasicA();
         ba.writeF1("testDeleteRollBack");
         ba.writeF2(2);
         PersistenceManager pm = pmf.getPersistenceManager();

         pm.currentTransaction().begin();
         pm.makePersistent(ba);
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.