Package org.apache.jdo.tck.pc.instancecallbacks

Examples of org.apache.jdo.tck.pc.instancecallbacks.InstanceCallbackClass.addChild()


            return;
        }
        pm.retrieve(secondaryObj);
       
        // primaryObj contains one child;  secondaryObj contains none
        primaryObj.addChild(secondaryObj); // primaryObj is now dirty
       
        cal.set(2005, 6, 28, 0, 0);
        Date stillLaterDate = cal.getTime();
        InstanceCallbackClass ternaryObj =
            new InstanceCallbackClass("ternaryObj", stillLaterDate, 3, 3.3,
View Full Code Here


        Date stillLaterDate = cal.getTime();
        InstanceCallbackClass ternaryObj =
            new InstanceCallbackClass("ternaryObj", stillLaterDate, 3, 3.3,
                    (short)-30, '3', null);
        pm.makePersistent(ternaryObj);
        ternaryObj.addChild(primaryObj);
        t.commit();
       
        // verify attributes in what was persistent-clean object--secondaryObj
        checkFieldValues(ASSERTION_FAILED, "jdoPreClear attribute access:  ",
                2"secondaryObj", createTime, 2.2, (short)-20, '2');
View Full Code Here

            fail(ASSERTION_FAILED, "Failed to find secondaryObj created in previous transaction using reference from primaryObj.");
            return;
        }
        pm.retrieve(secondaryObj);
       
        primaryObj.addChild(secondaryObj)// primaryObj contains one child;  secondaryObj contains none. primaryObj is now dirty
       
        cal.set(2005, 6, 28, 0, 0);
        Date stillLaterDate = cal.getTime();
        InstanceCallbackClass ternaryObj = new InstanceCallbackClass("ternaryObj", stillLaterDate, 3, 3.3, (short)-30, '3', null);
        pm.makePersistent(ternaryObj);
View Full Code Here

       
        cal.set(2005, 6, 28, 0, 0);
        Date stillLaterDate = cal.getTime();
        InstanceCallbackClass ternaryObj = new InstanceCallbackClass("ternaryObj", stillLaterDate, 3, 3.3, (short)-30, '3', null);
        pm.makePersistent(ternaryObj);
        ternaryObj.addChild(secondaryObj);
        ternaryObj.addChild(primaryObj);
        t.commit();
       
        // verify attributes in what was persistent-clean object--secondaryObj
        checkFieldValues(ASSERTION_FAILED, "jdoPreClear attribute access:  ", 2"secondaryObj", createTime, 2.2, (short)-20, '2');
View Full Code Here

        cal.set(2005, 6, 28, 0, 0);
        Date stillLaterDate = cal.getTime();
        InstanceCallbackClass ternaryObj = new InstanceCallbackClass("ternaryObj", stillLaterDate, 3, 3.3, (short)-30, '3', null);
        pm.makePersistent(ternaryObj);
        ternaryObj.addChild(secondaryObj);
        ternaryObj.addChild(primaryObj);
        t.commit();
       
        // verify attributes in what was persistent-clean object--secondaryObj
        checkFieldValues(ASSERTION_FAILED, "jdoPreClear attribute access:  ", 2"secondaryObj", createTime, 2.2, (short)-20, '2');
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.