ERXEOGlobalIDUtilities Class Reference

Collaboration diagram for ERXEOGlobalIDUtilities:

Collaboration graph
[legend]

List of all members.

Classes

class  Info

Static Public Member Functions

static EOKeyGlobalID createGlobalID (String entityName, Object[] values)
static NSMutableArray fetchObjectsWithGlobalIDs (EOEditingContext ec, NSArray globalIDs, boolean refreshesRefetchedObjects)
static NSMutableArray fetchObjectsWithGlobalIDs (EOEditingContext ec, NSArray globalIDs)
static EOEnterpriseObject fetchObjectWithGlobalID (EOEditingContext ec, EOGlobalID gid)
static NSArray fireFaultsForGlobalIDs (EOEditingContext ec, NSArray globalIDs)
static NSArray fireFaultsForGlobalIDs (EOEditingContext ec, NSArray globalIDs, NSArray prefetchingKeypaths)
static NSDictionary globalIDsGroupedByEntityName (NSArray globalIDs)
static NSArray< EOGlobalID > globalIDsWithPrimaryKeyValues (String entityName, NSArray< Object > values)
static NSArray< Object > primaryKeyValuesWithGlobalIDs (NSArray< EOGlobalID > globalIDs)

Static Public Attributes

static final Logger log = Logger.getLogger(ERXEOGlobalIDUtilities.class)


Detailed Description

Utilities that help with batch loading sets of global IDs.

Author:
ak

Member Function Documentation

static EOKeyGlobalID createGlobalID ( String  entityName,
Object[]  values 
) [static]

static NSMutableArray fetchObjectsWithGlobalIDs ( EOEditingContext  ec,
NSArray  globalIDs,
boolean  refreshesRefetchedObjects 
) [static]

Fetches an array of objects defined by the globalIDs in a single fetch per entity.

Parameters:
ec the editing context to fetch within
globalIDs the global ids to fetch
refreshesRefetchedObjects whether or not to refresh refetched objects
Returns:
the fetched EO's

static NSMutableArray fetchObjectsWithGlobalIDs ( EOEditingContext  ec,
NSArray  globalIDs 
) [static]

Fetches an array of objects defined by the globalIDs in a single fetch per entity without refreshing refetched objects.

Parameters:
ec the editing context to fetch within
globalIDs the global ids to fetch
Returns:
the fetched EO's

static EOEnterpriseObject fetchObjectWithGlobalID ( EOEditingContext  ec,
EOGlobalID  gid 
) [static]

Fetches an object defined by gid without refreshing refetched objects.

Parameters:
ec the editing context to fetch within
gid the global id to fetch
Returns:
the fetched EO

static NSArray fireFaultsForGlobalIDs ( EOEditingContext  ec,
NSArray  globalIDs 
) [static]

Fires all faults in the given global IDs on one batch. This is much more efficient than triggering the individual faults later on. The method should use only 1 fetch for all objects per entity.

Parameters:
ec 
globalIDs 

static NSArray fireFaultsForGlobalIDs ( EOEditingContext  ec,
NSArray  globalIDs,
NSArray  prefetchingKeypaths 
) [static]

Fires all faults in the given global IDs on one batch together with their relationships. This is much more efficient than triggering the individual faults and relationships later on. The method should use only 1 fetch for all objects per entity and then one for each relationship per entity.

Parameters:
ec 
globalIDs 
prefetchingKeypaths 

static NSDictionary globalIDsGroupedByEntityName ( NSArray  globalIDs  )  [static]

Groups an array of global IDs by their entity name.

Parameters:
globalIDs 

static NSArray<EOGlobalID> globalIDsWithPrimaryKeyValues ( String  entityName,
NSArray< Object >  values 
) [static]

Translates an array of single-value raw primary values to EOGlobalIDs.

Parameters:
entityName 
values 

static NSArray<Object> primaryKeyValuesWithGlobalIDs ( NSArray< EOGlobalID >  globalIDs  )  [static]

Translates an array of EOGlobalID to primary key values. Returns null if the given global IDs are not EOKeyValueGlobalIDs and the primary keys are not single values.

Parameters:
globalIDs 


Member Data Documentation

final Logger log = Logger.getLogger(ERXEOGlobalIDUtilities.class) [static]

logging support


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:10 2012 for Project Wonder by  doxygen 1.5.8