Package org.objectweb.speedo.pobjects.tck

Examples of org.objectweb.speedo.pobjects.tck.InstanceCallbackClass.addChild()


      logger.log(BasicLevel.ERROR, "Failed to find secondaryObj created in previous transaction using reference from primaryObj.");
      fail("CallingJdoPreclear: Failed to find secondaryObj created in previous transaction.");
    }
    touchFields(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("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("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.