Package org.objectweb.speedo.pobjects.basic

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


  }

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


  }

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

  }

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

    }

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

    }

  public void testImbricatedPM() {
    logger.log(BasicLevel.DEBUG, "testImbricatedPM");
    BasicA ba = new BasicA();
    ba.writeF1("testImbricatedPM");
    ba.writeF2(2);
    PersistenceManager pm1 = pmf.getPersistenceManager();
    PersistenceManager pm2 = pmf.getPersistenceManager();
        Assert.assertTrue("Same persistence manager", pm1!=pm2);
    pm2.makePersistent(ba);
View Full Code Here

 
    public void testConcurrentReads() {
        logger.log(BasicLevel.INFO, "test concurrent reads");
        // setup
        BasicA ba = new BasicA();
        ba.writeF1("1");
        ba.writeF2(2);
        PersistenceManager pm = pmf.getPersistenceManager();
        pm.currentTransaction().begin();
        pm.makePersistent(ba);
        final Object id = pm.getObjectId(ba);
View Full Code Here

    public void testReadConcurrentWrite() {
        logger.log(BasicLevel.INFO, "test read concurrent write");
        // setup
        BasicA ba = new BasicA();
        ba.writeF1("1");
        ba.writeF2(2);
        PersistenceManager pm = pmf.getPersistenceManager();
        pm.currentTransaction().begin();
        pm.makePersistent(ba);
        final Object id = pm.getObjectId(ba);
View Full Code Here

    public void testWriteConcurrentRead() {
        logger.log(BasicLevel.INFO, "test write concurrent read");
        // setup
        BasicA ba = new BasicA();
        ba.writeF1("1");
        ba.writeF2(2);
        PersistenceManager pm = pmf.getPersistenceManager();
        pm.currentTransaction().begin();
        pm.makePersistent(ba);
        final Object id = pm.getObjectId(ba);
View Full Code Here

    public void testWriteConcurrentRead2() {
        logger.log(BasicLevel.INFO, "test write concurrent read 2");
        // setup
        BasicA ba = new BasicA();
        ba.writeF1("1");
        ba.writeF2(2);
        PersistenceManager pm = pmf.getPersistenceManager();
        pm.currentTransaction().begin();
        pm.makePersistent(ba);
        final Object id = pm.getObjectId(ba);
View Full Code Here

  public void testConcurrentWrites() {
        logger.log(BasicLevel.INFO, "test concurrent writes");
        // setup
    BasicA ba = new BasicA();
    ba.writeF1("1");
    ba.writeF2(2);
    PersistenceManager pm = pmf.getPersistenceManager();
    pm.currentTransaction().begin();
    pm.makePersistent(ba);
    final Object id = pm.getObjectId(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.