localObject()

From: Todd O'Bryan (toddobrya..ac.com)
Date: Sat Feb 25 2006 - 22:15:19 EST

  • Next message: Andrus Adamchik: "Re: localObject()"

    Can someone explain the second parameter of the new localObject()
    method? If I'm trying to get a committed object into the local
    DataContext, can the second parameter always be null, or should I
    have it be the object I'm bringing in.

    In short, do I have to do

    DataContext dc;
    ...
    MyObject myObj = (MyObject) dc.localObject
    (myObjInOtherContext.getObjectId(), myObjInOtherContext)

    all over the place, or is the ObjectId sufficient without the extra
    parameter?

    Thanks,
    Todd



    This archive was generated by hypermail 2.0.0 : Sat Feb 25 2006 - 22:15:31 EST