Examples of invalidateObjectsWithGlobalIDs()


Examples of com.webobjects.eocontrol.EOEditingContext.invalidateObjectsWithGlobalIDs()

            EOEditingContext ec = object.editingContext();
            EOGlobalID globalID = ec.globalIDForObject(object);
            //invalidate the object
            if(globalID != null){
                NSArray globalIDs = new NSArray(globalID);
                ec.invalidateObjectsWithGlobalIDs(globalIDs);
            }
        }
    }

    /**
 
View Full Code Here

Examples of com.webobjects.eocontrol.EOEditingContext.invalidateObjectsWithGlobalIDs()

     */
    public static void refaultObject(EOEnterpriseObject eo) {
        if (eo != null && !eo.isFault()) {
            EOEditingContext ec = eo.editingContext();
            NSArray<EOGlobalID> gids = new NSArray<EOGlobalID>(ec.globalIDForObject(eo));
            ec.invalidateObjectsWithGlobalIDs(gids);
        }
    }

  /**
   * Sets the fetch time stamp of the eo's ec to now to ensure fresh data. and
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.