ERXEOGlobalIDUtilities Class Reference
List of all members.
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:
-
| 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:
-
| static NSArray<EOGlobalID> globalIDsWithPrimaryKeyValues |
( |
String |
entityName, |
|
|
NSArray< Object > |
values | |
|
) |
| | [static] |
Translates an array of single-value raw primary values to EOGlobalIDs.
- Parameters:
-
| 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:
-
Member Data Documentation
final Logger log = Logger.getLogger(ERXEOGlobalIDUtilities.class) [static] |
The documentation for this class was generated from the following file: