Project Wonder 2.0

er.extensions
Class ERXRecursiveBatchFetching

java.lang.Object
  extended byer.extensions.ERXRecursiveBatchFetching

public class ERXRecursiveBatchFetching
extends Object

Author:
Lenny Marks (lenny@aps.org)

Constructor Summary
ERXRecursiveBatchFetching()
           
 
Method Summary
static void batchFetch(NSArray sourceObjects, NSArray keypaths)
          Batch fetch relationships specified by keypaths for sourceObjects .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ERXRecursiveBatchFetching

public ERXRecursiveBatchFetching()
Method Detail

batchFetch

public static void batchFetch(NSArray sourceObjects,
                              NSArray keypaths)
Batch fetch relationships specified by keypaths for sourceObjects .

This method will use EODatabaseContext.batchFetchRelationship to efficiently fetch like relationships for many objects in as few as one database round trip per relationship. For example, if fetching from Movie entities, you might specify paths of the form: ("directors","roles.talent", "plotSummary"). This works much like prefetching with fetch specifications, however this implementation is able to work around inheritance where prefetching fails.

Parameters:
sourceObjects -
keypaths -

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.