
Public Member Functions | |
| KeyPath (String path, NSArray subPaths) | |
| String | path () |
| NSArray | subPaths () |
| void | traverseForObjects (NSArray sourceObjects, boolean skipFaultedSourceObjects) |
Static Public Member Functions | |
| static NSArray< KeyPath > | parseKeyPathStrings (NSArray keypathStrings) |
Private Member Functions | |
| void | batchFetchRelationshipOnSourceObjects (EORelationship relationship, NSArray sourceObjects, boolean skipFaultedSourceObjects) |
| NSArray | destinationObjectsForRelationship (EORelationship relationship, NSArray sourceObjects) |
| NSDictionary | splitObjectsByEntity (NSArray objects) |
| void | traverseForHomogeniousObjects (NSArray sourceObjects, boolean skipFaultedSourceObjects) |
Static Private Member Functions | |
| static String | directPathFromKeyPath (String keypath) |
| static String | indirectPathFromKeyPath (String keypath) |
| static NSDictionary | subPathsKeyedByTopLevel (NSArray keypathStrings) |
Private Attributes | |
| String | path |
| NSArray | subPaths |
| void batchFetchRelationshipOnSourceObjects | ( | EORelationship | relationship, | |
| NSArray | sourceObjects, | |||
| boolean | skipFaultedSourceObjects | |||
| ) | [private] |
| NSArray destinationObjectsForRelationship | ( | EORelationship | relationship, | |
| NSArray | sourceObjects | |||
| ) | [private] |
| static NSArray<KeyPath> parseKeyPathStrings | ( | NSArray | keypathStrings | ) | [static] |
Take a list of keypath strings and return a list or KeyPath objects.
ex. from manuscriptEvents.userAction.enteredBy manuscriptEvents.userAction.changedBy manuscriptEvents.correspondence.enteredBy deniedIndividuals
to:
1. manuscriptEvents.
userAction.
enteredBy
changedBy
2. manuscriptEvents.
correspondence.
enteredBy
3. deniedIndividuals
| keypathStrings |
| NSDictionary splitObjectsByEntity | ( | NSArray | objects | ) | [private] |
| NSArray subPaths | ( | ) |
| static NSDictionary subPathsKeyedByTopLevel | ( | NSArray | keypathStrings | ) | [static, private] |
| void traverseForHomogeniousObjects | ( | NSArray | sourceObjects, | |
| boolean | skipFaultedSourceObjects | |||
| ) | [private] |
| void traverseForObjects | ( | NSArray | sourceObjects, | |
| boolean | skipFaultedSourceObjects | |||
| ) |
Traverse through all relationships represented by this keypath for sourceObjects using batchFetching to optimize roundtrips to database.
This method assumes the EOObjectStoreCoordinator has been externally locked.
| sourceObjects |
NSArray subPaths [private] |
1.5.8