Package javax.jdo

Examples of javax.jdo.PersistenceManager.makeTransactional()


    }

    public void testTransientTransactional() {
  PersistenceManager mgr = factory.getPersistenceManager();
  JDOEnhanced pc = (JDOEnhanced) XORM.newInstance(mgr, JDOEnhanced.class);
  mgr.makeTransactional(pc);
  assertNull("Object ID should be null",
       JDOHelper.getObjectId(pc));
  assertNotNull("PersistenceManager should not be null",
       JDOHelper.getPersistenceManager(pc));
View Full Code Here


    }

    public void testTransientTransactional() {
        PersistenceManager mgr = factory.getPersistenceManager();
        StringInterface pc = (StringInterface) XORM.newInstance(mgr, StringInterface.class);
        mgr.makeTransactional(pc);
        assertNull("Object ID should be null",
                   JDOHelper.getObjectId(pc));
        assertNotNull("PersistenceManager should not be null",
                      JDOHelper.getPersistenceManager(pc));
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.