Examples of makeTransient()


Examples of javax.jdo.PersistenceManager.makeTransient()

        pm.currentTransaction().begin();
        pm.makePersistent(ba);
        pm.currentTransaction().commit();
        Object oid = pm.getObjectId(ba);
        try {
            pm.makeTransient(ba);
            pm.close();
            Assert.assertEquals("Bad f1 value", "testTransient", ba.readF1());
            assertEquals("Bad locale language value", l.getLanguage(), ba.getLocale().getLanguage());
            assertEquals("Bad locale country value", l.getCountry(), ba.getLocale().getCountry());
            assertEquals("Bad locale variant value", l.getVariant(), ba.getLocale().getVariant());
View Full Code Here

Examples of javax.jdo.PersistenceManager.makeTransient()

        pm.close();
        ba = null;
        pm = pmf.getPersistenceManager();
        try {
            ba = (BasicA) pm.getObjectById(oid, false);
            pm.makeTransient(ba);
            pm.close();
            Assert.assertEquals("Bad f1 value", "testTransient", ba.readF1());
            ba  = null;
        } catch (JDOException e) {
            logger.log(BasicLevel.ERROR, "testTransientNoTx", ExceptionHelper.getNested(e));
View Full Code Here

Examples of org.datanucleus.state.StateManager.makeTransient()

            }

            if (getApiAdapter().isPersistent(obj))
            {
                StateManager sm = findStateManager(obj);
                sm.makeTransient(state);
            }
        }
        finally
        {
            clr.unsetPrimary();
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.