Package org.apache.jdo.tck.pc.shoppingcart

Examples of org.apache.jdo.tck.pc.shoppingcart.Undetachable$Oid


    /** */
    public void testDetachUndetachable() {
        setupUndetachable();
        getPM().currentTransaction().begin();
        Undetachable instance = (Undetachable)pm.detachCopy(un1);
        if (JDOHelper.isPersistent((Object)instance)) {
            appendMessage("testDetachUndetachable: should be transient" +
                " but is not. The object state is: " +
                states[currentState((Object)instance)]
                + " " + getStateOfInstance((Object)instance));
View Full Code Here


        pm.currentTransaction().commit();
        failOnError();
    }

    protected void setupUndetachable() {
        un1 = new Undetachable();
       
        getPM().currentTransaction().begin();
        pm.makePersistent(un1);
        pm.currentTransaction().commit();
    }
View Full Code Here

        pm = getPM();
        pm.currentTransaction().begin();

        assertFalse(ASSERTION_FAILED + "null object is detached", JDOHelper.isDetached(null));
        assertFalse(ASSERTION_FAILED + "transient object is detached", JDOHelper.isDetached(new Cart("bob")));
        assertFalse(ASSERTION_FAILED + "object of class marked not detachabled is detached", JDOHelper.isDetached(new Undetachable()));

        pm.currentTransaction().commit();
    }
View Full Code Here

        pm = getPM();
        pm.currentTransaction().begin();

        assertFalse(ASSERTION_FAILED + "null object is detached", JDOHelper.isDetached(null));
        assertFalse(ASSERTION_FAILED + "transient object is detached", JDOHelper.isDetached(new Cart("bob")));
        assertFalse(ASSERTION_FAILED + "object of class marked not detachabled is detached", JDOHelper.isDetached(new Undetachable()));

        pm.currentTransaction().commit();
    }
View Full Code Here

TOP

Related Classes of org.apache.jdo.tck.pc.shoppingcart.Undetachable$Oid

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.