Package org.objectweb.speedo.pobjects.basic

Examples of org.objectweb.speedo.pobjects.basic.BasicType


        pm.close();
    }

    public void testBasicType(long longval) {
        logger.log(BasicLevel.DEBUG, "testBasicType" + longval);
        BasicType bt = new BasicType();
      bt.assign(longval);
        PersistenceManager pm = pmf.getPersistenceManager();

        pm.currentTransaction().begin();
        pm.makePersistent(bt);
      Object oid = pm.getObjectId(bt);
        pm.currentTransaction().commit();

      bt = null;
      pmf.getDataStoreCache().evictAll();

        pm.currentTransaction().begin();
      bt = (BasicType) pm.getObjectById(oid, false);
      Assert.assertNotNull("bt is null", bt);
    bt.check(longval);
      pm.deletePersistent(bt);
      pm.currentTransaction().commit();
        pm.close();
    }
View Full Code Here

TOP

Related Classes of org.objectweb.speedo.pobjects.basic.BasicType

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.