Package com.webobjects.eocontrol

Examples of com.webobjects.eocontrol.EOEnterpriseObject.storedValueForKey()


         NSMutableArray objectsWithUnfaultedRelationships = new NSMutableArray();
         String relationshipName = relationship.name();
         Enumeration objectsEnum = objects.objectEnumerator();
         while (objectsEnum.hasMoreElements()) {
           EOEnterpriseObject object = (EOEnterpriseObject) objectsEnum.nextElement();
           Object relationshipValue = object.storedValueForKey(relationshipName);
           if (EOFaultHandler.isFault(relationshipValue)) {
             objectsWithUnfaultedRelationships.addObject(object);
           }
         }
         objectsToBatchFetch = objectsWithUnfaultedRelationships;
View Full Code Here


               // the regular fault resolves and there is a strong reference to the EO.  This is what EOFetchSpecification
               // pre-fetching does for to-one relationships.
               // References:
               // http://developer.apple.com/documentation/developertools/reference/wo541reference/com/webobjects/eocontrol/EODeferredFaulting.html
               // http://developer.apple.com/DOCUMENTATION/WebObjects/Enterprise_Objects/Fetching/chapter_6_section_8.html
                object.storedValueForKey(relationshipName);
             }
          }
        }
      }
      objectsToBatchFetch = objectsWithUnfaultedRelationships;
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.