Project Wonder 5.0

com.webobjects.eoaccess
Class ERXEOAccessHelper

java.lang.Object
  extended by com.webobjects.eoaccess.ERXEOAccessHelper

public class ERXEOAccessHelper
extends Object

Helper class to allow us to access protected stuff in EOAccess.

Author:
ak

Constructor Summary
ERXEOAccessHelper()
           
 
Method Summary
static EOFetchSpecification adjustPrefetching(EODatabaseContext dbc, EOFetchSpecification fetchSpec, String relationshipName, NSArray sourceObjects, EOEditingContext context)
          Helper to fix prefetching fetch spec to abstract entities.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ERXEOAccessHelper

public ERXEOAccessHelper()
Method Detail

adjustPrefetching

public static EOFetchSpecification adjustPrefetching(EODatabaseContext dbc,
                                                     EOFetchSpecification fetchSpec,
                                                     String relationshipName,
                                                     NSArray sourceObjects,
                                                     EOEditingContext context)
Helper to fix prefetching fetch spec to abstract entities. when batch fetching across flattened relationships and targeting abstract entities, we end up with GIDs that contain the abstract, no the concrete. So the objects can't be instantiated. If we add the schema based qualifier to the relationship beforehand, everything works as expected.

Author:
ak

Last updated: Wed, Feb 22, 2012 • 07:00 AM EST

Copyright © 2002 – 2011 Project Wonder.